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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners