Learn how to manage package versions in Composer.
- [Instructor] As I mentioned previously, version management…is one of the key features of Composer.…Because libraries and packages tend to change over time,…and those changes may affect or even break…the functionality of your PHP application,…Composer gives you powerful tools…for version control within your project.…This is accomplished using version constraints.…The versioning standard in Composer packages…is based on a three-number system,…where the first number is the major version,…the second number is the minor version,…and the third number is incremental fixes.…
The general rule is, major version updates…can be expected to contain breaking changes,…minor version updates may have significant…but rarely breaking changes, and incremental fixes…are for the most part safe.…If the developer follows these rules, as most do,…this means we can usually upgrade dependency packages…without fear of anything breaking, as long as we stay…within the current major release, or the current range.…Let's look at our current package as an example.…
- Running PHP
- Installing Composer
- Finding packages
- Using packages in your code
- Using Composer with version control
- Updating packages
Skill Level Beginner
PHP: Test-Driven Development with PHPUnitwith Justin Yost1h 54m Intermediate
Ajax with PHP: Add Dynamic Content to Websiteswith Kevin Skoglund3h 37m Intermediate
1. Introduction to Composer
2. Using Composer
3. Composer in Production
Thank you1m 3s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.