Skip to content
RESTful API Demo built without FOSRestBundle ~2000 lines of code.
PHP CSS HTML JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin First working prototype (#1) Nov 21, 2018
config Refactorization Nov 23, 2018
css
fixtures Refactorization Nov 23, 2018
public First working prototype (#1) Nov 21, 2018
src Update README.md Nov 24, 2018
templates Refactorization Nov 23, 2018
tests/Controller First working prototype (#1) Nov 21, 2018
translations First working prototype (#1) Nov 21, 2018
var Documentation (#7) Nov 24, 2018
.env.dist Refactorization Nov 23, 2018
.env.test Refactorization Nov 23, 2018
.gitignore Refactorization Nov 23, 2018
.php_cs.dist First working prototype (#1) Nov 21, 2018
.travis.yml First working prototype (#1) Nov 21, 2018
EXAMPLES.md
LICENSE First working prototype (#1) Nov 21, 2018
README.md Update README.md (#9) Nov 29, 2018
composer.json Refactorization Nov 23, 2018
phpcs.xml.dist First working prototype (#1) Nov 21, 2018
phpmd.dist.xml First working prototype (#1) Nov 21, 2018
phpunit.xml.dist First working prototype (#1) Nov 21, 2018

README.md



Symfony 4 REST API

(Notice: Be aware this solution needs refactorization! Please don't copy this solution 1:1)

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

See examples of usage

Documentation

  1. Controllers
  2. Entities
  3. EventSubscriber
  4. Form
  5. Resource
  6. Security
  7. Service
  8. Traits
You can’t perform that action at this time.