2017 © Pedro Peláez
 

symfony-bundle sendy-bundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

image

tzb/sendy-bundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  • Thursday, February 22, 2018
  • by jkabat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 20 % Grown

The README.md

SendyBundle

Scrutinizer Code Quality Build Status, (*1)

This bundle is used to integrate the SendyPHP class from Jacob Bennett into a symfony2 project., (*2)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*3)

$ composer require jkabat/sendy-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*4)

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*5)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...

            new Sendy\SendyBundle\SendyBundle(),
        ];

        // ...
    }

    // ...
}

Step 3: Configure sendy_manager Service

# app/config/config.yml
sendy:
    api_key: sendy_api_key
    api_host: https://sendy.installation.url
    list_id: default_list_id

Usage

Get count of total active subscribers for default list:, (*6)

// get service
$sendy = $this->container->get('sendy.sendy_manager');
$count = $sendy->getSubscriberCount();

Get count of total active subscribers for other list:, (*7)

$sendy = $this->container->get('sendy.sendy_manager');
$count = $sendy->getSubscriberCount('other_list_id');

Get status of subscriber identified by e-mail:, (*8)

$sendy = $this->container->get('sendy.sendy_manager');
$status = $sendy->getSubscriberStatus('email@example.com');

Subscribe user to default list (other list id can be used as third parameter):, (*9)

$sendy = $this->container->get('sendy.sendy_manager');
$status = $sendy->subscribe('Name', 'email@example.com');

Unsubscribe user from default list (other list id can be used as second parameter):, (*10)

$sendy = $this->container->get('sendy.sendy_manager');
$status = $sendy->unsubscribe('email@example.com');

The Versions

22/02 2018

dev-master

9999999-dev https://github.com/jkabat/TzbSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

22/02 2018

v1.0.6

1.0.6.0 https://github.com/jkabat/TzbSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

14/01 2015

v1.0.5

1.0.5.0 https://github.com/jkabat/TzbSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

19/12 2014

v1.0.4

1.0.4.0 https://github.com/jkabat/TbzSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

16/12 2014

v1.0.3

1.0.3.0 https://github.com/jkabat/TbzSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

12/12 2014

v1.0.2

1.0.2.0 https://github.com/jkabat/TbzSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

11/12 2014

v1.0.1

1.0.1.0 https://github.com/jkabat/TbzSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co

11/12 2014

v1.0.0

1.0.0.0 https://github.com/jkabat/TbzSendyBundle

Symfony2 bundle that integrates SendyPHP class from Jacob Bennett: https://github.com/JacobBennett/SendyPHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juraj Kabát

newsletter sendy integration sendy.co