devskyfly / php56
Represent core php function and constants by namespaces and classes like static members.
Installs: 1 079
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- php: >=5.6.0
Requires (Dev)
- codeception/codeception: ^2.4
- consolidation/robo: ^1.4
- friendsofphp/php-cs-fixer: ^2.15
- symfony/console: ^3.4.17
README
By historical reasons in PHP there is a big problem with functions naming. It's hard to remember functions names.
So, i try to structure functions and constants by related classes and namespaces.
N.B I tried ... :) But it is impossible to redeclarate following items:
Functions
- isset() //check variable definition in local scope
- unset() //delete variable link name in local scope
- get_defined_vars() //get all defined variables
- func_get_arg() //return function param by index
- func_get_args() //return function params by array
- func_num_args() //return number of params passed to a function
Constants
- _LINE_ //current executing file line
- _FILE_ //current executing file
- _DIR_ //current executing file dir
- _FUNCTION_ //current executing function
- _CLASS_ //current executing class (full - with namespace)
- _TRAIT_ //current executing trait (full - with namespace)
- _METHOD_ //current executing methode (full - with namespace)
- _NAMESPACE_ //current executing namespace
Because theare results and values depends on its location.