{"id":26250690,"url":"https://github.com/sysvale/helpers","last_synced_at":"2026-02-27T16:05:44.914Z","repository":{"id":53431803,"uuid":"202147512","full_name":"Sysvale/helpers","owner":"Sysvale","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-26T19:49:07.000Z","size":112,"stargazers_count":8,"open_issues_count":6,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-24T03:47:57.321Z","etag":null,"topics":["hacktoberfest","helpers-library","php","sysvale"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sysvale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-13T13:11:06.000Z","updated_at":"2025-03-26T19:49:12.000Z","dependencies_parsed_at":"2025-03-13T19:16:21.433Z","dependency_job_id":null,"html_url":"https://github.com/Sysvale/helpers","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sysvale%2Fhelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sysvale%2Fhelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sysvale%2Fhelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sysvale%2Fhelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sysvale","download_url":"https://codeload.github.com/Sysvale/helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560007,"owners_count":21450168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","helpers-library","php","sysvale"],"created_at":"2025-03-13T16:36:25.899Z","updated_at":"2026-02-27T16:05:44.223Z","avatar_url":"https://github.com/Sysvale.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sysvale Helpers\n\n[![Build Status](https://travis-ci.com/Sysvale/helpers.svg?branch=master)](https://travis-ci.com/Sysvale/helpers)\n\nPHP functions to make you work faster.\n\nSysvale Helpers requires PHP \u003e= 7.2 and  php-mbstring extension\n\n## Installation\n\nWith composer:\n\n```bash\ncomposer require sysvale/helpers\n```\n\n## Helpers class methods\n\n * [maskBank](#maskBank)\n * maskCpf\n * unMaskCpf\n * maskPhone\n * maskMoney\n * maskCep\n * maskCnpj\n * [trimpp](#trimpp)\n * titleCase\n * firstUpper\n * [urlNoCache](#urlNoCache)\n * ptDate2IsoDate\n * regexAccents\n * toInt\n * toFloat\n * toTime\n * toArray\n * toArrayInt\n * toData\n * toBool\n * toBoolNotNull\n * removeAccents\n * compareVersion\n * monthPt\n * removeCrassLetters\n * validateCpf\n * validateCNPJ\n * validatePhone\n * weekDay\n * validateResidentialPhone\n * validateMobilePhone\n * getNFirstWords\n\n\n### Usage Examples\n\n#### maskBank\n```php\nuse Sysvale/Helpers;\n\n$bankNumber = 12345;\n\n$maskedBank = Helpers::maskBank($bankNumber);\n\n// $maskedBank will be 1234-5\n```\n\n#### trimpp\n```php\nuse Sysvale/Helpers;\n\n$text = \" Text \\t \\n \"; //String with spaces and special caracter;\n\n$text = Helpers::trimpp($text);\n\n// $text will be Text\n```\n\n#### urlNoCache\n```php\nuse Sysvale/Helpers;\n\n$url = 'http://url.com.br';\n\n$url = Helpers::urlNoCache($url);\n\n// $url will be http://url.com.br?1570588480\n```\n\n## Validate class\n\nThe validation methods can be accessed directly in the `Validate` class.\nTo use the class import as in the example:\n\n```php\n  use Sysvale\\Helpers\\Validate;\n```\n\n### Validate class methods\n\n* [isValidCpf](#isValidCpf)\n* [isValidCnpj](#isValidCnpj)\n* [isValidPhone](#isValidPhone)\n* [isValidResidentialPhone](#isValidResidentialPhone)\n* [isValidMobilePhone](#isValidMobilePhone)\n\n### Use exemples\n\n#### isValidCpf\n\n```php\nuse Sysvale/Helpers/Validate;\n\n$value = '334.734.750-17';\n\n$isValid = Validate::isValidCpf($value);\n\n// true\n```\n\n#### isValidCnpj\n\n```php\nuse Sysvale/Helpers/Validate;\n\n$value = '56.396.710/0001-37';\n\n$isValid = Validate::isValidCnpj($value);\n\n// true\n```\n\n#### isValidPhone\n\n```php\nuse Sysvale/Helpers/Validate;\n\n$value = '79988001010';\n\n$isValid = Validate::isValidPhone($value);\n\n// true\n```\n\n#### isValidResidentialPhone\n\n```php\nuse Sysvale/Helpers/Validate;\n\n$value = '7033662200';\n\n$isValid = Validate::isValidResidentialPhone($value);\n\n// true\n```\n\n#### isValidMobilePhone\n\n```php\nuse Sysvale/Helpers/Validate;\n\n$value = '70993662200';\n\n$isValid = Validate::isValidMobilePhone($value);\n\n// true\n```\n\n\n## Contributing Guidelines\nIf you are interested in contributing, please read and abide by the [contributing guidelines](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysvale%2Fhelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysvale%2Fhelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysvale%2Fhelpers/lists"}