Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (21) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
48% | Total: 199 This week: 2 | All time: 8,485 This week: 96 |
Version | License | PHP version | Categories | |||
php-helper 1.0.2 | The PHP License | 5.3 | PHP 5, Language |
Description | Author | |||
This package allows applications to call helper functions that are loaded dynamically. Innovation Award
|
(PHP 5 >= 5.3.0, PHP 7)
Static class with automatic function loading
When calling the class H :: funcName, it is checked whether there is a function in the helper directory, if the function is found, then it starts, if it is not there, then we try to download the file from the Internet or local storage and then it is saved to the helper directory and executed.
The address of the repository of function files is specified in the property H :: $ remouteUrl Example
include 'H.php';
var_dump(H::bc('((($1+$2)*$3)-2)>=6',2,2,2));
var_dump(H::dirList('./'));
Result
string(1) "1"
array(8) {
[".gitignore"]=>
string(10) ".gitignore"
["example.php"]=>
string(11) "example.php"
["H.php"]=>
string(5) "H.php"
["helper"]=>
string(6) "helper"
["README.en.md"]=>
string(12) "README.en.md"
["README.md"]=>
string(9) "README.md"
}
Files |
File | Role | Description | ||
---|---|---|---|---|
helper (17 files) | ||||
example.php | Aux. | Auxiliary script | ||
H.php | Class | Class source | ||
README.en.md | Doc. | Documentation | ||
README.md | Doc. | Documentation |
Files | / | helper |
File | Role | Description |
---|---|---|
arrayToJson.php | Aux. | Auxiliary script |
arrayToXml.php | Example | Example script |
bc.php | Aux. | Auxiliary script |
checkInn.php | Aux. | Auxiliary script |
checkKpp.php | Aux. | Auxiliary script |
dec2hex.php | Aux. | Auxiliary script |
dirList.php | Example | Example script |
ean13Sum.php | Aux. | Auxiliary script |
exec.php | Aux. | Auxiliary script |
gen_rand_string.php | Aux. | Auxiliary script |
hex2dec.php | Aux. | Auxiliary script |
jsonToArray.php | Aux. | Auxiliary script |
jsonToXml.php | Example | Example script |
uuid.php | Aux. | Auxiliary script |
wordEnd.php | Aux. | Auxiliary script |
xmlToArray.php | Example | Example script |
xmlToJson.php | Example | Example script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.