PHPackages                             dmirogin/yii2-js-urlmanager - 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. dmirogin/yii2-js-urlmanager

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

dmirogin/yii2-js-urlmanager
===========================

Yii2 javascript URL manager

1.2.2(2y ago)5318.0k↑25%6[2 issues](https://github.com/dmirogin/yii2-js-urlmanager/issues)1MITTypeScriptPHP &gt;=5.5.0

Since Jul 2Pushed 2y ago4 watchersCompare

[ Source](https://github.com/dmirogin/yii2-js-urlmanager)[ Packagist](https://packagist.org/packages/dmirogin/yii2-js-urlmanager)[ RSS](/packages/dmirogin-yii2-js-urlmanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (7)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/3e6ca07354d9be5775728b972c745374de7d1222685f129ffcd1a90055ecabdd/68747470733a2f2f706f7365722e707567782e6f72672f646d69726f67696e2f796969322d6a732d75726c6d616e616765722f762f737461626c65)](https://packagist.org/packages/dmirogin/yii2-js-urlmanager)[![License](https://camo.githubusercontent.com/15196a4576a7a6701dbfc214f986c640aa91ce0f1804301319d61ffe3af11f8c/68747470733a2f2f706f7365722e707567782e6f72672f646d69726f67696e2f796969322d6a732d75726c6d616e616765722f6c6963656e7365)](https://packagist.org/packages/dmirogin/yii2-js-urlmanager)

Yii2 js UrlManager
==================

[](#yii2-js-urlmanager)

That extension provide a way to create urls from your frontend part.

### Instalation

[](#instalation)

```
composer require dmirogin/yii2-js-urlmanager
```

1. [How to use](#how-to-use)
2. [PHP options](#php-options)
3. [Contributing](#contributing)
4. [Roadmap](#roadmap)

###  How to use

[](#-how-to-use)

1. Add component to your application configuration ```
    'jsUrlManager' => [
        'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    ],
    ```
2. Add component to bootstrap ```
    'bootstrap' => ['jsUrlManager'],
    ```
3. Now you can use window.UrlManager or just UrlManager in your frontend part ```
       UrlManager.createUrl('foo/bar', {id: 10})
    ```

if you want to change assets position, use this

```
'assetManager' => [
    'bundles' => [
        \dmirogin\js\urlmanager\JsUrlManagerAsset::class => [
            'jsOptions' => [
                'position' => \yii\web\View::POS_END,
            ],
        ],
    ],
],
```

###  PHP options

[](#-php-options)

#### configurationStringPosition - integer

[](#configurationstringposition---integer)

Default value - \\yii\\web\\View::POS\_HEAD

The location to register configuration Frontend UrlManager string

```
'jsUrlManager' => [
    'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    'configurationStringPosition' => \yii\web\View::POS_END,
],
```

#### configureThroughVariable - boolean

[](#configurethroughvariable---boolean)

Default value - false

Setting configuration through document variable urlManagerConfiguration

```
'jsUrlManager' => [
    'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    'configureThroughVariable' => true,
],
```

###  Contributing

[](#-contributing)

1. Clone project
2. Write code
3. Test ```
    npm run test

    ```

    ```
    ./vendor/bin/phpunit

    ```
4. Build js ```
        npm run build

    ```

###  Roadmap

[](#-roadmap)

- Disable or enable including rules in frontend
- Creating absolute urls

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.7% 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 ~491 days

Recently: every ~614 days

Total

6

Last Release

776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eae60f9c69f9f31ee51b9d6e6d64b53c34eee60d23066ea4edee29fa7e06d682?d=identicon)[dmirogin](/maintainers/dmirogin)

---

Top Contributors

[![dmirogin](https://avatars.githubusercontent.com/u/5470439?v=4)](https://github.com/dmirogin "dmirogin (51 commits)")[![daniftodi](https://avatars.githubusercontent.com/u/304224?v=4)](https://github.com/daniftodi "daniftodi (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![kalyabin](https://avatars.githubusercontent.com/u/5373014?v=4)](https://github.com/kalyabin "kalyabin (1 commits)")[![ngekoding](https://avatars.githubusercontent.com/u/11625690?v=4)](https://github.com/ngekoding "ngekoding (1 commits)")

---

Tags

yii2yii2-assetyii2-extensionyii2assetsurlmanager

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmirogin-yii2-js-urlmanager/health.svg)

```
[![Health](https://phpackages.com/badges/dmirogin-yii2-js-urlmanager/health.svg)](https://phpackages.com/packages/dmirogin-yii2-js-urlmanager)
```

###  Alternatives

[blacksmoke26/yii2cdn

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

1412.0k](/packages/blacksmoke26-yii2cdn)

PHPackages © 2026

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