phariscope/safephp
SafePHP provides safer, predictable replacements for common risky PHP operations, helping developers avoid warnings, fatal errors, and security pitfalls. It offers consistent error handling and simple helpers for writing more robust PHP applications.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| hectorj/safe-php-psalm-plugin | 0.84 | A Psalm plugin for thecodingmachine/safe that flags calls to PHP functions with safe replacements, helping you migrate to exception-throwing versions and catch unchecked return values during static analysis. Drop it into your existing Psalm config to enforce safer PHP in CI. | 9 | 9 | 3 | 13 | 0 | 0.1 | 5.0 | NOASSERTION | 4 years ago | |
| thecodingmachine/safe | 0.81 | 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. | 2,497 | 2,501 | 174 | 8M | 31 | 42.2 | 62.4 | MIT | 8 months ago | |
| nette/safe | 0.80 | nette/safe is a lightweight Nette library providing exception-throwing wrappers for risky PHP functions, helping Laravel and PHP projects fail loudly instead of silently returning false. It offers safer file, stream, and process helpers for more reliable error handling. | 16 | 17 | 2 | 22K | 0 | 0.1 | 30.3 | NOASSERTION | — | |
| thecodingmachine/phpstan-safe-rule | 0.79 | PHPStan rule that detects calls to unsafe core PHP functions and suggests the thecodingmachine/safe variants, which throw exceptions instead of returning false on error. Helps catch unsafe function usage during static analysis. | 63 | 62 | 26 | 319K | 3 | 20.1 | 57.0 | — | 4 months ago | |
| paragonie/corner | 0.78 | Corner provides extended PHP exceptions/errors with richer context: helpful long-form messages, source code snippets around the failure, and support links. Inspired by Rust-style diagnostics, useful even outside UI error pages. | 62 | 63 | 4 | 25K | 0 | 1.3 | 36.0 | — | 6 years ago | |
| eastwest/json | 0.78 | A lightweight Laravel/PHP package that wraps JSON handling in a clean, fluent API, making it easy to encode, decode, inspect, and manipulate JSON data safely inside your applications. | 93 | 93 | 5 | 7K | 0 | 0.3 | 18.1 | MIT | 8 years ago | |
| phrity/util-errorhandler | 0.78 | — | 9 | 9 | 0 | 649K | 0 | 3.8 | 56.1 | MIT | 11 months ago | |
| php-standard-library/php-standard-library | 0.78 | A standard library for PHP 8.4+ inspired by hhvm/hsl, offering consistent, well-typed APIs for async, collections, networking, I/O, cryptography, and terminal UI, replacing PHP primitives with safer, async-ready alternatives that error predictably. | 1,569 | 1,562 | 94 | 305K | 22 | 47.5 | 46.5 | MIT | 1 week ago | |
| symfony/error-handler | 0.78 | The Symfony ErrorHandler component provides tools to manage PHP errors and ease debugging. Register the error handler and debug class loader, render friendly error pages, and wrap risky code in ErrorHandler::call() to turn failures into exceptions. | 2,674 | 2,677 | 21 | 27M | 0 | 47.2 | 64.9 | MIT | 1 week ago | |
| markup/json | 0.78 | Markup JSON is a lightweight PHP package for working with JSON as markup. It offers a simple way to parse or render JSON data into readable HTML output, making it useful for Laravel and PHP projects that need to display or transform JSON content. | 3 | 3 | 1 | 69 | 0 | 0.4 | 17.4 | — | 7 years ago | |
| forci/catchable-bundle | 0.78 | Symfony bundle for Forci Catchable that brings catchable exception handling to PHP applications. It integrates with Symfony’s error and exception workflow, helping centralize failure handling, reduce repetitive try/catch blocks, and keep controllers clean and consistent. | 0 | 0 | 0 | 21 | 0 | 0.5 | 19.7 | NOASSERTION | — | |
| typo3/phar-stream-wrapper | 0.77 | A PHP stream wrapper that hardens phar:// file operations by intercepting metadata deserialization, helping prevent object-injection attacks when handling untrusted archives. Useful for legacy and modern PHP security hardening. | 59 | 60 | 11 | 139K | 0 | 0.7 | 46.5 | MIT | 1 year ago | |
| rollbar/rollbar | 0.77 | Rollbar's PHP SDK brings real-time error monitoring to PHP applications, with out-of-the-box support for Laravel, Symfony, CodeIgniter and more. It captures exceptions, groups occurrences automatically, and sends instant alerts so your team can find and fix bugs faster. Start tracking errors today. | 335 | 343 | 115 | 493K | 8 | 24.7 | 49.6 | MIT | 7 months ago | |
| yiisoft/friendly-exception | 0.77 | Defines FriendlyExceptionInterface for exceptions that provide a human-friendly name and suggested solution. Lets error handlers detect these exceptions and display clearer, actionable information on error pages. Includes guidance for writing short, markdown-based solutions. | 49 | 49 | 11 | 77K | 1 | 2.8 | 44.5 | BSD-3-Clause | 11 months ago |
How can I help you explore Laravel packages today?