Download the PHP package nilportugues/php_backslasher without Composer
On this page you can find all versions of the php package nilportugues/php_backslasher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nilportugues/php_backslasher
More information about nilportugues/php_backslasher
Files in nilportugues/php_backslasher
Package php_backslasher
Short Description Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.
License MIT
Homepage http://nilportugues.com
Informations about the package php_backslasher
PHP BackSlasher
Tool to add all PHP internal functions and constants to its namespace by adding backslash to them.
Function resolution without the backslash forces the PHP internals to verify for each function call if function or constant belongs to current namespace or the global namespace. With the backslash PHP does not check the current namespace and therefore execution is faster when using OP Cache.
Idea from Nikita Popov talk:
Installation
Use Composer to install the package:
Usage
Output
Works for functions in conditional statements, negative conditionals, placed in an array as key or value and any other normal use. Also adds a backslash to defined constants and true, false and null values.
Internal functions and constants
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
Support
Get in touch with me using one of the following means:
- Emailing me at [email protected]
- Opening an Issue
Authors
License
The code base is licensed under the MIT license.