cline/monad
Composer 安装命令:
composer require cline/monad
包简介
Rust-aligned Option, Result, and Either monads for type-safe error handling in PHP
关键字:
README 文档
README
This package provides a Rust-aligned Option, Result, and Either types providing expressive, type-safe error handling and ergonomic controller helpers for Laravel applications.
Requirements
Requires PHP 8.4+
Installation
composer require cline/monad
Documentation
- Option Guide - Complete guide with real-world examples for null-safe operations
- Result Guide - Comprehensive error handling patterns with Ok/Err semantics
- Either Guide - Advanced Left/Right branching for complex scenarios
- Transpose Guide - Swapping nested monads (Option ↔ Result)
- Quick Reference - API overview and highlights
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.
统计信息
- 总下载量: 4.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-04