1. Go to this page and download the library: Download sysvale/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/ */
sysvale / helpers example snippets
use Sysvale/Helpers;
$bankNumber = 12345;
$maskedBank = Helpers::maskBank($bankNumber);
// $maskedBank will be 1234-5
use Sysvale/Helpers;
$text = " Text \t \n "; //String with spaces and special caracter;
$text = Helpers::trimpp($text);
// $text will be Text
use Sysvale/Helpers;
$url = 'http://url.com.br';
$url = Helpers::urlNoCache($url);
// $url will be http://url.com.br?1570588480
use Sysvale\Helpers\Validate;
use Sysvale/Helpers/Validate;
$value = '334.734.750-17';
$isValid = Validate::isValidCpf($value);
// true
use Sysvale/Helpers/Validate;
$value = '56.396.710/0001-37';
$isValid = Validate::isValidCnpj($value);
// true
use Sysvale/Helpers/Validate;
$value = '79988001010';
$isValid = Validate::isValidPhone($value);
// true
use Sysvale/Helpers/Validate;
$value = '7033662200';
$isValid = Validate::isValidResidentialPhone($value);
// true
use Sysvale/Helpers/Validate;
$value = '70993662200';
$isValid = Validate::isValidMobilePhone($value);
// true
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.