Package to provide eboekhouden as service in laravel
- PHP 7.4
- PHP soap extension
$ composer require daanvanberkel/laravel_eboekhouden
Laravel will automatically detect the service provider
This is an example to use the provider in a laravel controller:
<?php
namespace App\Http\Controllers;
use Dvb\Accounting\AccountingProvider;
class ExampleController
{
/**
* Return a list with all the relation in eboekhouden
*
* @param AccountingProvider $accountingProvider
* @return array|\Dvb\Accounting\AccountingRelation[]
*/
public function index(AccountingProvider $accountingProvider) {
return $accountingProvider->getRelations();
}
}
To edit the configuration, run the following command in a terminal window. The eboekhouden.php
configuration file will be added to the config
folder
$ php artisan vendor:publish --provider=Dvb\Eboekhouden\ServiceProvider
Now you can edit config/eboekhouden.php
to change the configuration.
- Solved bug where mutation lines where not properly parsed
- Added test for getting mutations
- Changed namespace of
EboekhoudenLedger
model - Added test for getting ledgers
- MIT license added
- Upgraded to daanvanberkel/laravel_accounting ^v2.1.3
- Use objects instead of arrays
- Added some tests
- Handle optional fields better
- Changed wsdl_url to wsdl in
config/eboekhouden.php
- Composer.json validated for integration with packagist.org
- Initial version