PHPackages                             igorsantos07/yii-prefixed-url - 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. [API Development](/categories/api)
4. /
5. igorsantos07/yii-prefixed-url

AbandonedYii-extension[API Development](/categories/api)

igorsantos07/yii-prefixed-url
=============================

Provides ability to include prefixes in URLs for external routing

v0.2.1(11y ago)035BSD-3-ClausePHP

Since Jul 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/igorsantos07/Yii-PrefixedUrlManager)[ Packagist](https://packagist.org/packages/igorsantos07/yii-prefixed-url)[ RSS](/packages/igorsantos07-yii-prefixed-url/feed)WikiDiscussions master Synced today

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

Prefixed URL Routes for Yii 1.1
===============================

[](#prefixed-url-routes-for-yii-11)

This extension provides the ability to include fixed prefixes in URLs, in the case you need those for external routing (your infrastructure splits application servers based on sub-paths) or any other reason that creating a module would be too much trouble - since it makes little sense to have an application comprised of only one module and nothing else, right?

By default, it uses "path" URL format and hides the script. First, because that's usually the most common use case, so it makes more sense to change it when you're different; second, because that's how the extension was implemented - it was easier to create it with those options and I didn't yet had time to test and implement with other formats. If you feel the need of this class with other options, feel free to send a pull-request :D

Also, this was not tested with modules yet. The behaviour is unpredictable. :( You can test it and see if it works, or if you can adapt to make it work for you as well (and, again, send a PR after it!).

Installation and usage
----------------------

[](#installation-and-usage)

You can find this extension on Packagist: [igorsantos07/yii-prefixed-url](https://packagist.org/packages/igorsantos07/yii-prefixed-url).

Simply change your urlManager to use the given class and set a prefix. The other options you can see as usual in the [URL Management guide](guide) and [CUrlManager docs](docs). Here's a sample:

```
'urlManager' => [
	'class'     => 'vendor.igorsantos07.yii-prefixed-url.PrefixedUrlManager',
	'urlPrefix' => 'admin',
	'rules'     => require('_routes.php'),
],
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~33 days

Total

3

Last Release

4313d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/532299?v=4)[Igor Santos](/maintainers/igorsantos07)[@igorsantos07](https://github.com/igorsantos07)

---

Top Contributors

[![igorsantos07](https://avatars.githubusercontent.com/u/532299?v=4)](https://github.com/igorsantos07 "igorsantos07 (10 commits)")

---

Tags

urlroutingprefixyii

### Embed Badge

![Health badge](/badges/igorsantos07-yii-prefixed-url/health.svg)

```
[![Health](https://phpackages.com/badges/igorsantos07-yii-prefixed-url/health.svg)](https://phpackages.com/packages/igorsantos07-yii-prefixed-url)
```

###  Alternatives

[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k56.1M270](/packages/friendsofsymfony-jsrouting-bundle)[phroute/phroute

Fast, fully featured restful request router for PHP

741474.9k29](/packages/phroute-phroute)[mremi/url-shortener

A PHP5/PHP7/PHP8 library using API to shorten/expand URL

79725.6k6](/packages/mremi-url-shortener)[splashlab/yii-facebook-opengraph

Yii1 Extension for the Facebook Open Graph 2.x and PHP SDK 5.x

4346.6k](/packages/splashlab-yii-facebook-opengraph)[tobion/openapi-symfony-routing

Loads routes in Symfony based on OpenAPI/Swagger annotations

4220.0k](/packages/tobion-openapi-symfony-routing)[baibaratsky/yii2-ga-measurement-protocol

Google Analytics Measurement Protocol for Yii2

13105.7k](/packages/baibaratsky-yii2-ga-measurement-protocol)

PHPackages © 2026

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