dev-master
9999999-dev https://github.com/jaxyeh/UrlShortenerBundleA basic implementation of URL Shortener Bundle for Symfony2
MIT
The Requires
by Jason Yeh
symfony2 url shortener shortener
Wallogit.com
2017 © Pedro Peláez
A basic implementation of URL Shortener Bundle for Symfony2
A basic implementation of URL Shortener Bundle for Symfony2, (*1)
Add the bundle in your composer.json :, (*2)
"require": {
"jaxyeh/url-shortener-bundle": "dev-master"
}
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:, (*4)
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Jaxyeh\UrlShortenerBundle\JaxyehUrlShortenerBundle(),
);
// ...
}
// ...
}
Add the following paramters to your configuration file:, (*5)
parameters:
jaxyeh_url.hashids.salt: mysalt
jaxyeh_url.hashids.min_length: 5
Finally, you have to generate your database schema with this Symfony2 command:, (*6)
php app/console doctrine:schema:update --force
This script is available under the MIT license., (*7)
A basic implementation of URL Shortener Bundle for Symfony2
MIT
symfony2 url shortener shortener