de-ridder-den-hertog-for-laravel maintained by masmerise
Laravel adapter for De Ridder & Den Hertog SDK
This package provides convenient access to the De Ridder & Den Hertog SDK using the Laravel framework.
Installation
You can install the package via composer:
composer require masmerise/de-ridder-den-hertog-for-laravel
After that, define your renh credentials inside the config/services.php configuration file:
'renh' => [
'api_guid' => env('RENH_API_GUID'),
],
Usage
$functions = renh()->getApiFunctions();
$renh = app('renh');
$functions = $renh->getApiFunctions();
use DeRidderDenHertog\Core\Type\Parameter\Filter;
use DeRidderDenHertog\DeRidderDenHertog;
final readonly class CustomerController
{
private function __construct(private DeRidderDenHertog $renh) {}
public function show(string $id): void
{
[$customer] = $renh->getCustomers(
filter: Filter::fromSql("Klantnummer={$id}"),
);
return view('customer.show', ['customer' => $customer]);
}
}
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email support@masmerise.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.