{"id":35659312,"url":"https://github.com/trycourier/courier-php","last_synced_at":"2026-05-28T22:00:42.816Z","repository":{"id":40805345,"uuid":"328087427","full_name":"trycourier/courier-php","owner":"trycourier","description":"A PHP package for communicating with the Courier REST API.","archived":false,"fork":false,"pushed_at":"2026-05-27T20:09:52.000Z","size":1981,"stargazers_count":15,"open_issues_count":1,"forks_count":8,"subscribers_count":16,"default_branch":"main","last_synced_at":"2026-05-27T22:08:40.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/trycourier/courier","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trycourier.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2021-01-09T06:06:35.000Z","updated_at":"2026-05-19T17:27:33.000Z","dependencies_parsed_at":"2025-10-06T10:33:23.873Z","dependency_job_id":null,"html_url":"https://github.com/trycourier/courier-php","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/trycourier/courier-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trycourier","download_url":"https://codeload.github.com/trycourier/courier-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33627938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-01-05T16:14:28.474Z","updated_at":"2026-05-28T22:00:42.810Z","avatar_url":"https://github.com/trycourier.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- AUTO-GENERATED-OVERVIEW:START — Do not edit this section. It is synced from mintlify-docs. --\u003e\n# Courier PHP SDK\n\n\u003e **Beta**: The PHP SDK is in beta. APIs may change between releases. [Share feedback or report issues on GitHub.](https://github.com/trycourier/courier-php/issues/new)\n\nThe Courier PHP SDK provides typed access to the Courier REST API from any PHP 8.1+ application. It uses named parameters for optional arguments and returns strongly typed response objects.\n\n## Installation\n\nAdd the Courier repository and package to your `composer.json`:\n\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"vcs\",\n      \"url\": \"git@github.com:trycourier/courier-php.git\"\n    }\n  ],\n  \"require\": {\n    \"trycourier/courier\": \"^5.0\"\n  }\n}\n```\n\nThen run `composer install`. Find the latest version on [GitHub Releases](https://github.com/trycourier/courier-php/releases).\n\n## Quick Start\n\n```php\n\u003c?php\n\nuse Courier\\Client;\n\n$client = new Client(apiKey: getenv('COURIER_API_KEY'));\n\n$response = $client-\u003esend-\u003emessage(\n  message: [\n    'to' =\u003e ['email' =\u003e 'you@example.com'],\n    'content' =\u003e [\n      'title' =\u003e 'Hello from Courier!',\n      'body' =\u003e 'Your first notification, sent with the PHP SDK.',\n    ],\n  ],\n);\n\nvar_dump($response-\u003erequestId);\n```\n\nThe client reads your API key from the constructor argument. Set `COURIER_API_KEY` in your environment and pass it with `getenv('COURIER_API_KEY')`.\n\n## Documentation\n\nFull documentation: **[courier.com/docs/sdk-libraries/php](https://www.courier.com/docs/sdk-libraries/php/)**\n\n- [Quickstart](https://www.courier.com/docs/getting-started/quickstart/)\n- [Send API](https://www.courier.com/docs/platform/sending/send-message/)\n- [API Reference](https://www.courier.com/docs/reference/get-started/)\n\u003c!-- AUTO-GENERATED-OVERVIEW:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycourier%2Fcourier-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrycourier%2Fcourier-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycourier%2Fcourier-php/lists"}