ソースを参照

Merge branch 'feature/backend/envoi_mails_mailjet' into dev

refactoring
コミット
7e6c4f0c6b
16個のファイルの変更469行の追加257行の削除
  1. +17
    -1
      backend/controllers/UserController.php
  2. +39
    -14
      backend/models/MailForm.php
  3. +31
    -2
      backend/views/user/emails.php
  4. +1
    -1
      backend/views/user/index.php
  5. バイナリ
      backend/web/.sass-cache/2a0ffb00578c9d5a537db16d14c734a22b18f35c/screen.scssc
  6. +5
    -0
      backend/web/css/screen.css
  7. +2
    -1
      backend/web/sass/screen.scss
  8. +7
    -0
      backend/web/sass/user/_emails.scss
  9. +2
    -1
      common/config/.gitignore
  10. +2
    -0
      common/config/mailjet/.htaccess
  11. +22
    -0
      common/models/Producer.php
  12. +2
    -1
      composer.json
  13. +284
    -234
      composer.lock
  14. +1
    -1
      vendor/composer/autoload_files.php
  15. +1
    -0
      vendor/composer/autoload_namespaces.php
  16. +53
    -1
      vendor/composer/installed.json

+ 17
- 1
backend/controllers/UserController.php ファイルの表示

@@ -39,6 +39,8 @@ termes.
namespace backend\controllers;

use common\models\User ;
use common\models\Producer ;
use backend\models\MailForm ;

/**
* UserController implements the CRUD actions for User model.
@@ -234,11 +236,25 @@ class UserController extends BackendController
if($idPointSale) {
$pointSale = PointSale::findOne(['id' => $idPointSale]) ;
}
$mailForm = new MailForm() ;
if ($mailForm->load(Yii::$app->request->post()) && $mailForm->validate()) {
$resultSendEmail = $mailForm->sendEmail($users) ;
if($resultSendEmail) {
Yii::$app->getSession()->setFlash('success', 'Votre email a bien été envoyé.');
}
else {
Yii::$app->getSession()->setFlash('error', 'Un problème est survenu lors de l\'envoi de votre email.');
}
return $this->redirect(['mail','idPointSale' => $idPointSale]);
}

return $this->render('emails', [
'usersArray' => $usersArray,
'pointsSaleArray' => $pointsSaleArray,
'pointSale' => $pointSale
'pointSale' => $pointSale,
'mailForm' => $mailForm,
]);
}


+ 39
- 14
backend/models/MailForm.php ファイルの表示

@@ -48,7 +48,7 @@ class MailForm extends Model
{

public $subject;
public $body;
public $message;

/**
* @inheritdoc
@@ -56,8 +56,7 @@ class MailForm extends Model
public function rules()
{
return [
// name, email, subject and body are required
[['subject', 'body'], 'required', 'message' => 'Champs obligatoire'],
[['subject', 'message'], 'required', 'message' => 'Champs obligatoire'],
];
}

@@ -68,24 +67,50 @@ class MailForm extends Model
{
return [
'subject' => 'Sujet',
'body' => 'Message',
'message' => 'Message',
];
}

/**
* Sends an email to the specified email address using the information collected by this model.
* Envoie un email aux utilisateurs d'un point de vente ou à tous les
* utilisateurs d'un producteur.
*
* @param string $email the target email address
* @return boolean whether the email was sent
* @param integer $idPointSale ID du point de vente
*/
public function sendEmail($email)
public function sendEmail($usersArray)
{
return Yii::$app->mailer->compose()
->setTo($email)
->setFrom(['contact@laboiteapain.net' => 'Laboîte à pain'])
->setSubject($this->subject)
->setTextBody($this->body)
->send();
$producer = Producer::getCurrent() ;
$mj = new \Mailjet\Client(
$producer->getApiKeyMailjet('public'),
$producer->getApiKeyMailjet('private'),
true,
['version' => 'v3.1']
);

$body = ['Messages' => []] ;
foreach($usersArray as $user) {
$body['Messages'][] = [
'From' => [
'Email' => $producer->slug.'@laboiteapain.net',
'Name' => $producer->name
],
'To' => [
[
'Email' => $user['email'],
'Name' => $user['name'].' '.$user['lastname']
]
],
'Subject' => $this->subject,
'TextPart' => $this->message,
'HTMLPart' => nl2br($this->message)
] ;
}
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]);
return $response->success() ;
}

}

