{"id":15549268,"url":"https://github.com/eldadfux/mailgun-php-lite","last_synced_at":"2025-05-12T15:24:04.944Z","repository":{"id":56976312,"uuid":"80269815","full_name":"eldadfux/mailgun-php-lite","owner":"eldadfux","description":"A lite and minimalistic PHP library for sending mails using Mailgun API.","archived":false,"fork":false,"pushed_at":"2022-09-21T19:59:35.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T15:24:00.028Z","etag":null,"topics":["mailgun","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/eldadfux.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-01-28T06:12:10.000Z","updated_at":"2024-01-05T06:01:14.000Z","dependencies_parsed_at":"2022-08-21T11:20:40.020Z","dependency_job_id":null,"html_url":"https://github.com/eldadfux/mailgun-php-lite","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldadfux%2Fmailgun-php-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldadfux%2Fmailgun-php-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldadfux%2Fmailgun-php-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldadfux%2Fmailgun-php-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldadfux","download_url":"https://codeload.github.com/eldadfux/mailgun-php-lite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764121,"owners_count":21960517,"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":["mailgun","php"],"created_at":"2024-10-02T13:33:21.653Z","updated_at":"2025-05-12T15:24:04.921Z","avatar_url":"https://github.com/eldadfux.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mailgun PHP Lite\n\nMailgun PHP Lite is a lite and minimalistic PHP client library for sending mails using Mailgun API with no external dependencies.\nThis library was created to provide a very simple curl abstraction for sending mails using the Mailgun HTTP API.\nThis is an alternative to those who need to just send simple mails and think the original PHP Client is to heavy for them and have a to much dependencies.\n\n## Installation\n\n```bash\ncomposer require 'eldadfux/mailgun-lite:1.3.*'\n```\n\n## Example\n\n```php\n$apiKey    = 'your-api-key-here';\n$apiDomain = 'your-api-sending-domain-here';\n\n$mailgun = new \\MailgunLite\\MailgunLite($apiKey, $apiDomain);\n\n$mailgun\n    -\u003esetFrom('team@example.com', 'Team Example')\n    -\u003esetReplyTo('this@gmail.com') // (optional)\n    -\u003esetSchedule(strtotime('next Thursday')) // unix time stamp (optional)\n    -\u003eaddRecipient('user1@example.com', 'User 1 Name')\n    -\u003eaddRecipient('user2@example.com', 'User 2 Name')\n    -\u003eaddRecipient('user3@example.com', 'User 3 Name')\n    -\u003esetSubject('Hello World')\n    -\u003esetText('I am a string')\n    -\u003esetHTML('\u003cb\u003eI am a string\u003c/b\u003e')\n;\n\n// Send Mail\nif(!$mailgun-\u003esend()) {\n    throw new Exception('Problem sending mail: ' . $mailgun-\u003egetError());\n}\n\n// Subscribe to newsletter\n$mailgun-\u003esubscribe('newsletter@example.com', 'user1@example.com');\n\n```\n\n## Contributing\n\nAll code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.\n\nFork the project, create a feature branch, and send us a pull request.\n\n\n### Versioning\n\nFor transparency and insight into our release cycle, and for striving to maintain backward compatibility, This project will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:\n\n`\u003cmajor\u003e.\u003cminor\u003e.\u003cpatch\u003e`\n\nFor more information on SemVer, please visit [http://semver.org/](http://semver.org/).\n\n\n## Requirements\n\nPHP 7+\n\nWe recommend using the latest PHP version whenever possible.\n\n## Author\n\n**Eldad A. Fux**\n\n+ [https://twitter.com/eldadfux](https://twitter.com/eldadfux)\n+ [https://github.com/eldadfux](https://github.com/eldadfux)\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldadfux%2Fmailgun-php-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldadfux%2Fmailgun-php-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldadfux%2Fmailgun-php-lite/lists"}