Category: PHP, api

re you creating REST APIs in Symfony and trying to decide what bundle to use? it It shouldn’t take any more than 20mins, even if you have you install every item in this list, We’ll also be using the following bundles: Maker, FOSRest, JMS Serializer, and FrameworkExtra, but we’ll show you how to install those in the tutorial.

Enter the following command: It’s going to create the folder structure and initial files that you need for this tutorial.

Since we want to be able to send data to this endpoint, we need to update it so that supports POST requests (by default, the controller only supports GET requests).

I’ll show you the code for that in a moment, but first, we need to install a couple of extra Bundles: FOSRest and SensioFrameworkExtra
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners