This repository was archived by the owner on Dec 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tadatoshi Tokutake edited this page May 25, 2015
·
18 revisions
Did you have disatisfactions for PHP standard functions?
php-utils help your development in PHP!
-
libdirectory include the categorized library files.cover.incerror.incstring.incdebug.incgeneral.incarray.incarray_of_array.inc
-
testdirectory include the test files for above files. -
php-utils.phpread above all libraries.
You need to install PHP and PHPUnit in advance.
Notice that php-utils suppose to be used for PHP 5.3 or higher.
I actually installed them by $ sudo apt-get install php5 phpunit in Linux Mint 17.1.
After installation, type bellow commands in shell.
$ git clone https://github.com/ttokutake/php-utils.git$ cd php-utils-
$ phpunit test
(If you want to try each test separately, specify each file like$ phpunit test/ErrorTest.php.)
I also recommend you to install php-cli. This enable to use interactive shell mode.
$ sudo apt-get install php5-cli php5-readlineAfter install above packages and move to the cloned directory, type bellow commands in shell.
$ php -a
php > require 'php-utils.php';
php > echoln(create_path([__DIR__, 'dir', 'folder']));Above commands result in
/path/to/php-utils/dir/folder/ # UNIX\path\to\php-utils\dir\folder\ # DOSIf you want to know each function, see below pages.
Welcome any issure or pull request!
Please contact me by mail to tadatoshi.tokutake@gmail.com if you have some questions!