2017 © Pedro Peláez
 

yii2-extension shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

image

shieldfy/shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

  • Sunday, July 29, 2018
  • by shieldfy
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Shieldfy Yii2 Extension

Require shieldfy Yii extension

From your console navigate to your application folder and enter the command below:, (*1)

composer require shieldfy/shieldfy-yii-extension

for more information about composer click here, (*2)

Add Shieldfy Component

'bootstrap' => ['shieldfy'],
'components' => [
    ...
    'shieldfy' => [
          'class' => 'Shieldfy\Extensions\Yii\BootstrapLoader',
          'appKey' => '<APP_KEY>',
          'appSecret' => '<APP_SECRET>',
    ],
    ...
]

Add Shieldfy DB listener

If you use Yii2 Basic. add shieldfy attachPDO to this file config/db.php, (*3)

return [
    .....

    'on afterOpen' => function($event) {
            (\Yii::$container->get('shieldfy'))?\Yii::$container->get('shieldfy')->attachPDO($event->sender->pdo):null;
    }
]

If you use Yii2 Advanced. add shieldfy attachPDO to this file common/config/main-local.php, (*4)

return [
    'components' => [
        'db' => [
            ...
            'on afterOpen' => function($event) {
                (\Yii::$container->get('shieldfy'))?\Yii::$container->get('shieldfy')->attachPDO($event->sender->pdo):null;
            },
        ],
        'mailer' => [
        .....
    ],
];

The Versions

29/07 2018

dev-master

9999999-dev https://github.com/shieldfy/shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

  Sources   Download

The Requires

 

shieldfy shieldfy-php-client shieldfy-yii-extension

29/07 2018

0.1.1

0.1.1.0 https://github.com/shieldfy/shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

  Sources   Download

The Requires

 

shieldfy shieldfy-php-client shieldfy-yii-extension

29/07 2018

dev-develop

dev-develop https://github.com/shieldfy/shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

  Sources   Download

The Requires

 

shieldfy shieldfy-php-client shieldfy-yii-extension

11/07 2018

0.1

0.1.0.0 https://github.com/shieldfy/shieldfy-yii-extension

This is the official PHP SDK for Shieldfy (shieldfy.io)

  Sources   Download

The Requires

 

shieldfy shieldfy-php-client shieldfy-yii-extension