Learn how to use Composer to manage PHP packages and dependencies.
Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
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:
‣ getcomposer.org/
‣ packagist.org/
‣ www.php.net/
‣ www.apachefriends.org/
‣ 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:
‣ www.iconarchive.com/show/leaf-mimes-icons-by-unter…
‣ www.flaticon.com/free-icons/woman
‣ www.flaticon.com/free-icon/developer_5072855
‣ www.flaticon.com/free-icon/developer_5813004
‣ www.flaticon.com/free-icon/freelance_1705349
‣ www.flaticon.com/free-icon/software-developer_1048…
‣ www.flaticon.com/free-icon/file-management_1526074…
‣ www.flaticon.com/free-icon/message_3062634
‣ www.flaticon.com/free-icon/check_14090371
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
コメント