thecodingmachine/safe
Safe PHP functions: a drop-in wrapper around PHP’s native functions that converts warnings and notices into exceptions, improving type safety and error handling. Includes namespaced alternatives for many standard functions with IDE/static analysis support.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mnapoli/hard-mode | 0.76 | Hard Mode is a small PHP library by Matthieu Napoli that encourages writing more explicit, robust code by making certain “bad practices” harder or impossible at runtime. Useful for catching hidden assumptions and improving code quality in existing projects. | 9 | 9 | 1 | 320 | 0 | 21.3 | 24.7 | MIT | 5 years ago | |
| thecodingmachine/phpstan-safe-rule | 0.76 | PHPStan rule set that flags calls to “unsafe” PHP functions that can return false on failure and suggests using the thecodingmachine/safe equivalents that throw exceptions, helping enforce safer, exception-based error handling in your codebase. | 62 | 62 | 25 | 194K | 2 | 26.3 | 56.7 | — | 4 months ago | |
| phpstan/phpstan | 0.73 | PHPStan is a PHP static analysis tool that finds bugs without running your code. It checks types and logic, flags common error patterns early, and helps enforce higher code quality—bringing PHP closer to compiled-language safety before tests or runtime. | 13,894 | 13,945 | 947 | 8M | 1,103 | 90.8 | 72.0 | MIT | 1 week ago |
How can I help you explore Laravel packages today?