Use Composer to Easily Manage PHP Packages

Learn how to use Composer to manage PHP packages and dependencies. Please consider supporting my channel: ☕ https://ko-fi.com/davehollingworth 🌐 Recommended host: https://davehollingworth.com/hosting Topics covered: • What packages are in PHP • Using Packagist to find packages • Installing Composer • Installing packages with Composer • Installing specific package versions • Using Composer version constraints • composer.json and composer.lock • The vendor folder • Requiring packages only in development Links shown in the video: ‣ https://getcomposer.org/https://packagist.org/https://www.php.net/https://www.apachefriends.org/https://semver.org/ Videos: ‣ Importing namespaced elements with the use operator:    • PHP namespaces 5/10: Importing namespaced ...   ‣ Send email with PHP:    • Send email with PHP | Create a Working Con...   Images used: ‣ https://www.iconarchive.com/show/leaf... ‣ https://www.flaticon.com/free-icons/w... ‣ https://www.flaticon.com/free-icon/de... ‣ https://www.flaticon.com/free-icon/de... ‣ https://www.flaticon.com/free-icon/fr... ‣ https://www.flaticon.com/free-icon/so... ‣ https://www.flaticon.com/free-icon/fi... ‣ https://www.flaticon.com/free-icon/me... ‣ https://www.flaticon.com/free-icon/ch... 00:00 Introduction 00:13 What is a package? 01:17 Packagist 02:09 What is a dependency? 02:49 What is Composer? 03:10 Installing Composer 04:11 Installing packages 05:11 Composer's autoloader 06:10 Packages with dependencies 07:06 composer.json 08:14 composer update 08:33 Removing packages 09:06 Version constraints 10:21 Updating packages 11:37 composer.lock 12:05 Ignoring the vendor folder 12:59 update vs install 14:02 Development packages 15:21 Summary #PHP #composer