PHPackages                             matuck/aliasbundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. matuck/aliasbundle

ActiveLibrary[HTTP &amp; Networking](/categories/http)

matuck/aliasbundle
==================

Provides a catch all route

1.0.0-beta(12y ago)07GPL-v3PHPPHP &gt;=5.4

Since Oct 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/matuck/AliasBundle)[ Packagist](https://packagist.org/packages/matuck/aliasbundle)[ Docs](https://github.com/matuck/AliasBundle.git)[ RSS](/packages/matuck-aliasbundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

AliasBundle
===========

[](#aliasbundle)

A system to remap any url to a url of your choosing

Documentation
=============

[](#documentation)

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

[](#installation)

Pretty simple with [Composer](http://packagist.org), add:

```
{
    "require": {
        "matuck/aliasbundle": "dev-master"
    }
}
```

Then run the below command to install the bundle

```
php composer.phar update

```

Database tables also need to created so run

```
php app/console Doctrine:schema:update --force

```

Configure
---------

[](#configure)

Add the below snippet to the very bottom of your routing.yml file

```
matuck_alias:
    resource: "@matuckAliasBundle/Resources/config/routing.yml"
    prefix:   /
```

This has to be the very last entry or your hard defined routes will not work.

Usage
-----

[](#usage)

From inside a controller

```
$service = $this->get('matuck_alias');

//To create a new alias of /myalias which goes to path www.example.com/page/somepage
$service->createAlias('/myalias', '/page/somepage');

//Delete an alias of /myalias
$service->deleteAlias('/myalias');

//Get the true path for an alias in this case returns /page/somepage
$service->getTruepath('myalias');

//Gets an array of aliases for a truepath
$aliases = $service->getAliasesForTruePath('/page/somepage');
foreach($aliases as $alias)
{
    echo $alias->getAlias();
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/770519219c89715bb9c136c934966a12a8f9610625de102c07bf1a97588d0e6f?d=identicon)[matuck](/maintainers/matuck)

---

Tags

Symfony2route

### Embed Badge

![Health badge](/badges/matuck-aliasbundle/health.svg)

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

###  Alternatives

[leaseweb/api-caller-bundle

cURL API call functionality with full Web Debug Toolbar integration

64417.4k1](/packages/leaseweb-api-caller-bundle)

PHPackages © 2026

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