Download the PHP package radig/gear-mailer without Composer

On this page you can find all versions of the php package radig/gear-mailer. 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 gear-mailer

h1. Radig GearMailer

Plugin que permite o envio de emails utilizando Gearman e Amazon SES.

h2. Requisitos

h2. Instalação

h3. Utilizando Composer

    composer install radig/gear-mailer

h3. Sem usar Composer

h2. Configuração

Crie uma configuração de email com a seguinte configuração:

public $default = [
    'transport' => 'GearMailer.Gear'
];

Em seu bootstrap.php, incluia as credenciais para envio de email através da API da AWS SES, da seguinte maneira:

Configure::write('GearMailer.credentials', [
    'key'    => 'sua chave AWS',
    'secret' => 'sua chave secreta AWS'
    'region' => ''
]);

Para ativar o Gearman Worker, que é quem efetivamente enviará o email, existem duas opções:

h3. (1) Utilizando Systemd para gerenciar o processo (background)

Edite o arquivo Vendor/gearmailer.service alterando a linha 6 para um valor válido em sua instalação, saindo:

bc. ExecStart=/usr/bin/php ABSOLUTE_PATH_TO_gearman_email_worker.php

E deixando algo como:

bc. ExecStart=/usr/bin/php /srv/www/app/Plugin/GearMailer/Vendor/gearman_email_worker.php

Copie o arquivo resultante e configure no diretório de serviços de sua distribuição. No caso do OpenSUSE, cole o arquivo (como root) no diretório: /usr/lib/systemd/system/gearmailer.service

Habilite o serviço:

bc. systemctl enable gearmailer.service

Inicie o serviço:

bc. systemctl start gearmailer.service

h3. (2) Executando o Console do CakePHP

bc. Console/cake GearMailer.EmailWorker

E deixe o console em execução.

h2. Envio de Email

Basta fazer um envio de email normal utilizando o CakeEmail

    $email = new CakeEmail()
        ->from($from)
        ->to($to)
        ->subject($subject)
        ->send();

h2. Autor e Copyright


All versions of gear-mailer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-gearman Version *
composer/installers Version ~1.0
aws/aws-sdk-php Version 2.*
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 radig/gear-mailer contains the following files

Loading the files please wait ...