1 00:00:00,430 --> 00:00:04,900 Before Composer can do anything for you, it needs to be installed. 2 00:00:04,900 --> 00:00:07,550 If you're using work spaces, we've got you covered. 3 00:00:07,550 --> 00:00:10,870 But if not, check the notes associated with this video for 4 00:00:10,870 --> 00:00:14,890 detailed install instructions based on your operating system. 5 00:00:14,890 --> 00:00:18,440 Either way, there are three things to keep in mind when installing and 6 00:00:18,440 --> 00:00:19,170 using Composer. 7 00:00:20,420 --> 00:00:24,000 First of all, Composer can be installed in two ways. 8 00:00:24,000 --> 00:00:26,330 Either on a per project basis, so 9 00:00:26,330 --> 00:00:30,410 that you can only access Composer from your project directory. 10 00:00:30,410 --> 00:00:34,360 Or globally, so that you can access Composer from any project, 11 00:00:34,360 --> 00:00:36,290 regardless of the location on your machine. 12 00:00:37,460 --> 00:00:39,770 I recommend using the global install, so 13 00:00:39,770 --> 00:00:42,420 you don't have to worry about this step for any other projects. 14 00:00:44,090 --> 00:00:48,175 Second, you want to install a version of Composer that matches your development 15 00:00:48,175 --> 00:00:52,110 environment, not your application's runtime environment. 16 00:00:52,110 --> 00:00:55,960 So if you're coding on a Mac, be sure to install Composer for 17 00:00:55,960 --> 00:01:00,650 Mac, regardless of whether your app runs on a map server or 18 00:01:00,650 --> 00:01:04,470 even on a virtual machine running Linux or Windows. 19 00:01:04,470 --> 00:01:08,290 You’ll access Composer commands from a terminal or 20 00:01:08,290 --> 00:01:11,650 command line in the actual machine on which you're working. 21 00:01:12,760 --> 00:01:17,900 Which brings us to the third and final point to keep in mind when using Composer, 22 00:01:17,900 --> 00:01:23,790 avoid committing downloaded packages to a version control system or VCS such as get. 23 00:01:25,100 --> 00:01:29,880 Each developer will use Composer to download those packages themselves. 24 00:01:29,880 --> 00:01:32,640 This helps keep your repositories tidy and 25 00:01:32,640 --> 00:01:36,550 easier to maintain by not cluttering them with all the dependencies.