PHP code example of jc5 / recovery

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

    

jc5 / recovery example snippets

 php
$this->recovery = new PragmaRX\Recovery();

$this->recovery->toArray();
 php
$this->recovery->toCollection();
 php
$this->recovery->collectionFunction('alternateCollection');

$this->recovery->setCount(8)->toCollection();
 php
$this->recovery->toJson();
 php
$this->recovery
     ->numeric()       // Generate numeric only codes
     ->toArray();
     
$this->recovery
     ->alpha()        // Get back to default alpha generation
     ->toArray();
 php
$this->recovery
     ->lowercase()    // All lower
     ->toArray();
     
$this->recovery
     ->uppercase()    // All upper
     ->toArray();
     
$this->recovery
     ->mixedcase()    // Get back to default mixed case
     ->toArray();
 php
$this->recovery->setBlockSeparator('|')->toJson();