Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.03 KB

bitly

Software License Build Status

Example project of leopardd/UrlShortenerBundle

Getting started

  1. Clone: git clone https://github.com/leopardd/bitly.git
  2. Install: composer install
  3. Prepare database: ./bin/console doctrine:schema:update --force
  4. Config parameters.yml and config.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>

Feature & Update & Note

  • Support PHP 5.6, 7.0
  • Test script
    • E2E
    • Codeception
  • Spam protection
  • UI

Reference