From the course: PHP: Testing Legacy Applications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Poor package management practices
From the course: PHP: Testing Legacy Applications
Poor package management practices
- [Instructor] I know that in a previous video, I mentioned Composer and Packagist. I want to do a bit of a deeper dive into them for folks who are working with legacy codebases that might not have been built with them in mind. As I mentioned before, Composer is an open-source tool that was built to solve a difficult problem. How do we package up libraries of code in such a way that they can be easily distributed and easily installed? Before Composer, your choices were things like PEAR, the PHP Extension and Application Repository, or copying them to a location on the file system somewhere in PHP's load path. I don't think it's any kind of hyperbole to say that Composer changed the way PHP developers build their applications. A combination of Composer and Packagist, the website that acts as the main repository for searching for Composer packages, now makes it incredibly easy to install third-party libraries and all their required dependencies. Composer has expanded to allow for…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.