2017 © Pedro Peláez
 

yii2-extension yii2unisender

yii2 unisender extension

image

matperez/yii2unisender

yii2 unisender extension

  • Tuesday, January 31, 2017
  • by matperez
  • Repository
  • 2 Watchers
  • 3 Stars
  • 216 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 2 % Grown

The README.md

yii2 unisender

yii2 unisender extension, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist matperez/yii2unisender "~1.0"

or add, (*4)

"matperez/yii2unisender": "~1.0"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)


'components' => [ 'unisender' => [ 'class' => \matperez\yii2unisender\UniSender::class, 'apiConfig' => [ 'apiKey' => '...' ], ]

You can also use it with the dependency container:, (*7)


Yii::$container->setSingleton(\matperez\yii2unisender\UniSenderInterface::class, function() { return Yii::$app->unisender; });

For now it's supports the following operations:, (*8)

Get a user fields array:, (*9)


$fields = $unisender->getFields()->getResult;

Get an available subscriptions list:, (*10)


$list = $unisender->getLists()->getResult();

Create a new subscription:, (*11)


$sub = new Subscriber($name, $email, $phone); $sub->addTag('something'); $response = $unisender->subscribe($sub, [12315, 14333]); if ($response->isSuccess()) { $personId = $response->getResult()['person_id']; // .... do something with the person id }

Get the "native" API instance:, (*12)


$api = $unisender->getApi(); $api->doSomethingViaMagicCall();

Tests

Just run phpunit, (*13)

The Versions

31/01 2017

dev-master

9999999-dev

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

31/01 2017

1.1.2

1.1.2.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

19/08 2016

1.1.1

1.1.1.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

19/08 2016

1.1.0

1.1.0.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

05/11 2015

1.0.7

1.0.7.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

07/10 2015

1.0.6

1.0.6.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

06/10 2015

1.0.5

1.0.5.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

05/10 2015

1.0.4

1.0.4.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

05/10 2015

1.0.3

1.0.3.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

05/10 2015

1.0.2

1.0.2.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2

05/10 2015

1.0.1

1.0.1.0

yii2 unisender extension

  Sources   Download

BSD

The Requires

 

The Development Requires

by Andrey Golovin

extension yii2