filmov
tv
How to build simple CRUD API service with Symfony 5 for beginners

Показать описание
In this #programming tutorial I explain how to build a CRUD API service based on popular #PHP framework #Symfony.
As an example I demonstrate a flow of adding products by customer into shopping cart.
I made a focus on beginners, who just started using Symfony. But there are also some details which can be interesting for more skilled developers.
I use Symfony 5 and PHP 7.4 but this video is also relevant for older versions of Symfony and PHP.
⭐️ Final result ⭐️
⭐️ Support channel on Patreon ⭐️
⭐️ Resources ⭐️
🔗 Book O'Reilly "Head first design patterns"
Get € 20 on Hetzner Cloud hosting:
Register domain without hassle on GoDaddy
⭐️ TABLE OF CONTENT⭐️
00:00:00 Introduction
00:00:33 Creating entities
00:05:00 Creating CustomerController
00:06:25 Creating Doctrine migration
00:06:59 Defining customer's routes
00:08:09 Adding Customer FormType
00:09:33 Creating abstract API Controller
00:11:00 Adding createAction for customer
00:12:28 Testing creating a new customer
00:13:50 Installation FOS Rest bundle
00:15:02 Rendering form's errors
00:16:42 Adding form's validations
00:17:46 Creating CRUD for Product
00:21:35 Creating CRUD for Cart
As an example I demonstrate a flow of adding products by customer into shopping cart.
I made a focus on beginners, who just started using Symfony. But there are also some details which can be interesting for more skilled developers.
I use Symfony 5 and PHP 7.4 but this video is also relevant for older versions of Symfony and PHP.
⭐️ Final result ⭐️
⭐️ Support channel on Patreon ⭐️
⭐️ Resources ⭐️
🔗 Book O'Reilly "Head first design patterns"
Get € 20 on Hetzner Cloud hosting:
Register domain without hassle on GoDaddy
⭐️ TABLE OF CONTENT⭐️
00:00:00 Introduction
00:00:33 Creating entities
00:05:00 Creating CustomerController
00:06:25 Creating Doctrine migration
00:06:59 Defining customer's routes
00:08:09 Adding Customer FormType
00:09:33 Creating abstract API Controller
00:11:00 Adding createAction for customer
00:12:28 Testing creating a new customer
00:13:50 Installation FOS Rest bundle
00:15:02 Rendering form's errors
00:16:42 Adding form's validations
00:17:46 Creating CRUD for Product
00:21:35 Creating CRUD for Cart
Комментарии