PHP Coding Standards, Autoloading (PSR-4) & Composer - Full PHP 8 Tutorial

Опубликовано: 19 Март 2021
на канале: Program With Gio
71,084
2.3k

In this video, you will learn how to autoload your classes instead of using include & require statements. I'll show you how autoloader works, how to register custom autoloader & then how to use composer to handle autoloading for you. In addition to autoloading, you will learn about coding standards (PSR) and dependency management using composer.

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:   / programwithgio  
THANK YOU!

LESSON 2.5
Course Outline - https://github.com/ggelashvili/learnp...
Course Playlist -    • Learn PHP The Right Way - Full PHP Tu...  

RESOURCES
PSR-1 - https://www.php-fig.org/psr/psr-1/
PSR-4 - https://www.php-fig.org/psr/psr-4/
PSR-12 - https://www.php-fig.org/psr/psr-12/
Symfony Coding Standards Fixer - https://cs.symfony.com/
PHP Code Sniffer - https://pear.php.net/package/PHP_Code...
Composer - https://getcomposer.org/
Versioning - https://getcomposer.org/doc/articles/...
PHP Autoloading - https://www.php.net/manual/en/languag...
PEAR Coding Standards - https://pear.php.net/manual/en/standa...
Symfony Coding Standards - https://symfony.com/doc/current/contr...

For source, you can either use the code from https://github.com/ggelashvili/learnp... as a starting base & build upon it following this lesson or you can use the one that's already built at the end of section 2 for exercise: https://github.com/ggelashvili/learnp...

CHAPTERS
00:00 - Autoloading
05:52 - PSR
10:27 - Composer & dependency management
16:31 - Autoloading using composer


Смотрите видео PHP Coding Standards, Autoloading (PSR-4) & Composer - Full PHP 8 Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Program With Gio 19 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 71,084 раз и оно понравилось 2.3 тысяч людям.