Coder Social home page Coder Social logo

api.symfony-3.crud's Introduction

Simple CRUD API with Symfony 3 and FOSRESTBundle

This is an example of a very basic CRUD API using Symfony 3 and FOSRESTBundle.

This is the API made during the second set of videos of this course.

The aim of this course is to show how you can use Symfony 3 (along with some other bundles) to quickly make a working RESTful API to use as the back end for any modern front-end framework - such as Angular, React, Ember, or any of the mobile app frameworks like Ionic, or desktop frameworks such as Electron.

If you haven't already seen it, check out the Twig version of this API, where everything is a little more static, but also much more visual and easy to follow along if new to Symfony 3.

The code you see here is providing the same functionality is in the Twig version, but you will need a REST client such as Postman to interact properly with the API. The next step is to build a proper front end using Angular, React, or similar.

PHP 7

This app was written using PHP 7. There may be backwards compatability issues, primarily around type hinting.

More Real World Version

This is an introduction to quickly building API's with Symfony 3.

In truth, beyond a simple implementation such as this, API's can become quite complex.

If you understand the basics and want to make a more robust system - including testing with Behat, and PHPSpec, then I would recommend you check out my Symfony 3 REST Tutorial instead / as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.