PHPackages                             glasswalllab/wiiseconnector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. glasswalllab/wiiseconnector

ActiveLibrary[API Development](/categories/api)

glasswalllab/wiiseconnector
===========================

Connection to Wiise (Microsoft Business Central)

1.00(4y ago)0261MITPHPPHP ^7.4|^8.0

Since Jun 11Pushed 4y agoCompare

[ Source](https://github.com/glasswalllab/wiise-connector)[ Packagist](https://packagist.org/packages/glasswalllab/wiiseconnector)[ Docs](https://github.com/glasswalllab/wiise-connector)[ RSS](/packages/glasswalllab-wiiseconnector/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Wiise (Microsoft Business Central) PHP Wrapper
==============================================

[](#wiise-microsoft-business-central-php-wrapper)

This package provides an integration (OAuth 2.0) to Wiise (Microsoft Business Central).

[![Latest Version](https://camo.githubusercontent.com/ed20b6e590cc094c08e70f327e44a2354665bf07b48cdbe944de1fd371ae5b7b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f676c61737377616c6c6c61622f77696973652d636f6e6e6563746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/glasswalllab/wiise-connector/releases)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require glasswalllab/wiiseconnector
```

Usage
-----

[](#usage)

1. Setup Web App in Microsoft Azure AD to obtain required credentials.
2. Include the following variables in your .env

```
WIISE_COMPANY_NAME=YOUR_COMAPNY_NAME
WIISE_TENANT_ID=YOUR_TENANT_ID
WIISE_APP_ID=YOUR_APP_ID
WIISE_APP_SECRET=YOUR_APP_SECRET
WIISE_REDIRECT_URI=YOUR_REDIRECT_URKL

WIISE_PROVIDER=wiise
WIISE_SCOPES='Financials.ReadWrite.All offline_access'
WIISE_AUTHORITY=https://login.microsoftonline.com/
WIISE_AUTHORISE_ENDPOINT=/oauth2/authorize?resource=https://api.businesscentral.dynamics.com
WIISE_TOKEN_ENDPOINT=/oauth2/token?resource=https://api.businesscentral.dynamics.com
WIISE_RESOURCE=https://api.businesscentral.dynamics.com
WIISE_BASE_API_URL=https://wiise.api.bc.dynamics.com/v2.0/

```

3. Run **php artisan migrate** to create the api\_token database table
4. Optional: Export the welcome view blade file

```
php artisan vendor:publish --provider="glasswalllab\wiiseconnector\WiiseConnectorServiceProvider" --tag="views"

```

### Sample Usage (Laravel)

[](#sample-usage-laravel)

```
