summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2026-03-25 14:40:36 +0100
committerhorus2026-03-25 14:40:36 +0100
commit54ef8f3b68efd19dfbbcc21f041105f90976085a (patch)
tree56b27ac77af40e31c8c97164e776a38c5ef6f5c7
parent742526761dea5fe0df74d04c038fb9feb45bce94 (diff)
downloadcurious-54ef8f3b68efd19dfbbcc21f041105f90976085a.tar.gz
config for mailjet
-rw-r--r--composer.json5
-rw-r--r--composer.lock277
-rw-r--r--config/app.php11
-rw-r--r--config/mail.php3
-rw-r--r--config/services.php5
5 files changed, 299 insertions, 2 deletions
diff --git a/composer.json b/composer.json
index 6fd1cfb..110ef30 100644
--- a/composer.json
+++ b/composer.json
@@ -15,6 +15,7 @@
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0",
"laravelium/feed": "^8.0",
+ "mailjet/laravel-mailjet": "^3.0",
"spatie/laravel-sitemap": "^5.9"
},
"require-dev": {
@@ -39,8 +40,10 @@
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
- "Database\\Seeders\\": "database/seeders/"
+ "Database\\Seeders\\": "database/seeders/",
+ "Mailjet\\LaravelMailjet\\": "vendor/mailjet/laravel-mailjet/src"
},
+
"files": [
"app/Libraries/Helper.php"
]
diff --git a/composer.lock b/composer.lock
index 23b5987..64d887a 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "c97598bcd0b13fe4f27a82d39d40f0aa",
+ "content-hash": "275da388c94191f6e56dfce724dab1a2",
"packages": [
{
"name": "asm89/stack-cors",
@@ -1873,6 +1873,142 @@
"time": "2022-04-17T13:12:02+00:00"
},
{
+ "name": "mailjet/laravel-mailjet",
+ "version": "3.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/mailjet/laravel-mailjet.git",
+ "reference": "f1c2ab525c2f99e05b3e811bda9561a9115fd302"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/mailjet/laravel-mailjet/zipball/f1c2ab525c2f99e05b3e811bda9561a9115fd302",
+ "reference": "f1c2ab525c2f99e05b3e811bda9561a9115fd302",
+ "shasum": ""
+ },
+ "require": {
+ "laravel/framework": "~5.1|^6.0|^7.0|^8.0|^9.0",
+ "mailjet/mailjet-apiv3-php": "^1.5.6",
+ "php": "^7.1.3|^8.0",
+ "symfony/mailjet-mailer": "^6.0"
+ },
+ "require-dev": {
+ "fakerphp/faker": "~1",
+ "mockery/mockery": "0.9.*|^1.0",
+ "orchestra/testbench": "3.6|^4.0|^5.0|^6.0",
+ "phpunit/phpunit": "~7.0|^8.0|^9"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Mailjet\\LaravelMailjet\\MailjetServiceProvider"
+ ],
+ "aliases": {
+ "Mailjet": "Mailjet\\LaravelMailjet\\Facades\\Mailjet"
+ }
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Mailjet\\LaravelMailjet\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gaetan DELBART",
+ "email": "gaetan@moltencore.io",
+ "homepage": "https://github.com/gagaXD"
+ },
+ {
+ "name": "Titouan BENOIT",
+ "email": "titouan.benoit@gmx.fr",
+ "homepage": "https://github.com/Nightbr"
+ },
+ {
+ "name": "Mailjet API",
+ "email": "api@mailjet.com",
+ "homepage": "https://dev.mailjet.com/"
+ }
+ ],
+ "description": "Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport",
+ "homepage": "https://github.com/mailjet/laravel-mailjet",
+ "keywords": [
+ "Mailjet",
+ "framework",
+ "laravel",
+ "mailjet API",
+ "mailjet wrapper",
+ "transport"
+ ],
+ "support": {
+ "issues": "https://github.com/mailjet/laravel-mailjet/issues",
+ "source": "https://github.com/mailjet/laravel-mailjet/tree/3.0.3"
+ },
+ "time": "2022-07-06T16:41:42+00:00"
+ },
+ {
+ "name": "mailjet/mailjet-apiv3-php",
+ "version": "v1.5.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/mailjet/mailjet-apiv3-php.git",
+ "reference": "747518ce0eebf64d27e9903441a255c85472a139"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/mailjet/mailjet-apiv3-php/zipball/747518ce0eebf64d27e9903441a255c85472a139",
+ "reference": "747518ce0eebf64d27e9903441a255c85472a139",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "guzzlehttp/guzzle": "^7.4.4",
+ "php": "^7.2|^8.0",
+ "psr/http-client": "^1.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "^1.4",
+ "php-coveralls/php-coveralls": "^2.0",
+ "phpunit/phpunit": "^8|^9"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Mailjet": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mailjet",
+ "email": "dev@mailjet.com",
+ "homepage": "https://dev.mailjet.com"
+ }
+ ],
+ "description": "PHP wrapper for the Mailjet API",
+ "homepage": "https://github.com/mailjet/mailjet-apiv3-php/",
+ "keywords": [
+ "Mailjet",
+ "api",
+ "email",
+ "php",
+ "v3"
+ ],
+ "support": {
+ "issues": "https://github.com/mailjet/mailjet-apiv3-php/issues",
+ "source": "https://github.com/mailjet/mailjet-apiv3-php/tree/v1.5.8"
+ },
+ "time": "2022-10-15T16:24:08+00:00"
+ },
+ {
"name": "monolog/monolog",
"version": "2.8.0",
"source": {
@@ -4373,6 +4509,145 @@
"time": "2022-11-28T18:08:58+00:00"
},
{
+ "name": "symfony/mailer",
+ "version": "v6.1.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/mailer.git",
+ "reference": "42eb71e4bac099cff22fef1b8eae493eb4fd058f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/mailer/zipball/42eb71e4bac099cff22fef1b8eae493eb4fd058f",
+ "reference": "42eb71e4bac099cff22fef1b8eae493eb4fd058f",
+ "shasum": ""
+ },
+ "require": {
+ "egulias/email-validator": "^2.1.10|^3",
+ "php": ">=8.1",
+ "psr/event-dispatcher": "^1",
+ "psr/log": "^1|^2|^3",
+ "symfony/event-dispatcher": "^5.4|^6.0",
+ "symfony/mime": "^5.4|^6.0",
+ "symfony/service-contracts": "^1.1|^2|^3"
+ },
+ "conflict": {
+ "symfony/http-kernel": "<5.4"
+ },
+ "require-dev": {
+ "symfony/http-client-contracts": "^1.1|^2|^3",
+ "symfony/messenger": "^5.4|^6.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Mailer\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Helps sending emails",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/mailer/tree/v6.1.8"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-11-04T07:40:42+00:00"
+ },
+ {
+ "name": "symfony/mailjet-mailer",
+ "version": "v6.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/mailjet-mailer.git",
+ "reference": "50d528664f70ae1184667e2bad8dc2d663695099"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/mailjet-mailer/zipball/50d528664f70ae1184667e2bad8dc2d663695099",
+ "reference": "50d528664f70ae1184667e2bad8dc2d663695099",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.1",
+ "symfony/mailer": "^5.4|^6.0"
+ },
+ "require-dev": {
+ "symfony/http-client": "^5.4|^6.0"
+ },
+ "type": "symfony-mailer-bridge",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Mailer\\Bridge\\Mailjet\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Mailjet Mailer Bridge",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/mailjet-mailer/tree/v6.2.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-10-01T16:55:50+00:00"
+ },
+ {
"name": "symfony/mime",
"version": "v5.4.16",
"source": {
diff --git a/config/app.php b/config/app.php
index 5757ea7..400826a 100644
--- a/config/app.php
+++ b/config/app.php
@@ -175,6 +175,15 @@ return [
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
+ /*
+ * custom
+ */
+ Mailjet\LaravelMailjet\MailjetServiceProvider::class,
+ #Mailjet\LaravelMailjet\MailjetMailServiceProvider::class,
+ #Mailjet\LaravelMailjet\MailjetServiceProvider::class,
+ Mailjet\LaravelMailjet\Providers\MailjetClientServiceProvider::class,
+ Mailjet\LaravelMailjet\Providers\CampaignDraftServiceProvider::class,
+
],
/*
@@ -227,6 +236,8 @@ return [
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
+ 'Mailjet' => Mailjet\LaravelMailjet\Facades\Mailjet::class,
+
],
];
diff --git a/config/mail.php b/config/mail.php
index 67fb340..06c740c 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -60,6 +60,9 @@ return [
'array' => [
'transport' => 'array',
],
+ 'mailjet' => [
+ 'transport' => 'mailjet',
+ ],
],
/*
diff --git a/config/services.php b/config/services.php
index 2a1d616..5d996c8 100644
--- a/config/services.php
+++ b/config/services.php
@@ -30,4 +30,9 @@ return [
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
+ 'mailjet' => [
+ 'key' => env('MAILJET_APIKEY'),
+ 'secret' => env('MAILJET_APISECRET'),
+ ]
+
];