masmerise/de-ridder-den-hertog-for-laravel

Laravel framework adapter for De Ridder & Den Hertog SDK.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/masmerise/de-ridder-den-hertog-for-laravel

1.0.0 2025-12-14 11:23 UTC

This package is auto-updated.

Last update: 2025-12-14 11:24:10 UTC


README

RenH PHP SDK PHP

Build Status Total Downloads Latest Stable Version License

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.