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=john.doe@example.com query parameter:

curl "http://127.0.0.1:8000/?email=john.doe@example.com"
# {"name":"John Doe","email":"john.doe@example.com"}

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