PHPackages                             xandrkat/yii2-check-ishome - 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. xandrkat/yii2-check-ishome

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

xandrkat/yii2-check-ishome
==========================

Simple Yii2 component to check isHome no w or not. Or by url.

01PHP

Since Aug 7Pushed 6y agoCompare

[ Source](https://github.com/xandrkat/yii2-check-ishome)[ Packagist](https://packagist.org/packages/xandrkat/yii2-check-ishome)[ RSS](/packages/xandrkat-yii2-check-ishome/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 IsHome page checker
========================

[](#yii2-ishome-page-checker)

Simple Yii2 component to check isHome no w or not. Or by url.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist xandrkat/yii2-check-ishome "@dev"

```

or add

```
"xandrkat/yii2-check-ishome": "@dev"

```

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

Usage
-----

[](#usage)

add to main.php backend/frontend/app to copmponents aray

```
return [
    //....
    'components' => [
        'isHome' => [
            'class' => 'xandrkat\homepagecheker\isHome',
        ],
    ],
];
```

Then use any do you want) As Simple, currnet url: Return string 'home' or empty string

```
 //- 'home'/'' will be returned

'home'/''

```php
