PHP code example of shegunbabs / laravel-helpers
1. Go to this page and download the library: Download shegunbabs/laravel-helpers 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/ */
shegunbabs / laravel-helpers example snippets
carbon('today'); //2021-11-29 00:00:00
carbon('yesterday'); //2021-11-28 00:00:00
emoji('CHARACTER_GRINNING_FACE'); //😀
chain(new SomeClass)
->firstMethod()
->secondMethod()
->thirdMethod(carry);
// Use "carry" constant to pass the return value of a method into the other.
chain(new Str)->lower('John Doe')->camel(carry);
// returns "johnDoe"
// You can grab the result of the chain by trailing a "()" on the end of it.