Download the PHP package ddebin/yii-ses-feedback without Composer

On this page you can find all versions of the php package ddebin/yii-ses-feedback. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii-ses-feedback

Yii-ses-feedback

Introduction

Does your Yii application use Amazon Simple Email Service (SES) for sending email? If so you can use this extension to process "feedback notifications" such as email bounces and email complaints.

What do we mean by a "email bounce"? We mean a email delivery failure, for example, if an email address does not exist.

What do we mean by a "email complaint"? We mean the recipient has indicated they do not what the email that you sent them, for example, by clicking "Mark as spam" in their email client. Amazon SES has feedback loops set up with certain major ISPs, and can automatically forward the complaint information to us.

Why do you need Yii-ses-feedback?

Requirements

Features

Installation - Manual (The Old Fashion Way)

Extract the package to your extensions folder into a directory called yii-ses-feedback.

Ensure the extension files will be autoloaded by adding a line to the Yii imports config section:

Add the component to your Yii console app config file (e.g. your-project/protected/config/console.php) and define each queue. If you have multiple queues, configure multiple handlers.

Now we need a way to trigger the command. Copy the examples/ExampleSesFeedbackCommand.php file into your commands folder and modify it as you need for your application.

Installation - Automatic (using Composer)

The advantage of using composer is that you wont need to change your Yii import map, the composer autoloader will import the needed files.

Add peopleperhour/yii-ses-feedback as a dependency in your project's composer.json file:

{
    "require": {
        ...
        "peopleperhour/yii-ses-feedback": "dev-master"
    },

Download and install Composer.

curl -s "http://getcomposer.org/installer" | php

Install your dependencies.

php composer.phar update

Require Composer's autoloader. Composer prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process.

require '/path/to/vendor/autoload.php';

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org.

To configure the extension, add a sesFeedback component to your Yii console app config file (e.g. your-project/protected/config/console.php) and define each queue. If you have multiple queues, configure multiple handlers.

Running unit tests

The unit tests do not use a real SQS queue, instead they use a Mock queue implemented as a PHP Array.

In your tests/config.php file, ensure the extension files will be imported and that the sesFeedback component uses the Mock Version:

Go to your application tests directory, usually protected/tests and run the following command:

phpunit --verbose ../extensions/yii-ses-feedback/tests/unit/
or
phpunit --verbose ../vendor/peopleperhour/yii-ses-feedback/tests/unit/

This will run the unit tests, if all went well they should all pass, otherwise please check your configuration.

How to schedule automatic processing

To automatically process your feedback queue periodically, set up a cron job to run the command. Example:

17 3 * * * /usr/bin/php /var/www/yourapp/yiic.php exampleSesFeedback >/dev/null 2>&1

Another way is to use the Yii phpdoc-crontab extension. Once configured, you will be able to define automated Yii commands with some simple PHP header comments, Example:

/**
 * @cron *\10 * * * *
 * @cron-tags live staging
 */
public function actionIndex($maxNum=1000,$leaveFailuresInQueue=false)
{
    return parent::actionIndex($maxNum,$leaveFailuresInQueue);
}

Resources


All versions of yii-ses-feedback with dependencies

PHP Build Version
Package Version
Requires php Version >=5.1.0
aws/aws-sdk-php Version 3.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ddebin/yii-ses-feedback contains the following files

Loading the files please wait ....