1. Go to this page and download the library: Download andres-ml/fpl 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/ */
andres-ml / fpl example snippets
use function Aml\Fpl\{compose, partial};
use const Aml\Fpl\{last};
$lastWord = compose(last, partial('explode', ' '));
$lastWord('some words in a sentence'); // 'sentence'
use Aml\Fpl;
$lastWord = Fpl\compose(Fpl\last, Fpl\partial('explode', ' '));
$lastWord('some words in a sentence'); // 'sentence'
use function Aml\Fpl\{compose, partial, last};
// note that we use 'last()' instead of just 'last'
$lastWord = compose(last(), partial('explode', ' '));
$lastWord('some words in a sentence'); // 'sentence'