PHP code example of lsr / helpers
1. Go to this page and download the library: Download lsr/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/ */
lsr / helpers example snippets
use Lsr\Helpers\Tools\Strings;
$property = Strings::toCamelCase('player_name'); // playerName
$class = Strings::toPascalCase('player_name'); // PlayerName
$progress = map(25.0, 0.0, 100.0, 0.0, 1.0); // 0.25