{"id":34005372,"url":"https://github.com/masnathan/chain-php","last_synced_at":"2026-03-10T07:04:51.277Z","repository":{"id":62524679,"uuid":"105143492","full_name":"MASNathan/chain-php","owner":"MASNathan","description":"Chainable native functions and more","archived":false,"fork":false,"pushed_at":"2017-09-29T16:44:31.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T22:37:20.389Z","etag":null,"topics":["chain","chainable-methods","php"],"latest_commit_sha":null,"homepage":null,"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/MASNathan.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-09-28T12:07:03.000Z","updated_at":"2020-05-07T15:58:48.000Z","dependencies_parsed_at":"2022-11-02T14:15:43.680Z","dependency_job_id":null,"html_url":"https://github.com/MASNathan/chain-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MASNathan/chain-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASNathan%2Fchain-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASNathan%2Fchain-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASNathan%2Fchain-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASNathan%2Fchain-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MASNathan","download_url":"https://codeload.github.com/MASNathan/chain-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASNathan%2Fchain-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["chain","chainable-methods","php"],"created_at":"2025-12-13T10:47:19.522Z","updated_at":"2026-03-10T07:04:51.267Z","avatar_url":"https://github.com/MASNathan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chain-php\nChainable native functions and more\n\n## Usage\n\n```php\n$domain = explode('@', 'andre.r.flip@gmail.com');\n$domain = end($domain);\n$domain = trim($domain);\n\n$domain = with('andre.r.flip@gmail.com')-\u003eexplode('@', '$$')-\u003eend()-\u003etrim()-\u003eget();\n// 'gmail.com'\n```\n\nor\n\n```php\n$key = with('some.service.3rdparty.integration')\n    -\u003eexplode('.', '!!')\n    -\u003earray_map(function ($value) {\n        return $value == '3rdparty' ? 'local' : $value;\n    }, '!!')\n    -\u003eimplode('.', '!!')\n    -\u003eget();\n// 'some.service.local.integration'\n```\n\nInspired by [Sebastiaan Luca Pipe item](https://blog.sebastiaanluca.com/enabling-php-method-chaining-with-a-makeshift-pipe-operator)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasnathan%2Fchain-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasnathan%2Fchain-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasnathan%2Fchain-php/lists"}