PHP code example of ddebin / yii-ses-feedback
1. Go to this page and download the library: Download ddebin/yii-ses-feedback library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ddebin / yii-ses-feedback example snippets
return array(
'import' => array(
// ...
'ext.yii-ses-feedback.*',
),
return array(
// ...
'components'=>array(
// ...
'sesFeedback' => array(
'class' => 'ext.yii-ses-feedback.ASesFeedback',
'handlers' => array(
'bounceAndComplaint' => array(
'class' => 'ext.yii-ses-feedback.ASesFeedbackHandler',
'accessKey' => 'DKIASHFUSET2X3G5JR5D',
'secretKey' => 'fAXKA2GdslDlGXIbdZNty4Ag4eig453yOfFuffr4',
'region' => 'us-east-1',
'queueName' => 'bounces_and_complaints',
),
)
),
// ...
),
// ...
);
return array(
// ...
'components'=>array(
// ...
'sesFeedback' => array(
'class' => '\ASesFeedback', // Composer autoloading needs to a prepended backslash
'handlers' => array(
'bounceAndComplaint' => array(
'class' => '\ASesFeedbackHandler', // Composer autoloading needs to a prepended backslash
'accessKey' => 'DKIASHFUSET2X3G5JR5D',
'secretKey' => 'fAXKA2GdslDlGXIbdZNty4Ag4eig453yOfFuffr4',
'region' => 'us-east-1',
'queueName' => 'bounces_and_complaints',
),
)
),
// ...
),
// ...
);
return array(
// ...
'import' => array(
// ...
'application.extensions.yii-ses-feedback.*', // Not needed if using composer auto-loader
),
// ...
'components'=>array(
// ...
'sesFeedback' => array(
'class' => 'ext.yii-ses-feedback.ASesFeedback', // or '\ASesFeedback' if using the composer autoloader.
'handlers' => array(
'myMockQueue' => array(
'class' => 'ext.yii-ses-feedback.tests.mocks.ASesFeedbackHandlerMock', // or '\ASesFeedbackHandlerMock'
),
)
),
),
);