Skip to content

akankov/php_maybe_monad_example

Repository files navigation

Example of using Maybe monad in Symfony project

Installation

composer install
symfony server:start

Usage

Request to the endpoint with [email protected] query parameter:

curl "http://127.0.0.1:8000/[email protected]"
# {"name":"John Doe","email":"[email protected]"}

Request to the endpoint with no parameters:

curl "http://127.0.0.1:8000"
# {"name":"Unknown","email":"Unavailable"}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages