PHP code example of php-forge / helpers

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

    

php-forge / helpers example snippets




declare(strict_types=1);

use PHPForge\Helper\WordFormatter;

$word = WordFormatter::camelCaseToSnakeCase('date_birth');



declare(strict_types=1);

use PHPForge\Helper\WordFormatter;

$word = WordFormatter::snakeCaseToCamelCase('date_birth');



declare(strict_types=1);

use PHPForge\Helper\WordFormatter;

$word = WordFormatter::capitalizeToWords('Date Birth');



declare(strict_types=1);

use PHPForge\Helper\Password;

$password = Password::generate(8);



declare(strict_types=1);

use PHPForge\Helper\Timezone;

$timezones = Timezone::getAll();
shell
composer 
json
"php-forge/helpers": "^0.1"