m-fejczaruk / symfony2-rest-skeleton
The Symfony2 "Rest edition skeleton" based on "Symfony Standard Edition" distribution
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Type:project
pkg:composer/m-fejczaruk/symfony2-rest-skeleton
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/doctrine-fixtures-bundle: 2.2.*
- doctrine/doctrine-migrations-bundle: 2.1.*@dev
- doctrine/migrations: 1.0.*@dev
- doctrine/orm: ~2.2,>=2.2.3
- friendsofsymfony/rest-bundle: 1.4.2
- friendsofsymfony/user-bundle: 1.3.5
- incenteev/composer-parameter-handler: ~2.0
- jms/serializer-bundle: 0.13.0
- knplabs/rad-bundle: 2.6.2
- liip/functional-test-bundle: dev-master
- nelmio/api-doc-bundle: 2.7.0
- sensio/distribution-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: 2.5.*
- twig/extensions: ~1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
- sensio/generator-bundle: ~2.3
This package is not auto-updated.
Last update: 2025-10-29 09:42:27 UTC
README
 Symfony2 Rest Skeleton
Symfony2 Rest Skeleton
This is skeleton for building rest applications in Symfony2. Also one restful service is included.
Installation
If you don't have composer installed
curl -sS https://getcomposer.org/installer | php
If you've composer installed
php composer.phar create-project m-fejczaruk/symfony2-rest-skeleton rest-example
cd rest-example
php app/console doctrine:migrations:migrate
And now you can enjoy phpunit tests :)
phpunit -c app/
And you can also check all carts ( basic restful service ) routes:
php app/console router:debug | grep cart
You can test 'cart' restful api, with postman:
GET app_dev.php/carts
GET app_dev.php/carts/{id}
POST app_dev.php/carts
PUT app_dev.php/carts/{id}
DELETE app_dev.php/carts/{id}