pirminis / maybe-monad
PHP monad library
Installs: 1 003
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/pirminis/maybe-monad
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-11-04 12:37:44 UTC
README
Simple Maybe monad library for PHP. Makes your life easier by making your code safer and by keeping your code stylish.
What is this library about
Graceful handling of null values.
Installation
Composer:
"require": {
"pirminis/maybe-monad": "~1.2"
},
"autoload": {
"files": ["vendor/pirminis/maybe-monad/lib/global.php"]
}
Examples
Dont be a jerk and check example.php, it is simple and easy to understand:
php example.php
Tests
Use phpunit in project folder:
phpunit tests
Bugs?
$how_much_I_care = \Maybe('that much'); echo $how_much_I_care->val('not that much');