Looking to hire Laravel developers? Try LaraJobs

de-ridder-den-hertog-for-laravel maintained by masmerise

Description
Laravel framework adapter for De Ridder & Den Hertog SDK.
Author
Muhammed Sarı
Last update
2026/03/29 12:42 (dev-master)
License
Downloads
11
Tags

Comments
comments powered by Disqus

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.