PHP code example of adamkiss / kirby-fluent-toolkit

1. Go to this page and download the library: Download adamkiss/kirby-fluent-toolkit 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/ */

    

adamkiss / kirby-fluent-toolkit example snippets


	// Outputs "Tom, Jack, Jerry"
	echo fluent('tom jack jerry')
		->split(' ')
		->map(fn($name) => fluent($name)->ucfirst())
		->join(', ');

	// It also supports short helper f()
	echo f('tom jack jerry')
		->split(' ')
		->map(fn($name) => f($name)->ucfirst())
		->join(', ');