Example project of leopardd/UrlShortenerBundle
- Clone:
git clone https://github.com/leopardd/bitly.git
- Install:
composer install
- Prepare database:
./bin/console doctrine:schema:update --force
- Config
parameters.yml
andconfig.dev.yml
composer.lock
file was generated on PHP 5.6.
If you want to use it on 7.0, remove composer.lock
first.
Test
POST: /short/
{
"url": <url>
}
GET: /short/<code>
- Support PHP 5.6, 7.0
- Test script
- E2E
- Codeception
- Spam protection
- UI