php-standard-library/result
Result type for PHP that captures success or failure as a value, enabling controlled error handling without exceptions. Part of the PHP Standard Library.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-standard-library/foundation | 0.87 | Foundation provides the core building blocks for PHP Standard Library packages: a consistent exception hierarchy, the Ref reference wrapper for safe value passing, and invariant functions for validating preconditions and enforcing assumptions. Lightweight, dependency-free, and designed for reuse acr... | 1 | 1 | 0 | 105K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| phpro/api-problem-bundle | 0.87 | Symfony bundle that turns exceptions into RFC7807 Problem Details responses (application/problem+json). Listens for ApiProblemException/HttpException/Security exceptions and converts them to standardized JSON errors based on phpro/api-problem, with support for custom transformers. | 25 | 25 | 12 | 10K | 2 | 12.2 | 37.3 | MIT | 8 months ago | |
| phpro/api-problem | 0.87 | A framework-agnostic RFC 7807 Problem Details implementation for PHP, providing an interface, an ApiProblemException, and built-in HTTP problem types (400–428) for consistent API error responses, with Symfony integration available. | 66 | 68 | 7 | 22K | 2 | 22.7 | 40.3 | MIT | 1 month ago | |
| prewk/result | 0.87 | 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. | 120 | 120 | 12 | 21K | 0 | 1.9 | 33.7 | NOASSERTION | — | |
| phphd/exception-handler | 0.87 | PHPhD Exception Handler offers a structured way to manage exceptions in Laravel/PHP applications, with configurable handling and cleaner error responses for more predictable debugging and user-facing failures. | 1 | — | 0 | — | 0 | 0.3 | — | MIT | 1 year ago | |
| phphd/exceptional-validation | 0.87 | Exceptional Validation brings exception-driven validation to Laravel, letting you express validation failures as exceptions handled by Laravel’s exception pipeline. Keep controllers, form requests, and domain code clean with reusable validation logic. | 4 | — | 1 | — | 15 | 18.6 | 5.9 | NOASSERTION | 3 months ago | |
| pedrosalpr/laravel-api-problem | 0.86 | Laravel API Problem brings RFC 7807/9457 problem details to your Laravel API, helping you return consistent, standards-compliant JSON error responses. Document, debug, and consume API errors more easily with structured problem payloads and simple helpers. | 11 | — | 1 | — | 1 | 0.4 | 0.4 | MIT | — | |
| errors/exceptions | 0.86 | — | 5 | 5 | 0 | 26 | 1 | 0.1 | 7.1 | MIT | — | |
| m6web/api-exception-bundle | 0.86 | 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 | 30 | 1 | 1.3 | 1.6 | MIT | 7 years ago | |
| graham-campbell/result-type | 0.86 | Result Type is a PHP implementation of the result type, maintained by Graham Campbell. It offers a clean way to represent success or failure values instead of exceptions. Install via Composer with graham-campbell/result-type ^1.1; requires PHP 7.2.5-8.6. MIT licensed. | 0 | 556 | — | 23M | — | 3.6 | 55.3 | — | — | |
| php-standard-library/option | 0.86 | Option type for PHP with explicit Some/None presence semantics, replacing nullable values so absence is handled intentionally instead of silently. Part of the PHP Standard Library. | 1 | 1 | 0 | 113K | 0 | 21.7 | 65.0 | MIT | 1 week ago | |
| php-standard-library/iter | 0.86 | Inspect and reduce any PHP iterable (arrays, generators, iterators) with small, focused helpers from PHP Standard Library - Iter. Designed for common iteration tasks and consistent behavior across iterable types. | 1 | 1 | 0 | 50K | 0 | 21.5 | 64.8 | MIT | 1 week ago | |
| mnavarrocarter/problem-details-bundle | 0.85 | A Symfony bundle for RFC 7807 problem details that turns exceptions and validation errors into consistent application/problem+json API responses with configurable type, title, status, detail, and custom extension fields. Ideal for standardizing HTTP API error handling. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 8 years ago | |
| paragonie/corner | 0.85 | 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 | |
| php-standard-library/process | 0.85 | Typed, non-blocking PHP API for spawning, monitoring, and controlling child processes. Manage stdin/stdout/stderr streams, retrieve exit codes, and handle timeouts and signals with a clean, reliable interface for long-running and parallel tasks. | 0 | 0 | 0 | 12K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| php-standard-library/file | 0.85 | Typed file handles for safe reading and writing in PHP, with explicit write modes and advisory file locking. Part of PHP Standard Library, designed to make filesystem IO clearer and less error-prone. | 1 | 1 | 0 | 102K | 0 | 21.5 | 64.9 | MIT | 1 week ago | |
| php-standard-library/math | 0.85 | Strictly typed math utilities for PHP with predictable, consistent error handling. Part of the PHP Standard Library project, providing reliable mathematical functions and a stable developer experience for safer numeric operations. | 1 | 1 | 0 | 20K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| php-standard-library/default | 0.85 | DefaultInterface for PHP classes to provide standardized default instances. Part of the PHP Standard Library, it gives a consistent contract for exposing a default object instance without custom static factory methods or ad hoc conventions. | 1 | 1 | 0 | 119K | 0 | 21.7 | 65.0 | MIT | 1 week ago | |
| php-standard-library/json | 0.85 | A small PHP Standard Library package for JSON encoding and decoding with typed exceptions and sensible defaults, providing predictable error handling for safer serialization in Laravel and other PHP projects. | 1 | 1 | 0 | 96K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| php-standard-library/fun | 0.85 | Functional programming utilities for PHP: compose and decorate functions, control execution, and build pipelines with small, reusable higher-order helpers. | 1 | 1 | 0 | 28K | 0 | 21.6 | 64.9 | MIT | 1 week ago |
How can I help you explore Laravel packages today?