Introduction1:14 with Phil Sturgeon
Understanding the idea of sharing your code with other developers using systems like Composer, and implementing other peoples code too.
[MUSIC] 0:00 In this section we are going to focus on the concept of sharing code 0:04 between multiple developers. 0:08 There are concepts such as auto loading, name spaces, and 0:09 file structures that help make all of this possible. 0:12 Then there are tools such as Composer which handle dependency management. 0:15 Depending on code from other developers means you need a way to 0:19 handle those dependencies. 0:21 Which is a bit more robust than downloading zip files and 0:23 copying things around. 0:25 Composer lets you do this. 0:26 So why would you want to use somebody else's code? 0:29 If you're doing something very common but 0:30 quite complex, like interacting with a popular API, integrating with oAuth, or 0:32 doing image manipulation, then you might benefit from using an existing package. 0:36 Popular code packages exist for a lot of these problems, and 0:41 they have been battle tested by hundreds or thousands of other users. 0:44 They might have features that you haven't considered yet, or 0:47 cater to edge cases that you have not yet discovered. 0:50 And generally, they'll help you get your job done much more quickly. 0:52 Thanks to Composer and 0:56 Packagist, PHP has more high quality packages than it's ever had before. 0:57 The majority of them use name spaces and 1:01 auto loading to make interacting with them incredibly easy. 1:03 Let's look how you can use Composer to install code from third party 1:07 developers so you can spend more time working on something awesome. 1:10
You need to sign up for Treehouse in order to download course files.Sign up