Skip to content

cnwyt/helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helpers

A Common Helper Function Library for PHP

Install

$ composer require cnwyt/helpers

composer.json :

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/cnwyt/helpers"
    }
]

Usage

$user = \Cnwyt\Helpers\get_user_agent();

$str = 'cnwyt@outlookcom';
$result = \Cnwyt\Helpers\is_valid_email($str);

Tests

$ cd helpers/
$ ./vendor/bin/phpunit tests/HelperTest.php