PHP Classes


Recommend this page to a friend!
  Classes of Alexey Starikov   PHP Helper Class   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Helper Class
Call helper functions that are loaded dynamically
Author: By
Last change:
Date: 4 years ago
Size: 887 bytes


Class file image Download


(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';


string(1) "1"
array(8) {
  string(10) ".gitignore"
  string(11) "example.php"
  string(5) "H.php"
  string(6) "helper"
  string(12) ""
  string(9) ""