PHP code example of pealmeida / php-helpers
1. Go to this page and download the library: Download pealmeida/php-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/ */
pealmeida / php-helpers example snippets
$value = formatCpfCnpj("12345678900");
echo $value; // 123.456.789-00
echo formatPhone('11987654321'); // (11) 98765-4321
echo formatCpf('12345678900'); // 123.456.789-00
echo formatFloatToMoney(1234.56, 'pt_BR', 'BRL', 2); // R$ 1.234,56
echo convertDate('25/07/2025', 'd/m/Y', 'Y-m-d'); // 2025-07-25
echo passwordForce('MinhaSenha123!'); // força da senha
bash
composer