PHP code example of masmerise / de-ridder-den-hertog-for-laravel

1. Go to this page and download the library: Download masmerise/de-ridder-den-hertog-for-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

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


'renh' => [
    'api_guid' => env('RENH_API_GUID'),
],

$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]);
    }
}