beriva / symfony-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symfony project

Kitten GIF

This is just a quick example, I use the Giphy API to retreive funny images from simple keywords.

Launch the app

cd symfony-project
php bin/console server:run
firefox "http://127.0.0.1:8000/?q=kitten"

Try to change the value of the q GET parameter in the url 😉!

Understand the app

Check files app/Resources/view/default/index.html.twig and src/AppBundle/Controller/DefaultController.php

To go further

Build your own, with this cool list of public APIs: https://github.com/toddmotto/public-apis

Todo

Try to handle properly error when there is no gif found for a given request!

About


Languages

Language:PHP 92.2%Language:ApacheConf 6.5%Language:HTML 1.3%