php-standard-library/result
A lightweight Result type for PHP that represents success or failure as a value, enabling controlled error handling without exceptions. Helps you return, compose, and inspect outcomes explicitly for safer, predictable application flow.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| graham-campbell/result-type | 0.83 | Lightweight PHP Result type implementation for explicit success/failure returns. Provides Ok/Err-style results to avoid exceptions and clarify control flow. Compatible with PHP 7.2.5–8.5; install via Composer. | 554 | 555 | 11 | 12M | 0 | 14.3 | 59.2 | MIT | 7 months ago | |
| prewk/result | 0.82 | prewk/result brings Rust-like Result to PHP: explicit Ok/Err values for safer, more readable error handling without exceptions. Use map/flatMap, unwrap/unwrapOr, and chain operations to handle success and failure paths cleanly in functional style. | 121 | 121 | 13 | 19K | 0 | 1.9 | 32.9 | NOASSERTION | — | |
| dosfarma/exceptions | 0.81 | Lightweight Laravel/PHP exception utilities for standardizing, wrapping, and handling application errors. Helps you define consistent exception types and messages across your codebase, improving error clarity, debugging, and maintainability with minimal setup. | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| holicz/simple-exception | 0.80 | Lightweight base exception for PHP/Laravel with structured context: a safe public message for users, a private debug message for logs, and an HTTP status code. Create your own exceptions by extending BaseException and pass an ExceptionContext. | 0 | 0 | 0 | 32 | 0 | 1.8 | 21.0 | — | 5 years ago | |
| lstrojny/functional-php | 0.80 | Functional PHP adds a rich set of functional programming helpers for PHP: map/filter/reduce, partial application, currying, composition, and collections utilities. Write cleaner, more declarative code without changing your framework or coding style. | 1,986 | 1,996 | 204 | 60K | 8 | 32.9 | 28.6 | MIT | 4 months ago | |
| bugloos/error-response-bundle | 0.79 | — | 12 | 12 | 2 | 28 | 0 | 3.4 | 6.9 | MIT | 3 years ago | |
| bytestechnolabs/custom-exception-handler | 0.79 | Laravel package for configurable exception handling: map exception classes to custom messages, HTTP status codes, and extra response data via config. Includes helper to add custom data dynamically during catch blocks for consistent API error responses. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| m6web/api-exception-bundle | 0.79 | Symfony bundle that centralizes API exception handling and returns clean JSON responses. Supports configurable error formatting, stack traces, form validation errors, exception matching/mapping, logging, and environment-specific behavior. | 65 | 64 | 7 | 96 | 1 | 1.3 | 3.8 | MIT | 7 years ago | |
| bensonirah/handler-exception | 0.79 | — | 0 | 1 | 0 | 0 | 0 | 0.9 | — | — | 1 year ago | |
| axy/errors | 0.79 | axy/errors is a PHP 8.1+ helper for defining and organizing exception classes. Provides common exception structures, basic error classes, default messages, backtrace truncation, and global options to standardize error handling across projects. | 1 | 1 | 2 | 10K | 0 | 0.1 | 51.0 | MIT | — | |
| jftecnologia/laravel-exceptions | 0.78 | — | 0 | 0 | 2 | 0 | 0 | 12.1 | — | MIT | 5 months ago | |
| php-standard-library/php-standard-library | 0.78 | PSL (PHP Standard Library) is a well-typed, centralized API set for PHP 8.4+ covering async, collections, networking, I/O, crypto, terminal UI, and more. It replaces unsafe PHP primitives with predictable, async-ready alternatives and includes composable type-safe validation. | 1,560 | 1,560 | 90 | 269K | 21 | 43.3 | 44.3 | MIT | 2 months ago | |
| php-standard-library/promise | 0.78 | Lightweight Promise implementation for PHP with a simple, standards-inspired API. Create, resolve, reject, and chain async-style operations, handle errors, and compose results with familiar then/catch patterns—ideal for libraries that need non-blocking workflows. | 1 | 1 | 0 | 30K | 0 | 20.1 | 64.3 | MIT | 2 months ago | |
| digitalrevolution/utils | 0.77 | — | 1 | 1 | 8 | 2K | 1 | 24.5 | 48.2 | MIT | 3 months ago | |
| respect/validation | 0.77 | Powerful PHP validation engine with 150+ tested validators. Build readable, chainable rules like numeric()->positive()->between(). Includes advanced exception handling and thorough docs. Great for complex input validation in any PHP app. | 6,031 | 6,156 | 775 | 849K | 8 | 71.5 | 38.5 | MIT | 2 weeks ago | |
| happyr/doctrine-specification | 0.77 | Reusable Doctrine query Specifications for PHP. Replace messy repositories and huge QueryBuilder methods with small, composable, testable spec classes. Reduce duplication, avoid methods with many arguments, and extend queries cleanly as your app grows. | 450 | 450 | 44 | 8K | 14 | 36.5 | 27.2 | MIT | 1 week ago | |
| phpspec/phpspec | 0.77 | PHPSpec is a behavior-driven development tool for PHP. Specify how objects should behave, then generate and evolve code through examples with fast feedback. Great for designing clean APIs, refactoring safely, and writing focused specifications. | 0 | 1,946 | — | 255K | — | 72.7 | 61.9 | — | — | |
| phrity/util-errorhandler | 0.76 | — | 9 | 9 | 0 | 393K | 0 | 8.9 | 58.6 | MIT | 8 months ago | |
| symfony/error-handler | 0.76 | Symfony ErrorHandler provides robust error and exception handling tools for PHP. Enable debug mode, register an error handler, and use DebugClassLoader for better stack traces. Convert PHP notices/warnings into exceptions and wrap risky code with ErrorHandler::call for safer debugging. | 2,670 | 2,675 | 20 | 15M | 0 | 46.0 | 61.0 | MIT | 1 week ago | |
| dmp/rest-bundle | 0.76 | — | 0 | 0 | 0 | 2 | 0 | 17.3 | 7.4 | — | 3 months ago |
How can I help you explore Laravel packages today?