In this video we are developing a brand new application using Phalcon v6.
Adding Input to Domain, Input and Input Interface, Simplifying Container services, New User GET endpoint/service, Common results and Input, Registering Database connection, User Transport, User Repository, Registering User services, Tests, Test Migrations, PHPStan
ADR Pattern: https://github.com/pmjones/adr
The application will be a REST API and some of its features are:
Slim/efficient design
Middleware
JSON (or other) responses
Action/Domain/Responder implementation
JWT token authentication
This is part of a multi series videos, where each time we build a new block of code, new functionality and explain why.
Part 01 • Code with Me - REST API - 01
Part 02 • Code with Me - REST API - 02
Part 03 • Code with Me - REST API - 03
Part 04 • Code with Me - REST API - 04
Part 05 • Code with Me - REST API - 05
Part 06 • Code with Me - REST API - 06
Part 07 • Code with Me - REST API - 07
Part 08 • Code with Me - REST API - 08
Part 09 • Code with Me - REST API - 09
Part 10 • Code with Me - REST API - 10
Part 11 • Code with Me - REST API - 11
Part 12 • Code with Me - REST API - 12
Note: This is not THE way to build a REST API with Phalcon. It is simply A way to do that. You can adopt this implementation if you wish, parts of it or none of it.
The code is located here: https://github.com/phalcon/rest-api-v6
00:00 Intro
01:48 Adding Input to Domain
04:51 Input and Input Interface
15:05 Simplifying Container services
24:53 New User GET endpoint/service
29:13 Common results and Input
44:50 Registering Database connection
53:11 User Transport
01:09:06 User Repository
01:16:33 Registering User services
1:32:44 Tests
1:41:27 Test Migrations
2:19:05 PHPStan
2:37:46 Outro