PHPackages                             yongtiger/yii2-application - 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. [Framework](/categories/framework)
4. /
5. yongtiger/yii2-application

ActiveYii2-extension[Framework](/categories/framework)

yongtiger/yii2-application
==========================

1.1.0(9y ago)1302MITPHPPHP &gt;=5.5

Since Mar 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yongtiger/yii2-application)[ Packagist](https://packagist.org/packages/yongtiger/yii2-application)[ Docs](http://www.branbook.cc)[ RSS](/packages/yongtiger-yii2-application/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (2)

Yii2-application releas version 1.1.0 (#ADD backend:isAdminEnd)
===============================================================

[](#yii2-application-releas-version-110-add-backendisadminend)

[![Latest Stable Version](https://camo.githubusercontent.com/72add7cbaa1a973fc66db833853e8ddce6c728fedd3a21462763b0748db6dbbd/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d6170706c69636174696f6e2f762f737461626c65)](https://packagist.org/packages/yongtiger/yii2-application)[![Total Downloads](https://camo.githubusercontent.com/2af1d8eea122b4849b5c9f2e255163bcbbd1a7fae8691845470b153e94d668cb/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d6170706c69636174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/yongtiger/yii2-application)[![Latest Unstable Version](https://camo.githubusercontent.com/5aba976608b47d4d1e9ed219d57ac8a44877df91d234554a1a08f99e476a474e/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d6170706c69636174696f6e2f762f756e737461626c65)](https://packagist.org/packages/yongtiger/yii2-application)[![License](https://camo.githubusercontent.com/895bbfc8fb02ad14d6abaedf2e020589ea0e0cdcd51dcb300d9e81b7c2b29323/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d6170706c69636174696f6e2f6c6963656e7365)](https://packagist.org/packages/yongtiger/yii2-application)

FEATURES
--------

[](#features)

- `beforeInit()` and `afterInit()` in application
- remote appplication callback, e.g. calling frontend cache flushing from backend

DEPENDENCES
-----------

[](#dependences)

INSTALLATION
------------

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yongtiger/yii2-application "*"

```

or add

```
"yongtiger/yii2-application": "*"
```

to the require section of your composer.json.

CONFIGURATION
-------------

[](#configuration)

- \\common\\config\\params.php

```
'yongtiger.application.remoteAppConfigs' => [
    'app-backend' => [
        'class' => 'backend\\components\\Application',	///optional
        '@common/config/main.php',
        '@common/config/main-local.php',
        '@backend/config/main.php',
        '@backend/config/main-local.php',
    ],
    'app-frontend' => [
        'class' => 'frontend\\components\\Application',	///optional
        '@common/config/main.php',
        '@common/config/main-local.php',
        '@frontend/config/main.php',
        '@frontend/config/main-local.php',
    ],
],
```

USAGE
-----

[](#usage)

- `beforeInit()` and `afterInit()`

```
class Application extends \yongtiger\application\Application
{
    /**
     * @inheritdoc
     */
    public function beforeInit() {

        parent::beforeInit();

        ///[v0.10.5 (filter theme bootstrap)]
        ///You can still run without yii2 extension `yongtiger/yii-theme`.
        ///Note: Cannot use `class_exists('yongtiger\\theme\\Bootstrap')` before application init!
        if (is_file($this->getVendorPath() . DIRECTORY_SEPARATOR . 'yongtiger'. DIRECTORY_SEPARATOR . 'yii2-theme' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Bootstrap.php')) {

            \yongtiger\theme\Bootstrap::filterExtensionsBootstrap();

        }

    }

    /**
     * @inheritdoc
     */
    public function afterInit() {

        parent::afterInit();

    }
}
```

- remote appplication callback

```
Application::remoteAppCall('app-frontend', function($app) {
    $app->cache->flush();
}, function ($config) {
    unset($config['bootstrap']);    ///[yii2-brainbase v0.3.0 (admin:rbac):fix Yii debug disappear in route]
    return $config;
});
```

NOTES
-----

[](#notes)

DOCUMENTS
---------

[](#documents)

SEE ALSO
--------

[](#see-also)

TODO
----

[](#todo)

[Development roadmap](docs/development-roadmap.md)
--------------------------------------------------

[](#development-roadmap)

LICENSE
-------

[](#license)

**Yii2-application** is released under the MIT license, see [LICENSE](https://opensource.org/licenses/MIT) file for details.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~1 days

Total

4

Last Release

3394d ago

Major Versions

v0.0.0 → 1.0.02017-03-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/4419bd4781ece5b372f87972d5559c6a9ff305d8600fcf99409ce072922b9771?d=identicon)[yongtiger](/maintainers/yongtiger)

---

Tags

yii2extensionapplication

### Embed Badge

![Health badge](/badges/yongtiger-yii2-application/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13725.7k53](/packages/skeeks-cms)[vova07/yii2-start

Yii2-Start it's a small Yii 2 application template for your fast project start.

26811.1k7](/packages/vova07-yii2-start)[marekpetras/yii2-ajax-box-widget

Ajax Box widget for Yii 2 Framework.

1715.0k](/packages/marekpetras-yii2-ajax-box-widget)

PHPackages © 2026

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