Console Commands in PHP - intro into Professional PHP Development

Опубликовано: 03 Октябрь 2024
на канале: Frank Prins
279
14

Up until now we've mostly looked at PHP from a request handling perspective. In this video I'll show you how to create a console file, make it executable, handle commands, and to set up the symfony/console component!

00:00 intro
00:32 $argc and $argv
01:42 executable console
03:30 bootstrapping the console
04:35 setting up symfony/console
05:55 Creating a command
06:40 registering command
06:58 Exit codes
07:40 cleanup
08:57 Outro