{"id":33919585,"url":"https://github.com/mckayb/phantasy","last_synced_at":"2026-03-14T22:39:41.094Z","repository":{"id":62526112,"uuid":"85419621","full_name":"mckayb/phantasy","owner":"mckayb","description":"Functional Programming Helpers and Data Types for PHP","archived":false,"fork":false,"pushed_at":"2020-10-12T15:05:19.000Z","size":454,"stargazers_count":5,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-29T09:57:05.723Z","etag":null,"topics":["algebraic-data-types","functional","hacktoberfest","phantasy","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mckayb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-18T17:30:48.000Z","updated_at":"2022-01-20T19:36:23.000Z","dependencies_parsed_at":"2022-11-02T15:45:43.546Z","dependency_job_id":null,"html_url":"https://github.com/mckayb/phantasy","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/mckayb/phantasy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mckayb%2Fphantasy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mckayb%2Fphantasy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mckayb%2Fphantasy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mckayb%2Fphantasy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mckayb","download_url":"https://codeload.github.com/mckayb/phantasy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mckayb%2Fphantasy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30520754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algebraic-data-types","functional","hacktoberfest","phantasy","php"],"created_at":"2025-12-12T08:56:37.140Z","updated_at":"2026-03-14T22:39:41.081Z","avatar_url":"https://github.com/mckayb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phantasy [![CircleCI](https://circleci.com/gh/mckayb/phantasy.svg?style=svg)](https://circleci.com/gh/mckayb/phantasy)[![Coverage Status](https://coveralls.io/repos/github/mckayb/phantasy/badge.svg?branch=master)](https://coveralls.io/github/mckayb/phantasy)\nFunctional Programming Helpers and Data Types for PHP.\n\n## Getting Started\n\n### Installation\n`composer require mckayb/phantasy`\n\n### Usage\n```php\nuse Phantasy\\DataTypes\\Maybe\\Maybe;\nuse function Phantasy\\Core\\prop;\n\n$user = [ \"name\" =\u003e \"Foo\", \"email\" =\u003e \"foo@example.com\" ];\n$name = Maybe::of($user)\n\t-\u003emap(prop('name'))\n\t-\u003egetOrElse(null);\n// \"Foo\"\n```\nFor more information, read the [docs!](https://github.com/mckayb/phantasy/tree/master/docs)\n\n## What's Included\n  * Currying, Composition, Higher-Order Functions, etc\n  * Maybe, Either, Reader, Writer, State, Linked List, Validation Data Types.\n  * More coming...\n\n## Contributing\nFind a bug? Want to make any additions?\nJust create an issue or open up a pull request.\n\n## Want more?\nFor other helpers not included in this repo, check out\n  * [Phantasy-PHP](https://github.com/mckayb/phantasy-php)\n  * [Phantasy-Types](https://github.com/mckayb/phantasy-types)\n  * [Phantasy-Recursion-Schemes](https://github.com/mckayb/phantasy-recursion-schemes)\n\n## Inspiration\n  * [Monet](https://github.com/monet/monet.js)\n  * [Folktale](https://github.com/origamitower/folktale)\n  * [Fantasy Land](https://github.com/fantasyland/fantasy-land)\n  * [Daggy](https://github.com/fantasyland/daggy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmckayb%2Fphantasy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmckayb%2Fphantasy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmckayb%2Fphantasy/lists"}