PHP code example of timothydc / exact-online-laravel-client
1. Go to this page and download the library: Download timothydc/exact-online-laravel-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
timothydc / exact-online-laravel-client example snippets
use Picqer\Financials\Exact\Item;
use TimothyDC\ExactOnline\BaseClient\ExactOnlineClient;
$exactOnlineClient = resolve(ExactOnlineClient::class);
// create a new product in EOL
$item = new Item($exactOnlineClient->getConnection());
$item->Code = 'foo-bar';
$item->CostPriceStandard = 1.23;
$item->Description = 'lorem ipsum';
$item->IsSalesItem = true;
$item->SalesVatCode = 'VH';
$item->save();
bash
php artisan vendor:publish --tag="exact-online-client"
php artisan vendor:publish --tag="exact-online-client:config"
php artisan vendor:publish --tag="exact-online-client:migrations"
bash
php artisan migrate