What is a Package Manager?
Lab: Local Development Environment Setup for Windows
Throughout your training, you will learn to design your code into reusable modules. These modules can then be packaged as dependencies, making them portable and modular. You then add the dependencies to your project, thereby adding them to your application.
How do you add these packages? How can you add external packages, such as Zurb’s Foundation or Carbon to your project?
You use a package manager.
What are the Benefits?
When your project depends upon a package/module/library, i.e. some external piece of software, a package manager loads the packages as well as each dependency into your local project. For example, let’s say you need Carbon in your project. Looking at the composer.json file for Carbon, it depends upon PHP and Symfony’s Translation package in the production version, and on PHPUnit in the development version. When you specify Carbon as a dependency in your project, Composer will load each of Carbon’s dependencies along with Carbon.
Another benefit to using a package manager is the update management. With a simple command, you are able to update all the packages in your project to ensure you have the latest files.
Lastly, a package manager saves time. It is an effective and efficient method for managing dependencies.
What will we use?
As a part of your local development environment, you will be installing:
- Composer – dependency manager for PHP
- Node Package Manager (npm) – package manager for JavaScript
- Bower – package manager for front-end development
You get WET when you swim. Stay DRY when you code.
Episodes
Total Lab Runtime: 02:32:39
- 1 The Keys to Your Local Development Environmentfree 22:03
- 2 Install and Configure Gitfree 19:46
- 3 Setting up SSH for GitHubfree 15:00
- 4 VirtualBox and Vagrantfree 13:00
- 5 LocalHost - Local by Flywheel (preferred)free 16:50
- 6 LocalHost - VVV (optional)free 14:42
- 7 What is a Package Manager?free 00:00
- 8 Composer - PHP Dependency Managerfree 14:16
- 9 Node.js and npm – JavaScript Package Managerfree 06:03
- 9 Gulp – Task Runnerfree 07:29
- 10 Atom - Text Editorfree 07:25
- 11 PhpStorm - Installationfree 11:43
- 12 Wrap it Upfree 04:22