Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

How To Create CLI App & Commands – Full PHP 8 Tutorial

13.9K views on YouTube

In this video we build a command line interface to be able to run doctrine ORM, DBAL & migration commands as well as the custom commands that we’ll create. We are also introduced to Symfony Console component & how to use it to build CLI tools.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: https://www.patreon.com/programwithgio
THANK YOU!

🛠️ TOOLS & SERVICES I USE
Cloudways Hosting – https://platform.cloudways.com/signup?id=1175002&data1=bw&coupon=GIO15
Digital Ocean Hosting – Get 200$ credit – https://m.do.co/c/38b935ad74e5
Domains on Namecheap – https://namecheap.pxf.io/rnRjdQ
Envato Elements – https://1.envato.market/c/2937311/298927/4662

LESSON 3.31
Course Outline – https://github.com/ggelashvili/learnphptherightway-outline
Course Playlist – https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

RESOURCES
Source Repo – https://github.com/ggelashvili/learnphptherightway-project/tree/3.31
Symfony Console – https://symfony.com/doc/current/components/console.html

Table of Contents
00:00 – Intro
00:31 – Create Doctrine CLI
04:58 – Cloudways Promo
05:42 – Add Migration Commands
09:36 – Symfony Console Component
12:55 – Create Commands
15:11 – Refactor Commands to Configs
21:03 – Outro

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.