Skip to content

RESTful API Demo built without FOSRestBundle ~2000 lines of code.

License

Notifications You must be signed in to change notification settings

tulik/symfony-4-rest-api

Repository files navigation

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 git@github.com: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

Documentation

  1. Controllers
  2. Entities
  3. EventSubscriber
  4. Form
  5. Resource
  6. Security
  7. Service
  8. Traits