{"id":22787236,"url":"https://github.com/kdubuc/invocator-php","last_synced_at":"2025-03-30T16:16:38.463Z","repository":{"id":57005187,"uuid":"172489347","full_name":"kdubuc/invocator-php","owner":"kdubuc","description":"Handles HTTP requests using stdio","archived":false,"fork":false,"pushed_at":"2019-02-27T11:05:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T17:41:50.973Z","etag":null,"topics":["psr-15","psr-7","stdio"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kdubuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-25T10:58:37.000Z","updated_at":"2019-02-27T11:05:49.000Z","dependencies_parsed_at":"2022-08-21T13:50:50.534Z","dependency_job_id":null,"html_url":"https://github.com/kdubuc/invocator-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdubuc%2Finvocator-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdubuc%2Finvocator-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdubuc%2Finvocator-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdubuc%2Finvocator-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdubuc","download_url":"https://codeload.github.com/kdubuc/invocator-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342994,"owners_count":20761947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["psr-15","psr-7","stdio"],"created_at":"2024-12-12T00:52:02.518Z","updated_at":"2025-03-30T16:16:38.433Z","avatar_url":"https://github.com/kdubuc.png","language":"PHP","readme":"# Invoke PHP\n\n```php\n\u003c?php\n\nrequire_once __DIR__.'/vendor/autoload.php';\n\nuse function Kdubuc\\Invocator\\invoke;\nuse My\\Custom\\RequestHandler;\n\n$action = new RequestHandler();\n\ninvoke($action, STDIN, STDOUT);\n```\n\nInvoke's job is to marshal a raw HTTP request incomming into its input resource to build a PSR-7 ServerRequest object, invoke your chosen PSR-15 RequestHandler with that, and to respond with a raw HTTP Response message issued by the RequestHandler.\n\nInvoke uses stdio as an interface between the API gateway and your RequestHandler.\n\nCan be useful in a Serverless context (API Gateway -\u003e Tiny HTTP server like kdubuc/watchdog -\u003e Invoke).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdubuc%2Finvocator-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdubuc%2Finvocator-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdubuc%2Finvocator-php/lists"}