1 00:00:00,723 --> 00:00:04,866 [MUSIC] 2 00:00:04,866 --> 00:00:08,015 In this section we are going to focus on the concept of sharing code 3 00:00:08,015 --> 00:00:09,600 between multiple developers. 4 00:00:09,600 --> 00:00:12,520 There are concepts such as auto loading, name spaces, and 5 00:00:12,520 --> 00:00:15,390 file structures that help make all of this possible. 6 00:00:15,390 --> 00:00:19,200 Then there are tools such as Composer which handle dependency management. 7 00:00:19,200 --> 00:00:21,780 Depending on code from other developers means you need a way to 8 00:00:21,780 --> 00:00:23,160 handle those dependencies. 9 00:00:23,160 --> 00:00:25,200 Which is a bit more robust than downloading zip files and 10 00:00:25,200 --> 00:00:26,720 copying things around. 11 00:00:26,720 --> 00:00:27,820 Composer lets you do this. 12 00:00:29,080 --> 00:00:30,269 So why would you want to use somebody else's code? 13 00:00:30,269 --> 00:00:32,331 If you're doing something very common but 14 00:00:32,331 --> 00:00:36,337 quite complex, like interacting with a popular API, integrating with oAuth, or 15 00:00:36,337 --> 00:00:40,420 doing image manipulation, then you might benefit from using an existing package. 16 00:00:41,630 --> 00:00:44,410 Popular code packages exist for a lot of these problems, and 17 00:00:44,410 --> 00:00:47,740 they have been battle tested by hundreds or thousands of other users. 18 00:00:47,740 --> 00:00:50,060 They might have features that you haven't considered yet, or 19 00:00:50,060 --> 00:00:52,700 cater to edge cases that you have not yet discovered. 20 00:00:52,700 --> 00:00:55,210 And generally, they'll help you get your job done much more quickly. 21 00:00:56,770 --> 00:00:57,660 Thanks to Composer and 22 00:00:57,660 --> 00:01:01,970 Packagist, PHP has more high quality packages than it's ever had before. 23 00:01:01,970 --> 00:01:03,810 The majority of them use name spaces and 24 00:01:03,810 --> 00:01:07,450 auto loading to make interacting with them incredibly easy. 25 00:01:07,450 --> 00:01:10,420 Let's look how you can use Composer to install code from third party 26 00:01:10,420 --> 00:01:13,270 developers so you can spend more time working on something awesome.