Go to file
Simon Vieille ac36580272 API: configuration 2016-11-23 17:48:33 +01:00
app API: configuration 2016-11-23 17:48:33 +01:00
bin API: configuration 2016-11-23 17:48:33 +01:00
src Doctrine: entities 2016-11-23 16:10:52 +01:00
var API: configuration 2016-11-23 17:48:33 +01:00
web API: configuration 2016-11-23 17:48:33 +01:00
.gitignore Gitignore 2016-11-23 16:10:32 +01:00
README.md ini 2016-11-23 14:39:22 +01:00
composer.json API: configuration 2016-11-23 17:48:33 +01:00
phpunit.xml.dist ini 2016-11-23 14:39:22 +01:00

README.md

An example of API with symfony 3

Installation

Download the application

$ git clone https://gitnet.fr/deblan/sf-api-example.git
$ cd sf-api-example

Install composer

$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
$ php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"

Install the application

$ php composer.phar install --ignore-plateform-reqs
$ php bin/console doctrine:database:create
$ php bin/console doctrine:schema:update --force

Run

$ php bin/console server:start