{"id":14974900,"url":"https://github.com/urchihe/laravel-mailjet","last_synced_at":"2026-03-04T02:01:17.471Z","repository":{"id":57076004,"uuid":"268143146","full_name":"urchihe/laravel-mailjet","owner":"urchihe","description":"This package adds mailjet driver to  laravel7  email transports and enables you send Laravel traditional mails","archived":false,"fork":false,"pushed_at":"2020-06-02T16:41:42.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-22T02:03:45.662Z","etag":null,"topics":["driver","email-transport","laravel-mailjet","laravel7","mail-driver","mailer","mailjet","mailjet-api","mailjet-facade","packagist","transactional-emails"],"latest_commit_sha":null,"homepage":"","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/urchihe.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":"2020-05-30T19:05:38.000Z","updated_at":"2020-06-02T16:41:44.000Z","dependencies_parsed_at":"2022-08-24T13:00:47.970Z","dependency_job_id":null,"html_url":"https://github.com/urchihe/laravel-mailjet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/urchihe/laravel-mailjet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urchihe%2Flaravel-mailjet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urchihe%2Flaravel-mailjet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urchihe%2Flaravel-mailjet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urchihe%2Flaravel-mailjet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urchihe","download_url":"https://codeload.github.com/urchihe/laravel-mailjet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urchihe%2Flaravel-mailjet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"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":["driver","email-transport","laravel-mailjet","laravel7","mail-driver","mailer","mailjet","mailjet-api","mailjet-facade","packagist","transactional-emails"],"created_at":"2024-09-24T13:51:14.538Z","updated_at":"2026-03-04T02:01:17.441Z","avatar_url":"https://github.com/urchihe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Mailjet\n\nLaravel package for handling Mailjet API v3 using this wrapper: \u003chttps://github.com/mailjet/mailjet-apiv3-php\u003e\n\nIt also provides a mailjetTransport for [Laravel mail feature](https://laravel.com/docs/master/mail)\n\n## Installation\n\nFirst, include the package in your dependencies:\n\n    composer require urchihe/laravel-mailjet\n\nThen, you need to add some informations in your configuration files. You can find your Mailjet API key/secret [here](https://app.mailjet.com/account/api_keys)\n\n\n\n* In the services.php file:\n\n```php\n'mailjet' =\u003e [\n    'key' =\u003e env('MAILJET_APIKEY'),\n    'secret' =\u003e env('MAILJET_APISECRET'),\n    'transactional' =\u003e [\n        'call' =\u003e true,\n        'options' =\u003e [\n            'url' =\u003e 'api.mailjet.com',\n            'version' =\u003e 'v3.1',\n            'call' =\u003e true,\n            'secured' =\u003e true\n        ]\n    ],\n    'common' =\u003e [\n        'call' =\u003e true,\n        'options' =\u003e [\n            'url' =\u003e 'api.mailjet.com',\n            'version' =\u003e 'v3',\n            'call' =\u003e true,\n            'secured' =\u003e true\n        ]\n    ]\n]\n```\n\n* In your .env file:\n\n```php\nMAILJET_APIKEY=YOUR_APIKEY\nMAILJET_APISECRET=YOUR_APISECRET\n```\n\n## Full configuration\n\n```php\n'mailjet' =\u003e [\n    'key' =\u003e env('MAILJET_APIKEY'),\n    'secret' =\u003e env('MAILJET_APISECRET'),\n    'transactional' =\u003e [\n        'call' =\u003e true,\n        'options' =\u003e [\n            'url' =\u003e 'api.mailjet.com',\n            'version' =\u003e 'v3.1',\n            'call' =\u003e true,\n            'secured' =\u003e true\n        ]\n    ],\n    'common' =\u003e [\n        'call' =\u003e true,\n        'options' =\u003e [\n            'url' =\u003e 'api.mailjet.com',\n            'version' =\u003e 'v3',\n            'call' =\u003e true,\n            'secured' =\u003e true\n        ]\n    ]\n]\n```\nYou can pass settings to [MailjetClient](https://github.com/mailjet/mailjet-apiv3-php#new--version-120-of-the-php-wrapper-).\n\n* `transactional`: settings to sendAPI client\n* `common`: setting to MailjetClient accessible throught the Facade Mailjet\n\n## Mail driver configuration\n\nIn order to use Mailjet as your Mail driver, you need to update the mail driver in your `config/mail.php` or your `.env` file to `MAIL_MAILER=mailjet`, `MAIL_HOST=in-v3.mailjet.com`, `MAIL_PORT=2525` and to the `mailers` array in `config/mail` add \n```php  \n'mailjet' =\u003e [\n            'transport' =\u003e 'mailjet',\n            'host' =\u003e env('MAIL_HOST'),\n            'port' =\u003e env('MAIL_PORT'),\n            'encryption' =\u003e env('MAIL_ENCRYPTION', 'tls'),\n            'username' =\u003e env('MAIL_USERNAME'),\n            'password' =\u003e env('MAIL_PASSWORD'),\n            'timeout' =\u003e null,\n        ],  \n``` \n.\n\nFor usage, please check the [Laravel mail documentation](https://laravel.com/docs/master/mail)\n\n## Usage\n\nIn order to usage this package, you first need to import Mailjet Facade in your code:\n\n    use Urchihe\\LaravelMailjet\\Facades\\Mailjet;\n\n\nThen, in your code you can use one of the methods available in the MailjetServices.\n\nLow level API methods:\n\n* `Mailjet::get($resource, $args, $options)`\n* `Mailjet::post($resource, $args, $options)`\n* `Mailjet::put($resource, $args, $options)`\n* `Mailjet::delete($resource, $args, $options)`\n\nHigh level API methods:\n\n* `Mailjet::getAllLists($filters)`\n* `Mailjet::createList($body)`\n* `Mailjet::getListRecipients($filters)`\n* `Mailjet::getSingleContact($id)`\n* `Mailjet::createContact($body)`\n* `Mailjet::createListRecipient($body)`\n* `Mailjet::editListrecipient($id, $body)`\n\nFor more informations about the filters you can use in each methods, refer to the [Mailjet API documentation](https://dev.mailjet.com/email-api/v3/apikey/)\n\nAll method return `Mailjet\\Response` or throw a `MailjetException` in case of API error.\n\nYou can also get the Mailjet API client with the method `getClient()` and make your own custom request to Mailjet API.\n\n## ToDo\n\n* Add additional unit tests to increase code coverage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furchihe%2Flaravel-mailjet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furchihe%2Flaravel-mailjet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furchihe%2Flaravel-mailjet/lists"}