symfony-4-rest-api
symfony-4-rest-api copied to clipboard
RESTful API Demo built without FOSRestBundle ~2000 lines of code.
Symfony 4 REST API
Written WITHOUT FOSUserBundle and FOSRestBundle
2000 lines under your control.
Requirements: PHP min. version 7.2.0
See demo: http://rest-api.tulik.io
Quick start
Clone repository
git clone [email protected]:tulik/symfony-4-rest-api.git
Install dependencies
composer install
Start local server
bin/console server:start
Listing with filters and pagination
It is possible filtering data using LexikFormFilterBundle and to paginate results using whiteoctober/Pagerfanta
Flexibility
The whole API including contains only ~2000 lines of code, gives you full control possibility to adapt it to an existing project with ease.
Extensibility
Extending its functionality of additional ElasticSearch, Redis or RabbitMQ solution is straightforward. In case you need to change something it's always under your
See examples of usage
Documentation
- Controllers
- Entities
- EventSubscriber
- Form
- Resource
- Security
- Service
- Traits