PHPackages                             grozzzny/westgate - 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. grozzzny/westgate

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

grozzzny/westgate
=================

Westgate component for yii2 - westgate.market

053PHP

Since Mar 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/grozzzny/westgate)[ Packagist](https://packagist.org/packages/grozzzny/westgate)[ RSS](/packages/grozzzny-westgate/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Westgate component for yii2 - westgate.market
=============================================

[](#westgate-component-for-yii2---westgatemarket)

Installation guide
------------------

[](#installation-guide)

```
$ php composer.phar require grozzzny/westgate "dev-master"
```

### Get token

[](#get-token)

### Set config and token

[](#set-config-and-token)

\\config\\web.php

```
$config = [
    ...
    'components' => [
        ...
        'westgate' => [
            'class' => 'grozzzny\westgate\WestgateComponent',
            'token' => 'qwertyuiop1234567890',
            //'itemObject' => 'main\models\ItemObject',
            //'categoryObject' => 'main\models\CategoryObject',
            //'orderObject' => 'main\models\OrderObject',
        ],
        ...
    ],
    ...
];

return $config;
```

### Examples

[](#examples)

List items:

```
$client = Yii::$app->westgate->itemIndexClient
    ->category($slug)
    ->search($search);
$provider = new WestgateDataProvider(['client' => $client]);
```

View orders:

```
$client = Yii::$app->westgate->orderIndexClient->user(['email' => Yii::$app->user->identity->email]);
$provider = new WestgateDataProvider(['client' => $client]);
```

Get inn:

```
$inn = Yii::$app->westgate->passportInnClient
    ->passportParams($fio, $birthdate, $docnum, $docdt, $dcode)
    ->send();
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/554162fffed79306459e44cdded778e493d695f0229c405b67a717697ab1cc5d?d=identicon)[grozzzny](/maintainers/grozzzny)

---

Top Contributors

[![grozzzny](https://avatars.githubusercontent.com/u/19452327?v=4)](https://github.com/grozzzny "grozzzny (16 commits)")

### Embed Badge

![Health badge](/badges/grozzzny-westgate/health.svg)

```
[![Health](https://phpackages.com/badges/grozzzny-westgate/health.svg)](https://phpackages.com/packages/grozzzny-westgate)
```

###  Alternatives

[letudiant/composer-shared-package-plugin

This composer plugin allows you to share selected packages between your projects with symlinks.

16450.9k1](/packages/letudiant-composer-shared-package-plugin)[tpoxa/shortcodes

Wordpress style shorttags support for Yii2

2313.5k](/packages/tpoxa-shortcodes)

PHPackages © 2026

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