Skip to content

jedsonmelo/helpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sysvale Helpers

Build Status

Php functions to make you work faster.

Instalation

With composer:

composer require sysvale/helpers

Methods

  • maskBank
  • maskCpf
  • unMaskCpf
  • maskPhone
  • maskMoney
  • maskCep
  • maskCnpj
  • trimpp
  • titleCase
  • firstUpper
  • urlNoCache
  • ptDate2IsoDate
  • regexAccents
  • toInt
  • toFloat
  • toTime
  • toArray
  • toArrayInt
  • toData
  • toBool
  • toBoolNotNull
  • removeAccents
  • compareVersion
  • monthPt
  • removeCrassLetters
  • validateCpf
  • weekDay
  • city
  • getNFirstWords

Usage Examples

maskBank

use Sysvale/Helpers;

$bankNumber = 12345;

$maskedBank = Helpers::maskBank($bankNumber);

// $maskedBank will be 1234-5

trimpp

use Sysvale/Helpers;

$text = " Text \t \n "; //String with spaces and special caracter;

$text = Helpers::trimpp($text);

// $text will be Text

urlNoCache

use Sysvale/Helpers;

$url = 'http://url.com.br';

$url = Helpers::urlNoCache($url);

// $url will be http://url.com.br?1570588480

Contributing Guidelines

If you are interested in contributing, please read and abide by the contributing guidelines.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%