PHPackages                             mparaiso/urlshortenerappserviceprovider - 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. mparaiso/urlshortenerappserviceprovider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mparaiso/urlshortenerappserviceprovider
=======================================

Url Shortener App Service provider

0.0.12(13y ago)030MITJavaScriptPHP &gt;=5.3.3

Since Mar 27Pushed 13y agoCompare

[ Source](https://github.com/Mparaiso/urlshortenerappserviceprovider)[ Packagist](https://packagist.org/packages/mparaiso/urlshortenerappserviceprovider)[ Docs](https://github.com/Mparaiso/urlshortenerappserviceprovider)[ RSS](/packages/mparaiso-urlshortenerappserviceprovider/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (14)Versions (11)Used By (0)

Url Shortener App Service provider
==================================

[](#url-shortener-app-service-provider)

[![Build Status](https://camo.githubusercontent.com/12a8030dfe578be8a2232d8a01ec9afbb53f7fcc9f89a5fce165bb9e24a1472e/68747470733a2f2f7472617669732d63692e6f72672f4d7061726169736f2f75726c73686f7274656e65726170707365727669636570726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Mparaiso/urlshortenerappserviceprovider)

### Create shortened URL , redirect your users to these urls , bootstrap 2.\* ready !

[](#create-shortened-url--redirect-your-users-to-these-urls--bootstrap-2-ready-)

this provider provides your application a complete url shortener service for your application , backed by doctrine ORM.

author : MParaiso

contact:

status: work in progress

### Installation

[](#installation)

database:

you can use the file `database/db.sql` or use the doctrine console

```
    php console.php orm:schema-tool:create

```

### Basic usage:

[](#basic-usage)

```
    $autoload = require __DIR__ . "/../vendor/autoload.php";
    !defined("ROOT") AND define("ROOT", __DIR__);
    $app = new \Silex\Application;
    $app['debug']=true;
    $app->register(new MonologServiceProvider, array('monolog.logfile' => ROOT.'/log.txt'));
    $app->register(new UrlGeneratorServiceProvider);
    $app->register(new ValidatorServiceProvider);
    $app->register(new ConsoleServiceProvider);
    $app->register(new SessionServiceProvider);
    $app->register(new TranslationServiceProvider);
    $app->register(new TwigServiceProvider);
    $app->register(new FormServiceProvider);
    $app->register(new DoctrineServiceProvider, array(
        "db.options" => array(
            "path"   => ROOT . "/db.sqlite",
            "driver" => "pdo_sqlite",
        )
    ));
    $app->register(new DoctrineORMServiceProvider);
    $app->register(new UrlShortenerAppServiceProvider);
    $app->mount("/", $app['url_shortener.controller']));

```

### Basic API

[](#basic-api)

- GET "/" : url shortener form
- POST "/" : create a new short url
- GET "/{identifier}" : redirect to an shortened url according to its identifier

You can change the root route by mounting `$app['url_shortener.controller']` to a custom route

### services

[](#services)

- url\_shortener.ns : the namespace ( by default url\_shortener )
- url\_shortener.controller : the controller
- url\_shortener.shortener\_service : a shorten service for data persistance
- url\_shortener.country\_service : a country service for country/ip detection , etc ...

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

10

Last Release

4843d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1152066?v=4)[mparaiso](/maintainers/Mparaiso)[@Mparaiso](https://github.com/Mparaiso)

---

Tags

shortenersilexurl shortener

### Embed Badge

![Health badge](/badges/mparaiso-urlshortenerappserviceprovider/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M482](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M719](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M534](/packages/shopware-core)

PHPackages © 2026

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