neovav / text
A PHP lib for text
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/neovav/text
Requires
- php: ~7.0
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-10-19 09:36:22 UTC
README
This is sample how use neovav/Text class
Getting Started
Installation
For installations neovav/Text, run:
git clone https://github.com/neovav/Text
cd Text
composer install
Usage
Trim multi byte string:
use \neovav\Text\Text; require_once '..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; echo Text::trim(' Hello World ');
Get only digits from text:
use \neovav\Text\Text; require_once '..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; echo Text::digits(' Digits 15 in text ');
Generate password:
use \neovav\Text\Text; require_once '..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; echo Text::genPass();
Translit from russian chars to latin chars:
use \neovav\Text\Text; require_once '..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; $str = 'Привет'; echo $str.' => '.Text::translit($str);
For more samples view in directory : samples