This gist presents how to use TuTu as a dependency of Symfony2 application instead of using standalone TuTu application.
Lets assume that we have clean Symfony 2.3.* standard application.
We are going to use following libraries:
First we need to prepare configs for TuTu, lets create following folders structure in our application.
- app/
- bin/
- src/
- tutu/
- - config/
- - - config.yml
- - - responses.yml
- - resources/
- vendor/
- web/
- - app_tutu.php
- compojser.json
Now you can run application using php build-in web server
$ php app/console server:run
When you open in your browser "http://localhost:8000/app_tutu.php/tutu/hello/world" you should see "Welcome in TuTu world!" message. Above technique can be used in any application that is based on Symfony Kernel.
Filenames in this gists use "_" character instead of "/" because of Github limitations.