- (( authors ))
- (( companies ))
- (( resource.label ))
- (( resource.mask ))
- (( dependencies ))
Safe-PHP redeclares all core PHP functions. The new PHP functions act exactly as the old ones, except they throw exceptions properly when an error is encountered.
The "safe" functions have the same name as the core PHP functions, except they are in the Safe namespace.
Note: Safe-PHP can be integrated with both PHPStan and Rector. Check out the documentation for more information.
Install from a Composer package as a dependency (with Composer)
Make sure you have Composer installed.
Require it as a dependency:
composer require thecodingmachine/safe