+ 31
- 2
backend/views/user/emails.php ファイルの表示

@@ -37,6 +37,7 @@ termes.
*/

use yii\helpers\Html ;
use yii\widgets\ActiveForm;

$this->setTitle('Liste des emails') ;
$this->addBreadcrumb(['label' => 'Utilisateurs', 'url' => ['user/index']]) ;
@@ -44,7 +45,6 @@ $this->addBreadcrumb($this->getTitle()) ;

?>

<h3><?= count($usersArray); ?> utilisateurs</h3>
<ul id="tabs-points-sale" class="nav nav-tabs" role="tablist">
<li class="<?php if(!isset($pointSale)): ?>active<?php endif; ?>">
<a href="<?= Yii::$app->urlManager->createUrl(['user/mail']); ?>">Tous</a>
@@ -56,5 +56,34 @@ $this->addBreadcrumb($this->getTitle()) ;
<?php endforeach; ?>
</ul>

<?= implode(', ', $usersArray); ?>
<div id="">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Envoyer un message</h3>
</div>
<div class="panel-body">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($mailForm, 'subject')->textInput() ; ?>
<?= $form->field($mailForm, 'message')->textarea(['rows' => '15']) ; ?>
<div class="form-group">
<?= Html::submitButton( 'Envoyer', ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Liste des emails <span class="label label-default"><?= count($usersArray); ?></span></h3>
</div>
<div class="panel-body">
<?= implode(', ', $usersArray); ?>
</div>
</div>
</div>
<div class="clr"></div>
</div>



+ 1
- 1
backend/views/user/index.php ファイルの表示

@@ -62,7 +62,7 @@ $this->addButton(['label' => '+', 'url' => 'user/create', 'class' => 'btn btn-pr
</li>
</ul>

<?= Html::a('<span class="glyphicon glyphicon-envelope"></span> Liste des emails', ['mail', 'idPointSale' => $idPointSaleActive], ['class' => 'btn btn-default btn-liste-emails']) ?>
<?= Html::a('<span class="glyphicon glyphicon-envelope"></span> Envoyer un email', ['mail', 'idPointSale' => $idPointSaleActive], ['class' => 'btn btn-default btn-liste-emails']) ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,

バイナリ
backend/web/.sass-cache/2a0ffb00578c9d5a537db16d14c734a22b18f35c/screen.scssc ファイルの表示


+ 5
- 0
backend/web/css/screen.css ファイルの表示

@@ -1906,3 +1906,8 @@ termes.
-webkit-transform: scale(1.1);
transform: scale(1.1);
}

/* line 3, ../sass/user/_emails.scss */
.user-mail #tabs-points-sale {
margin-bottom: 20px;
}

+ 2
- 1
backend/web/sass/screen.scss ファイルの表示

@@ -1336,4 +1336,5 @@ a {
@import "subscription/_index.scss" ;
@import "product/_index.scss" ;
@import "stats/_products.scss" ;
@import "distribution/_index.scss" ;
@import "distribution/_index.scss" ;
@import "user/_emails.scss" ;

+ 7
- 0
backend/web/sass/user/_emails.scss ファイルの表示

@@ -0,0 +1,7 @@

.user-mail {
#tabs-points-sale {
margin-bottom: 20px ;
}
}


+ 2
- 1
common/config/.gitignore ファイルの表示

@@ -1,4 +1,5 @@
main-local.php
params-local.php

payplug/*.key
payplug/*.key
mailjet/*.key

+ 2
- 0
common/config/mailjet/.htaccess ファイルの表示

@@ -0,0 +1,2 @@
Order deny, allow
Deny from all

+ 22
- 0
common/models/Producer.php ファイルの表示

@@ -450,6 +450,28 @@ class Producer extends ActiveRecordCommon
return '' ;
}
public function getApiKeyMailjet($type = 'private')
{
$filename = '../../common/config/mailjet/api.key' ;
$handle = fopen($filename, "r") ;
$filesize = filesize($filename) ;
if($handle && $filesize) {
$apiKeys = fread($handle, $filesize);
fclose($handle);
$apiKeysArray = explode(':', $apiKeys) ;
if(count($apiKeysArray) == 2) {
if($type == 'private') {
return $apiKeysArray[1] ;
}
else {
return $apiKeysArray[0] ;
}
}
}
return '' ;
}

}

+ 2
- 1
composer.json ファイルの表示

@@ -24,7 +24,8 @@
"c006/yii2-paypal-ipn": "dev-master",
"yurkinx/yii2-image": "dev-master",
"dmstr/yii2-adminlte-asset": "^2.1",
"payplug/payplug-php": "^2.5"
"payplug/payplug-php": "^2.5",
"mailjet/mailjet-apiv3-php": "^1.4"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",

+ 284
- 234
composer.lock ファイルの表示

@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "5eae43b75a894cf9e05c0139af939cec",
"content-hash": "24a00e67ce5bfd36a1a768c7a615e6a3",
"hash": "2a564b71f3dac99e36518f58a67f4245",
"content-hash": "49af3d5f9b5f0cb2ef34661e33f27903",
"packages": [
{
"name": "2amigos/yii2-chartjs-widget",
@@ -836,6 +836,187 @@
],
"time": "2016-10-24 15:52:54"
},
{
"name": "guzzlehttp/guzzle",
"version": "6.3.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699",
"reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699",
"shasum": ""
},
"require": {
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.4",
"php": ">=5.5"
},
"require-dev": {
"ext-curl": "*",
"phpunit/phpunit": "^4.0 || ^5.0",
"psr/log": "^1.0"
},
"suggest": {
"psr/log": "Required for using the Log middleware"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "6.2-dev"
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"GuzzleHttp\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle is a PHP HTTP client library",
"homepage": "http://guzzlephp.org/",
"keywords": [
"client",
"curl",
"framework",
"http",
"http client",
"rest",
"web service"
],
"time": "2017-06-22 18:50:49"
},
{
"name": "guzzlehttp/promises",
"version": "v1.3.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"shasum": ""
},
"require": {
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle promises library",
"keywords": [
"promise"
],
"time": "2016-12-20 10:07:11"
},
{
"name": "guzzlehttp/psr7",
"version": "1.4.2",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
"shasum": ""
},
"require": {
"php": ">=5.4.0",
"psr/http-message": "~1.0"
},
"provide": {
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Psr7\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
}
],
"description": "PSR-7 message implementation that also provides common utility methods",
"keywords": [
"http",
"message",
"request",
"response",
"stream",
"uri",
"url"
],
"time": "2017-03-20 17:10:46"
},
{
"name": "kartik-v/yii2-mpdf",
"version": "dev-master",
@@ -888,6 +1069,56 @@
],
"time": "2017-01-14 11:51:12"
},
{
"name": "mailjet/mailjet-apiv3-php",
"version": "v1.4.1",
"source": {
"type": "git",
"url": "https://github.com/mailjet/mailjet-apiv3-php.git",
"reference": "9d89b9a424a9631bff8e499cbbe34058481e8102"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mailjet/mailjet-apiv3-php/zipball/9d89b9a424a9631bff8e499cbbe34058481e8102",
"reference": "9d89b9a424a9631bff8e499cbbe34058481e8102",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "~6.0|~5.3",
"php": ">=5.4.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "^1.0",
"phpunit/phpunit": "^4.8"
},
"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"
],
"time": "2018-10-31 13:24:45"
},
{
"name": "mpdf/mpdf",
"version": "v6.1.3",
@@ -985,6 +1216,56 @@
"homepage": "https://www.payplug.com",
"time": "2015-05-06 00:00:00"
},
{
"name": "psr/http-message",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"time": "2016-08-06 14:39:51"
},
{
"name": "rmrevin/yii2-fontawesome",
"version": "2.17.1",
@@ -1394,7 +1675,7 @@
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yurkinx/yii2-image/zipball/2737b1ef4cefbc4c664892c6b9f29847fcf72c56",
"url": "https://api.github.com/repos/yurkinx/yii2-image/zipball/590795d0e94c909c636cba1007a619012e118ac9",
"reference": "2737b1ef4cefbc4c664892c6b9f29847fcf72c56",
"shasum": ""
},
@@ -1768,187 +2049,6 @@
],
"time": "2016-04-29 12:21:54"
},
{
"name": "guzzlehttp/guzzle",
"version": "6.3.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699",
"reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699",
"shasum": ""
},
"require": {
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.4",
"php": ">=5.5"
},
"require-dev": {
"ext-curl": "*",
"phpunit/phpunit": "^4.0 || ^5.0",
"psr/log": "^1.0"
},
"suggest": {
"psr/log": "Required for using the Log middleware"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "6.2-dev"
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"GuzzleHttp\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle is a PHP HTTP client library",
"homepage": "http://guzzlephp.org/",
"keywords": [
"client",
"curl",
"framework",
"http",
"http client",
"rest",
"web service"
],
"time": "2017-06-22 18:50:49"
},
{
"name": "guzzlehttp/promises",
"version": "v1.3.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"shasum": ""
},
"require": {
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle promises library",
"keywords": [
"promise"
],
"time": "2016-12-20 10:07:11"
},
{
"name": "guzzlehttp/psr7",
"version": "1.4.2",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
"shasum": ""
},
"require": {
"php": ">=5.4.0",
"psr/http-message": "~1.0"
},
"provide": {
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Psr7\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
}
],
"description": "PSR-7 message implementation that also provides common utility methods",
"keywords": [
"http",
"message",
"request",
"response",
"stream",
"uri",
"url"
],
"time": "2017-03-20 17:10:46"
},
{
"name": "myclabs/deep-copy",
"version": "1.7.0",
@@ -2741,56 +2841,6 @@
],
"time": "2017-08-03 14:08:16"
},
{
"name": "psr/http-message",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"time": "2016-08-06 14:39:51"
},
{
"name": "psr/log",
"version": "1.0.2",

+ 1
- 1
vendor/composer/autoload_files.php ファイルの表示

@@ -10,7 +10,7 @@ return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
'2c102faa651ef8ea5874edb585946bce' => $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php',
'6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
);

+ 1
- 0
vendor/composer/autoload_namespaces.php ファイルの表示

@@ -10,6 +10,7 @@ return array(
'cebe\\gravatar\\' => array($vendorDir . '/cebe/yii2-gravatar'),
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src'),
'Payplug\\' => array($vendorDir . '/payplug/payplug-php/lib'),
'Mailjet' => array($vendorDir . '/mailjet/mailjet-apiv3-php/src'),
'HTMLPurifier' => array($vendorDir . '/ezyang/htmlpurifier/library'),
'Diff' => array($vendorDir . '/phpspec/php-diff/lib'),
'Behat\\Gherkin' => array($vendorDir . '/behat/gherkin/src'),

+ 53
- 1
vendor/composer/installed.json ファイルの表示

@@ -1280,7 +1280,7 @@
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yurkinx/yii2-image/zipball/2737b1ef4cefbc4c664892c6b9f29847fcf72c56",
"url": "https://api.github.com/repos/yurkinx/yii2-image/zipball/590795d0e94c909c636cba1007a619012e118ac9",
"reference": "2737b1ef4cefbc4c664892c6b9f29847fcf72c56",
"shasum": ""
},
@@ -4400,5 +4400,57 @@
],
"description": "A simple PHP library for PayPlug public API.",
"homepage": "https://www.payplug.com"
},
{
"name": "mailjet/mailjet-apiv3-php",
"version": "v1.4.1",
"version_normalized": "1.4.1.0",
"source": {
"type": "git",
"url": "https://github.com/mailjet/mailjet-apiv3-php.git",
"reference": "9d89b9a424a9631bff8e499cbbe34058481e8102"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mailjet/mailjet-apiv3-php/zipball/9d89b9a424a9631bff8e499cbbe34058481e8102",
"reference": "9d89b9a424a9631bff8e499cbbe34058481e8102",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "~6.0|~5.3",
"php": ">=5.4.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "^1.0",
"phpunit/phpunit": "^4.8"
},
"time": "2018-10-31 13:24:45",
"type": "library",
"installation-source": "dist",
"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"
]
}
]

読み込み中…
キャンセル
保存