Recommend this page to a friend!
  Classes of Manolo Salsas  >  PHP Budget Application API  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Budget Application API
API to manage records of budget requests
Author: By
Last change:
Date: 6 months ago
Size: 1,916 bytes


Class file image Download

Budget request REST API Build Status

Budget request is a REST API made with Symfony.


GET /budget
example: GET /budget?
Description: Get all budgets paginated (optionally by email)

POST /budget
parameters: json => {title, description, category, email, telephone, address}
example: POST /budget
Description: Create a budget

PUT /budget/{id}
parameters: json => {title, description, category}
example: PUT /budget/32
Description: Update a budget

PUT /budget/publish/{id}
example: PUT /budget/publish/32
Description: Publish a budget

PUT /budget/discard/{id}
example: PUT /budget/publish/32
Description: Discards a budget


git clone

cd budget-request

cp .env .env.local

Set DATABASE_URL variable in .env.local to your needs (db_user and db_password, as well as db_name)

composer install

php bin/console doctrine:database:create

php bin/console doctrine:database:create --env=test

php bin/console doctrine:migrations:migrate

php bin/console doctrine:migrations:migrate --env=test

symfony server:start 

you will need:

- The Symfony installer

- php-sqlite3 as database for testing is sqlite by default


php ./bin/phpunit


This bundle is under the MIT license. See the complete license in the bundle

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

For more information send a message to info at phpclasses dot org.