2017 © Pedro Peláez
 

cakephp-plugin newsletter

Newsletter plugin for CakePHP

image

abolkog/newsletter

Newsletter plugin for CakePHP

  • Tuesday, August 15, 2017
  • by abolkog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Newsletter plugin for CakePHP

This plugins adds a basic News Letter functionality to your CakePHP based application., (*1)

Requirements

  • CakePHP 3.x

Installation

    composer require abolkog/Newsletter
  • Enable the plugin within your config/bootstrap.php, (*2)

    Plugin::load('Newsletter', ['bootstrap' => false, 'routes' => true]);
  • Run the following command in the CakePHP console to create the tables using the Migrations plugin:, (*3)

    bin/cake migrations migrate -p newsletter

Usage

Displaying the Subscribe Form

  • Load the Newsletter component in your controller, (*4)

    $this->loadComponent('Newsletter.Newsletter');
  • Display the form using the SubscribeWidget in your views, (*5)

    <?= $this->SubscribeWidget->show(); ?>

Example

in AppController.php, (*6)

    namespace App\Controller;

    use Cake\Controller\Controller;
    use Cake\Event\Event;

    class AppController extends Controller
    {

        public function initialize()
        {
            parent::initialize();
            $this->loadComponent('Newsletter.Newsletter');
        }
    }

in footer.ctp, (*7)

<footer>
    <div class="row">
        <div class="col-md-3">
            <?= $this->SubscribeWidget->show(); ?>
        </div>
    </div>
</footer>

Accessing the admin area

  • The easiest way is to add the following link to your navigation to access the admin area of the news letter, (*8)

    <?= $this->Html->link('News Letter', ['controller'=>'groups','plugin'=>'Newsletter']) ?>

Sender Shell

The sender shell is used to send out emails as well as showing current emails in the queue, (*9)

  • To list all emails in the queue, (*10)

    bin/cake newsletter.sender  show
  • To start Processing the email queue, (*11)

    bin/cake newsletter.sender  run

    This run command will processs 50 emails per time. you can override it by passing the limit argument, (*12)

    bin/cake newsletter.sender run -l 100
  • To see all available commmands, (*13)

    bin/cake newsletter.sender

License

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file., (*14)

The Versions

15/08 2017

dev-master

9999999-dev

Newsletter plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

newsletter cakephp mailing

15/08 2017

1.0-beta

1.0.0.0-beta

Newsletter plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

newsletter cakephp mailing