PHP code example of publishing-kit / utilities

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

    

publishing-kit / utilities example snippets

 php
$coll = new PublishingKit\Utilities\Collections\Collection([]);
$lazy = new PublishingKit\Utilities\Collections\LazyCollection(function () {
    for ($i = 0; $i < 5; $i++) {
        yield $i;
    }
});
$str = new PublishingKit\Utilities\Str('foo');