PHPackages                             andrij200390/yii2-subscribe - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrij200390/yii2-subscribe

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

andrij200390/yii2-subscribe
===========================

Subscription extension in yii2. Send data in google spreadsheet

037PHP

Since Apr 10Pushed 7y agoCompare

[ Source](https://github.com/andrij200390/subscribe)[ Packagist](https://packagist.org/packages/andrij200390/yii2-subscribe)[ RSS](/packages/andrij200390-yii2-subscribe/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-subscribe
==============

[](#yii2-subscribe)

This is a simple bottom slide-in panel subscription module for Yii2. Can send data into Google Spreadsheets.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist andrij200390/yii2-subscribe "*"

```

or add

```
"andrij200390/yii2-subscribe": "*"

```

to the require section of your `composer.json` file.

Documentation
-------------

[](#documentation)

This plugin has 3 working modes so far (and one utility):

- *as array:* `['telegram', 'instagram', 'vk']`
- *as string:* `email`
- *as string:* `telegram`
- *as string:* `disabled`

> NOTE: In order to sync your data with Google Spreadsheets, follow the guide [here](https://www.twilio.com/blog/2017/03/google-spreadsheets-and-php.html). You will need to generate your `client_secret.json` file and store it in your environment for later usage.

**\[\]** array mode shows links to all services.
**email** mode can store user input data in Google Spreadsheet.
**telegram** mode simply shows predefined link to your channel.
**disabled** mode allows not to render subscription panel without actual plugin removal (i.e. if you need to disable panel temporary).

Usage
-----

[](#usage)

Once the extension is installed, simply put this code in desired view (full list of parameters included):

```
use andrij200390\subscribe\Subscribe;

echo Subscribe::widget([
    'mode' => 'email', /* 'email' or 'telegram' or ['telegram', 'instagram']. Default: 'disabled' */
    'cookie' => [
        'name' => 'subscribe', /* NOT IMPLEMENTED YET - hardcoded in JS */
        'max-age' => 0, /* NOT IMPLEMENTED YET - hardcoded in JS */
    ],
    'style' => [
        'background' => 'dark', /* `green`, `blue`, `dark` - applies as a modifier to class name */
        'textcolor' => 'white' /* `black`, `white` - applies as a modifier to class name  */
    ]
    'email' => [
        'message' => '', /* Main text for email subscription */
        'submitButtonText' => '', /* Text for send button */
        'placeholderText' => '', /* Text inside input placeholder */
    ],
    'telegram' => [
        'message' => '', /* Main text for Telegram subscription */
        'submitButtonText' => '', /* Text for subscription button */
        'channelName' => '', /* i.e. `outstyle` */
    ],
    'instagram' => [
        'message' => '', /* Main text for Instagram subscription */
        'submitButtonText' => '', /* Text for subscription button */
        'channelName' => '', /* i.e. `outstyle` */
    ],
    'vk' => [
        'message' => '', /* Main text for VK subscription */
        'submitButtonText' => '', /* Text for subscription button */
        'channelName' => '', /* i.e. `outstyle` */
    ],
    'all' => [
        'message' => '' /* General message for all services */
    ],
    'provider' => [
        'google' => [
            'spreadsheet' => [
                'title' => '',
                'column' => '',
            ],
            'clientSecretJSON' => '' /* To be documented yet */
        ]
    ]
]);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 69.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/58fd3ea7e7fd2cc0a7aff16e5ce35cd61555ee9c3531194f62359b75e7679955?d=identicon)[andrij200390](/maintainers/andrij200390)

---

Top Contributors

[![andrij200390](https://avatars.githubusercontent.com/u/22377814?v=4)](https://github.com/andrij200390 "andrij200390 (16 commits)")[![scsmash3r](https://avatars.githubusercontent.com/u/4781532?v=4)](https://github.com/scsmash3r "scsmash3r (7 commits)")

### Embed Badge

![Health badge](/badges/andrij200390-yii2-subscribe/health.svg)

```
[![Health](https://phpackages.com/badges/andrij200390-yii2-subscribe/health.svg)](https://phpackages.com/packages/andrij200390-yii2-subscribe)
```

PHPackages © 2026

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