Laravel package around tomlankhorst/afas-profit
tomlankhorst/laravel-afas is a Laravel package for laravel package around tomlankhorst/afas-profit.
It currently has 0 GitHub stars and 135 downloads on Packagist (latest version 1.2.0).
Install it with composer require tomlankhorst/laravel-afas.
Discover more Laravel packages by tomlankhorst
or browse all Laravel packages to compare alternatives.
Last updated
A module that integrates tomlankhorst/afas-profit with Laravel.
composer require tomlankhorst/laravel-afas ^1.0
Add an afas.php configuration file.
<?php
return [
'connections' => [
'default' => [
'location' => env('AFAS_LOCATION'),
'connectors' => [
'products' => [
'id' => env('AFAS_PRODUCTS_CONNECTOR'),
'environment' => env('AFAS_ENVIRONMENT'),
'token' => env('AFAS_TOKEN'),
],
]
],
],
];
As a facade
$results = Afas::connector('products')
->where('sku', 'LIKE', 'XY%')
->orWhere('sku', 'LIKE', 'XXY%')
->take(10)
->skip(10)
->get();
Thanks to iPublications for developing iPublications/AFAS-ProfitClass-PHP.