2017 © Pedro Peláez
 

project symfony-rest-api

The "Symfony2 REST API " project

image

staegi/symfony-rest-api

The "Symfony2 REST API " project

  • Thursday, February 4, 2016
  • by tomcat
  • Repository
  • 1 Watchers
  • 2 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

REST API based on Symfony 2

Total Downloads Latest Stable Version License, (*1)

This is a nice start point to create an application which provides a REST interface to your database., (*2)

Requirements

  • git
  • MySQL
  • PHP 5.4 or higher
  • Apache 2 or Nginx
  • Composer

Installation

Create project with vendors:, (*3)

curl -sS https://getcomposer.org/installer | php
composer.phar create-project staegi/symfony-rest-api
cd symfony-rest-api

Create development database:, (*4)

php bin/console doctrine:database:create -e dev
php bin/console doctrine:schema:create -e dev

Load fixtures to create first client and user:, (*5)

php bin/console doctrine:fixtures:load

Preconfigured vendor modules

Documenttation

The API documentation is shown under api.your-domain.com/doc., (*6)

Monitoring

The monitoring is running under api.your-domain.com/monitor/, (*7)

Unit tests

Create test database:, (*8)

php bin/console doctrine:database:create -e test

Run the unit tests with:, (*9)

bin/phpunit

For the acceptance test you need a test database. Set test_database_name, test_database_user and test_database_password in your parameters.yml., (*10)

The Versions