PHPackages                             shieldfy/shieldfy-yii-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. shieldfy/shieldfy-yii-extension

ActiveYii2-extension[Security](/categories/security)

shieldfy/shieldfy-yii-extension
===============================

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

0.1.3(7y ago)119PHPPHP ~5.6|~7.0

Since Jul 11Pushed 7y ago4 watchersCompare

[ Source](https://github.com/shieldfy/shieldfy-yii-extension)[ Packagist](https://packagist.org/packages/shieldfy/shieldfy-yii-extension)[ Docs](https://github.com/shieldfy/shieldfy-yii-extension)[ RSS](/packages/shieldfy-shieldfy-yii-extension/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Shieldfy Yii2 Extension
=======================

[](#shieldfy-yii2-extension)

Require shieldfy Yii extension
------------------------------

[](#require-shieldfy-yii-extension)

From your console navigate to your application folder and enter the command below:

```
composer require shieldfy/shieldfy-yii-extension

```

for more information about composer click [here](https://getcomposer.org/doc/01-basic-usage.md)

Add Shieldfy Component
----------------------

[](#add-shieldfy-component)

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

Add Shieldfy DB listener
------------------------

[](#add-shieldfy-db-listener)

If you use Yii2 Basic. add shieldfy attachPDO to this file `config/db.php`

```
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`

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Total

4

Last Release

2800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9817b8aec8f20a77d9b89f64e016bdd9c68eafee34fa70a8d09ffe0f35221768?d=identicon)[shieldfy](/maintainers/shieldfy)

---

Top Contributors

[![komtcho](https://avatars.githubusercontent.com/u/12757671?v=4)](https://github.com/komtcho "komtcho (9 commits)")[![netcode](https://avatars.githubusercontent.com/u/286371?v=4)](https://github.com/netcode "netcode (9 commits)")

---

Tags

shieldfyshieldfy-php-clientshieldfy-yii-extension

### Embed Badge

![Health badge](/badges/shieldfy-shieldfy-yii-extension/health.svg)

```
[![Health](https://phpackages.com/badges/shieldfy-shieldfy-yii-extension/health.svg)](https://phpackages.com/packages/shieldfy-shieldfy-yii-extension)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
