hikarine3 / py2php
Use python naming function in PHP
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hikarine3/py2php
Requires
- php: >=7.1.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2025-09-28 10:42:36 UTC
README
This package provides the same function naming with python for php to reduce switching cost. though the function for the object may be defined just as a function becauase the type of python and php is different.
ex. Python: string.lower => PHP: lower(string)
How to install it
add
"require": {
...
"hikarine3/py2php": "*",
...
}
to composer.json
How to use
$py2php = new Py2php();
$string = "ABC";
print($py2php->lower($string));
Supported function
php => py2php
strtolower => lower
How to test
composer test tests;
Author
Hajime Kurita
An adminstrator of https://sakuhindb.com/ , http://minakoe.jp/ and so on
Twitter: