Rapid REST API Development in Symfony

pjedrzejewski

While working on Sylius, I have come up with an idea for generic-use and format agnostic CRUD controllers. Thanks to several amazing packages from Symfony & Sylius communities, you can build REST APIs in minutes.

What is Lionframe?

Lionframe - Rapid REST API development framework, based on Symfony and few libraries, including:

  • SyliusResourceBundle
  • FOSRestBundle
  • Hateoas
  • JMSSerializer

What you can do?

Lionframe workflow is very simple:

  • Create or generate your Doctrine model (~30s)
  • Configure it as resource and in routing (~20s)
  • Default REST API is ready to use!

Sylius resource layer can work with any persistence backend, but currently ORM (SQL databases), MongoDB and PHPCR are supported. Doctrine ORM is used in Lionframe’s tutorial.

Why?

PHP Community has some great tools to handle REST APIs, but we need more rapid development and we decided to combine these tools with Sylius resource management bundle and provide you with a robust API framework.

Session Track

PHP

Experience Level

Beginner

Drupal Version