A trunk full of useful string manipulation functions
- PHP 5.4.x
- neitanod/forceutf8
The recommended way to install StringForge is through composer. You can see the package information on Packagist.
{
"require": {
"pinefor/string-forge": "dev-master"
}
}
use StringForge\StringForge;
$forge = new StringForge();
$stringObj = $forge->create('¡¿ÁaéE323úüÜèóïç232ÇñÑ?!');
echo (string) $stringObj->asciify()->removeNum();
//Returns: AaeEuuUeoicCnN?!
Tests are in the tests
folder.
To run them, you need PHPUnit.
Example:
$ phpunit --configuration phpunit.xml.dist
MIT, see LICENSE