Download .zip |
Info | Documentation | View files (55) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-12-14 (17 days ago) | Not yet rated by the users | Total: 40 This week: 7 | All time: 9,706 This week: 29 |
Version | License | PHP version | Categories | |||
budget-request 1.0.0 | Custom (specified... | 7 | Content management, Web services, Fin..., P... |
Description | Author | |
This package implements an API to manage records of budget requests. |
|
Budget request is a REST API made with Symfony.
GET /budget
example: GET /budget?email=johnDoe@email.com&offset=20&limit=50
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 https://github.com/msalsas/budget-request.git
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
Issues and feature requests are tracked in the Github issue tracker.
Files |
File | Role | Description | ||
---|---|---|---|---|
bin (2 files) | ||||
config (4 files, 2 directories) | ||||
public (1 file) | ||||
src (1 file, 10 directories) | ||||
tests (2 directories) | ||||
.env | Data | Auxiliary data | ||
.env.test | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
symfony.lock | Data | Auxiliary data |
Files | / | config |
File | Role | Description | ||
---|---|---|---|---|
packages (6 files, 3 directories) | ||||
routes (1 file) | ||||
bootstrap.php | Class | Class source | ||
bundles.php | Class | Class source | ||
routes.yaml | Data | Auxiliary data | ||
services.yaml | Data | Auxiliary data |
Files | / | config | / | packages |
File | Role | Description | ||
---|---|---|---|---|
dev (1 file) | ||||
prod (1 file) | ||||
test (3 files) | ||||
cache.yaml | Data | Auxiliary data | ||
doctrine.yaml | Data | Auxiliary data | ||
doctrine_migrations.yaml | Data | Auxiliary data | ||
framework.yaml | Data | Auxiliary data | ||
routing.yaml | Data | Auxiliary data | ||
validator.yaml | Data | Auxiliary data |
Files | / | config | / | packages | / | test |
File | Role | Description |
---|---|---|
framework.yaml | Data | Auxiliary data |
routing.yaml | Data | Auxiliary data |
validator.yaml | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
DataFixtures (1 file) | ||||
DTO (8 files) | ||||
Entity (2 directories) | ||||
EventListener (1 file) | ||||
Helper (2 files) | ||||
Migrations (1 file) | ||||
Repository (2 directories) | ||||
Service (1 file) | ||||
Validator (1 file) | ||||
Kernel.php | Class | Class source |
Files | / | src | / | DTO |
File | Role | Description |
---|---|---|
BudgetRequestDTOInterface.php | Class | Class source |
BudgetResponseDTOInterface.php | Class | Class source |
CreateBudgetRequestDTO.php | Class | Class source |
CreateBudgetRequestDTOInterface.php | Class | Class source |
GetBudgetsRequestDTO.php | Class | Class source |
GetBudgetsResponseDTO.php | Class | Class source |
UpdateBudgetRequestDTO.php | Class | Class source |
UpdateBudgetRequestDTOInterface.php | Class | Class source |
Files | / | src | / | Entity | / | Budget |
File | Role | Description |
---|---|---|
Budget.php | Class | Class source |
BudgetInterface.php | Class | Class source |
Files | / | src | / | Entity | / | User |
File | Role | Description |
---|---|---|
User.php | Class | Class source |
UserInterface.php | Class | Class source |
Files | / | src | / | Helper |
File | Role | Description |
---|---|---|
CategorySuggestionHelper.php | Class | Class source |
EntityCreationHelper.php | Class | Class source |
Files | / | src | / | Repository | / | Budget |
File | Role | Description |
---|---|---|
BudgetRepository.php | Class | Class source |
BudgetRepositoryInterface.php | Class | Class source |
Files | / | src | / | Repository | / | User |
File | Role | Description |
---|---|---|
UserRepository.php | Class | Class source |
UserRepositoryInterface.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.