Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Dependency management with 
Bower and Composer 
By Andre Figueira
Why use a dependency management tool? 
Most web projects contain a fair amount of third party code, 
be it a JavaScript fr...
How does it work? 
A dependency management tool works in the following way, you no longer 
store third party bits of code ...
PHP dependency management 
Composer is becoming industry standard for handling dependency 
management for PHP projects. 
W...
JavaScript and CSS dependency management 
Web project usually don’t only use third party PHP libraries and frameworks, the...
Questions?
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
Deployment Via Capistrano
Next
Upcoming SlideShare
Deployment Via Capistrano
Next
Download to read offline and view in fullscreen.

Share

Dependency management

Download to read offline

This presentation goes over the benefits of using a dependency management tool, and covers two different dependency management tools, Bower and Composer.

Checkout my website www.andrefigueira.com

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Dependency management

  1. 1. Dependency management with Bower and Composer By Andre Figueira
  2. 2. Why use a dependency management tool? Most web projects contain a fair amount of third party code, be it a JavaScript framework, CSS framework or PHP framework. Depending on the activity of a project, ensuring it’s up to date can become unwieldy and difficult to manage. Dependency management tools, make it easy to update to newer versions and safer.
  3. 3. How does it work? A dependency management tool works in the following way, you no longer store third party bits of code on your VCS, instead you create a DM config file specific to your DM tool, e.g. Bower has a bower.json and .bowerrc file. These files include configurations for your dependency management including dependencies folders and which are your dependencies and which versions you’re dependant upon. The tools usually work by on installing, cloning the repository of the third party tool and downloading the contents to a folder named after the dependency within your specified dependencies path.
  4. 4. PHP dependency management Composer is becoming industry standard for handling dependency management for PHP projects. Working with Composer is extremely easy, simply install it and run Composer init on a project that has not yet been setup with Composer. This provides you with a composer.json, in which you specify your dependencies and which versions you require, running composer install and composer update will do what you’d imagine, install does an initial download of the dependencies to a “vendor” folder and update, updates said dependencies.
  5. 5. JavaScript and CSS dependency management Web project usually don’t only use third party PHP libraries and frameworks, they usually have front end dependencies as well. Whilst Composer would satisfy the requirements to do front-end dependency management, one-fits-all is not the best approach to take when developing, tools are developed for specific purposes and the moment you take them somewhere else they were not intended to be used for, if any issues arise, you’re on your own. Enter Bower, Bower is a front-end dependency management tool used in the likes of Bootstrap. Bower works in essence the exact same way as Composer, however was specifically designed to be a front-end dependency management tool and thus it’s repositories contain primarily front-end tool.
  6. 6. Questions?

This presentation goes over the benefits of using a dependency management tool, and covers two different dependency management tools, Bower and Composer. Checkout my website www.andrefigueira.com

Views

Total views

419

On Slideshare

0

From embeds

0

Number of embeds

7

Actions

Downloads

3

Shares

0

Comments

0

Likes

0

×