2017 © Pedro Peláez
 

symfony-bundle url-shortener-bundle

A basic implementation of URL Shortener Bundle for Symfony2

image

jaxyeh/url-shortener-bundle

A basic implementation of URL Shortener Bundle for Symfony2

  • Tuesday, December 9, 2014
  • by jaxyeh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

URL Shortener Bundle for Symfony2

A basic implementation of URL Shortener Bundle for Symfony2, (*1)

Installation

Step 1: Download the Bundle

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)

Step 2: Enable the Bundle

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(),
        );

        // ...
    }

    // ...
}

Step 3: Set Configuration

Add the following paramters to your configuration file:, (*5)

parameters:
    jaxyeh_url.hashids.salt: mysalt
    jaxyeh_url.hashids.min_length: 5

Step 4: Generate Database Schema

Finally, you have to generate your database schema with this Symfony2 command:, (*6)

php app/console doctrine:schema:update --force

License

This script is available under the MIT license., (*7)

The Versions

09/12 2014

dev-master

9999999-dev https://github.com/jaxyeh/UrlShortenerBundle

A basic implementation of URL Shortener Bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Jason Yeh

symfony2 url shortener shortener