{"id":20540587,"url":"https://github.com/utopia-php/messaging","last_synced_at":"2026-04-02T22:53:46.761Z","repository":{"id":60430785,"uuid":"385894288","full_name":"utopia-php/messaging","owner":"utopia-php","description":"Lite \u0026 fast micro PHP messaging library that is **easy to use**.","archived":false,"fork":false,"pushed_at":"2025-04-07T08:27:27.000Z","size":561,"stargazers_count":20,"open_issues_count":35,"forks_count":64,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T18:18:57.740Z","etag":null,"topics":["hacktoberfest"],"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/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-14T10:05:04.000Z","updated_at":"2025-03-24T18:32:03.000Z","dependencies_parsed_at":"2024-01-10T09:47:02.037Z","dependency_job_id":null,"html_url":"https://github.com/utopia-php/messaging","commit_stats":{"total_commits":60,"total_committers":7,"mean_commits":8.571428571428571,"dds":"0.16666666666666663","last_synced_commit":"5fdf6782ea053064bffd0b83322cfba306c5d14e"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fmessaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fmessaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fmessaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fmessaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/messaging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085325,"owners_count":21045139,"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":["hacktoberfest"],"created_at":"2024-11-16T01:16:25.467Z","updated_at":"2026-04-02T22:53:46.754Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia Messaging\n\n[![Build Status](https://travis-ci.org/utopia-php/abuse.svg?branch=master)](https://travis-ci.com/utopia-php/database)\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/messaging.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nUtopia Messaging library is simple and lite library for sending messages using multiple messaging adapters. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).\n\nAlthough this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free, and can be used as standalone with any other PHP project or framework.\n\n## Getting Started\n\nInstall using composer:\n```bash\ncomposer require utopia-php/messaging\n```\n\n## Email \n\n```php\n\u003c?php\n\nuse \\Utopia\\Messaging\\Messages\\Email;\nuse \\Utopia\\Messaging\\Adapter\\Email\\SendGrid;\nuse \\Utopia\\Messaging\\Adapter\\Email\\Mailgun;\nuse \\Utopia\\Messaging\\Adapter\\Email\\Resend;\n\n$message = new Email(\n    to: ['team@appwrite.io'],\n    subject: 'Hello World',\n    content: '\u003ch1\u003eHello World\u003c/h1\u003e'\n);\n\n$messaging = new Sendgrid('YOUR_API_KEY');\n$messaging-\u003esend($message);\n\n$messaging = new Mailgun('YOUR_API_KEY', 'YOUR_DOMAIN');\n$messaging-\u003esend($message);\n\n$messaging = new Resend('YOUR_API_KEY');\n$messaging-\u003esend($message);\n```\n\n## SMS\n\n```php\n\u003c?php\n\nuse \\Utopia\\Messaging\\Messages\\SMS;\nuse \\Utopia\\Messaging\\Adapter\\SMS\\Twilio;\nuse \\Utopia\\Messaging\\Adapter\\SMS\\Telesign;\n\n$message = new SMS(\n    to: ['+12025550139'],\n    content: 'Hello World'\n);\n\n$messaging = new Twilio('YOUR_ACCOUNT_SID', 'YOUR_AUTH_TOKEN');\n$messaging-\u003esend($message);\n\n$messaging = new Telesign('YOUR_USERNAME', 'YOUR_PASSWORD');\n$messaging-\u003esend($message);\n```\n\n## Push\n\n```php\n\u003c?php\n\nuse \\Utopia\\Messaging\\Messages\\Push;\nuse \\Utopia\\Messaging\\Adapter\\Push\\FCM;\n\n$message = new Push(\n    to: ['eyJhGc...ssw5c'],\n    content: 'Hello World'\n);\n\n$messaging = new FCM('YOUR_SERVICE_ACCOUNT_JSON');\n$messaging-\u003esend($message);\n```\n\n## Adapters\n\n\u003e Want to implement any of the missing adapters or have an idea for another? We would love to hear from you! Please check out our [contribution guide](./CONTRIBUTING.md) and [new adapter guide](./docs/add-new-adapter.md) for more information.\n\n### Email\n- [x] [SendGrid](https://sendgrid.com/)\n- [x] [Mailgun](https://www.mailgun.com/)\n- [x] [Resend](https://resend.com/)\n- [ ] [Mailjet](https://www.mailjet.com/)\n- [ ] [Mailchimp](https://www.mailchimp.com/)\n- [ ] [Postmark](https://postmarkapp.com/)\n- [ ] [SparkPost](https://www.sparkpost.com/)\n- [ ] [SendinBlue](https://www.sendinblue.com/)\n- [ ] [MailSlurp](https://www.mailslurp.com/)\n- [ ] [ElasticEmail](https://elasticemail.com/)\n- [ ] [SES](https://aws.amazon.com/ses/)\n\n### SMS\n- [x] [Twilio](https://www.twilio.com/)\n- [x] [Twilio Notify](https://www.twilio.com/notify)\n- [x] [Telesign](https://www.telesign.com/)\n- [x] [Textmagic](https://www.textmagic.com/)\n- [x] [Msg91](https://msg91.com/)\n- [x] [Vonage](https://www.vonage.com/)\n- [x] [Plivo](https://www.plivo.com/)\n- [x] [Infobip](https://www.infobip.com/)\n- [x] [Clickatell](https://www.clickatell.com/)\n- [ ] [AfricasTalking](https://africastalking.com/)\n- [x] [Sinch](https://www.sinch.com/)\n- [x] [Seven](https://www.seven.io/)\n- [ ] [SmsGlobal](https://www.smsglobal.com/)\n- [x] [Inforu](https://www.inforu.co.il/)\n\n### Push\n- [x] [FCM](https://firebase.google.com/docs/cloud-messaging)\n- [x] [APNS](https://developer.apple.com/documentation/usernotifications)\n- [ ] [OneSignal](https://onesignal.com/)\n- [ ] [Pusher](https://pusher.com/)\n- [ ] [WebPush](https://developer.mozilla.org/en-US/docs/Web/API/Push_API)\n- [ ] [UrbanAirship](https://www.urbanairship.com/)\n- [ ] [Pushwoosh](https://www.pushwoosh.com/)\n- [ ] [PushBullet](https://www.pushbullet.com/)\n- [ ] [Pushy](https://pushy.me/)\n\n## System Requirements\n\nUtopia Messaging requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.\n\n## Tests\n\nTo run all unit tests, use the following Docker command:\n\n```bash\ncomposer test\n```\n\nTo run static code analysis, use the following Psalm command:\n\n```bash\ncomposer lint\n```\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fmessaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Fmessaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fmessaging/lists"}