PHP code example of cloudcake / php-fluent
1. Go to this page and download the library: Download cloudcake/php-fluent 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/ */
cloudcake / php-fluent example snippets
str('This is my string')->startsWith('This'); // true
str('tHiS is my string')->ignoreCasing()->startsWith('THIS'); // true
str('tHiS is my string')->startsWith('THIS'); // false
str()->produce(10)->uuid();
// Array
// (
// [0] => fc91fe0a-4254-4792-9604-e5fbf223d0a7
// [1] => bdc0e4a1-86ca-4dba-ae95-ac4a2ad639d0
// [2] => 95b06669-3262-4dfa-a9c3-69fc3251f94c
// [3] => f0b2aec6-fb86-4beb-bdf2-74ddb25ff440
// [4] => 2d0c02a0-2ec8-402f-b6eb-a1ce83f4e343
// [5] => e0cc9098-cebf-42ec-89b2-8942930f0293
// [6] => 2efba194-e2c7-48c7-965d-9efc963edf06
// [7] => 8e010b42-1664-4272-be2f-90402010866d
// [8] => ec668d35-ffd4-4b59-bd11-204fd193f6e8
// [9] => e74a5362-e272-4af6-ba07-3d1f4352d653
// )
shell
composer