PHP code example of phpinnacle / grimoire

1. Go to this page and download the library: Download phpinnacle/grimoire 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/ */

    

phpinnacle / grimoire example snippets


$callback = function (string $value) {
    return trim($value);
};
$mapper = static fn (string $value) => trim($value);