Composer - The Ultimate Guide for PHP Dependency Management
4.5 (13 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
91 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Composer - The Ultimate Guide for PHP Dependency Management to your Wishlist.

Add to Wishlist

Composer - The Ultimate Guide for PHP Dependency Management

Hack PHP Dependency Management, Master Composer a Modern PHP Development Tool and Learn to Create your own PHP Packages
4.5 (13 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
91 students enrolled
Last updated 9/2017
English
Current price: $10 Original price: $145 Discount: 93% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • 2 Articles
  • 6 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Install and use PHP packages with composer
  • Update project dependencies
  • Learn to use composer Autoloading Feature
  • How to create a package and submit it to packagist so that other developers can use your package
  • Send mail from PHP App using Swift Mailer
  • Apply Confidently for PHP developer jobs knowing you can jump into a dev team and start contributing to projects immediately.
  • Become an efficient (Save time and effort) PHP developer
  • Contribute to open source community
  • Access to my Introduction to Programming in PHP Course on Devscreencast dot com
View Curriculum
Requirements
  • PHP Development Environment is required to take this course, if you have not already installed PHP, SIGNUP for my FREE Introduction to Programming with PHP Course on DEVSCREENCAST DOT COM to learn how.
  • Basic knowledge of PHP programming Language, you can , SIGNUP for my FREE Introduction to Programming with PHP Course on DEVSCREENCAST DOT COM to learn how.
  • Knowledge of OOP will be great but not required to follow along and complete this course
  • Computer and Internet connection
Description

In this series you will learn about how to manage PHP projects dependencies using composer.

In modern PHP development composer has become an indispensable tool that has aided the rapid development of PHP Language.

Composer is a dependency manager for PHP (a tool used for installing, updating and managing libraries that your project depends on).

It is used in almost all modern PHP frameworks such as Symfony, CakePHP and Laravel and composer is one of the most highly recommended tools that solves fundamental issues in many web projects.

Hack PHP Dependency Management, Master Composer a Modern PHP Development Tool and Learn to Create your own PHP Packages

Some problems that Composer solves includes:

  • Resolving dependencies for PHP packages

  • autoloading solution for PHP packages

  • keeping all packages updated

Most PHP packages are built on top of other well known PHP packages, a common example are symfony components which forms the bedrock for many PHP frameworks such as Laravel. By using Composer developers can reuse stable PHP libraries and Composer will automatically handle dependency resolution. When you install a package, it will automatically install all the required dependencies for you.

Some of the benefits of using Composer includes:

  • Quickly integrate libraries from vendors such as AWS, Stripe, Pusher, Algolia, and many others.

  • Ability to use ready made packages that solve common problems. You need a validation package? search for validation on packagist and get started right away. You need to handle date? Search for Carbon on packagist and get started right away.

  • Autoload all your files and classes using Composer’s autoload

  • keeping all packages updated

Composer is an amazing tool that greatly speed up the development of PHP projects. Ready to take your PHP SKILLS to the next level?

ENROLL NOW

Who is the target audience?
  • Anyone who wants to learn modern PHP workflow
  • PHP Developers
  • Web Developers
  • Companies that wants to upskill PHP their developers to boost productivity
  • Anyone who wants to learn and contribute to open source
Students Who Viewed This Course Also Viewed
Curriculum For This Course
21 Lectures
02:22:34
+
Meet Composer
11 Lectures 01:21:29

I this video I'll talk about what you will learn in this course, why you need to learn composer.

Preview 03:24

I'll give a brief overview of composer and guide you to install composer on windows operating system.
Intro and installation on Windows
04:35

In this lecture I'll guide you to install composer on MAC operating system.

Installation on Mac OsX
06:38

In this lecture I'll introduce you to some basic composer commands and guide you to create a composer.json file using one of those commands.

Preview 08:14

In this lecture you will learn how to install packages with composer.

Installing PHP Project Dependencies with Composer
11:01

In this lecture you will learn how to use the two packages or libraries (Carbon: A simple PHP DateTime API and Swift Mailer: PHP Mail API) that we installed in the last lecture in your project easily.


How to use PHP Libraries Installed with Composer
12:30

How to Review This Course
00:07

In this lecture you will learn about three different methods of leveraging composer autoloading feature.
Autoloading Classes and Files with Composer
16:07

In this lecture you will learn how to install dependencies that are only required during development.

Installing Development Dependencies with Composer
03:36

In this lecture you will learn how to update dependencies installed with composer and also how to update composer itself.

Updating Project Dependencies with Composer
03:25

In this lecture, I will introduce you to some useful composer commands, you will learn how to update specific dependencies, update lock file using update command, remove specific dependencies from your project and how to set composer config option. You will also learn to update and use a library when there is a major release that requires you to make changes to your code.

More Composer Commands
11:52
+
Project - Creating and Publishing a Library to Packagist.org
10 Lectures 01:01:05

In this video I'll give a brief overview of the package that we will be creating and reorganize the current working directory.

Preview 01:52

In this lecture you will learn how to create a library class.

Creating The Package Class
15:48

We are now ready to test the library that we created previously 

Testing the Package Class
04:34

In this lecture you will learn how to put together a composer dot json file that will be accepted on packagist.org

Updating Composer dot Json File for Submitting
05:28

We are now ready to push the library to GitHub, let create a repository and setup things.

Setting Up Package Versioning Control with Git and GitHub
16:14

In this lecture we shall submit the package to packagist.org and setup auto update so that changes made to the library will be updated immediately on packagist.org.

Submitting the Package and Configuring Auto Update
04:36

Let add some description and usage guide to the readme file so that other developers can easily understand how to use the package.

Updating Readme.md File with Package Usage Instruction
03:17

Let now use the package we just published in a new project by requiring it with Composer.

Using the Package in a new Project
07:12

Download source code

Download Project Source Code
00:03

Checkout my other courses on devscreencast dot com, we are currently doing an MVC eCommerce store from scratch, go check it out

Bonus Lecture - Discounts
02:01
About the Instructor
Terry Ogbemudia Osayawe
4.7 Average rating
333 Reviews
5,438 Students
6 Courses
Sr. Backend Developer at Zapzapmath, Inc.

I am a professional computer scientist, web programmer and developer. My fields of expertise include Information Technology, Software Development and Web Programming. In 2007, I ventured into Software Programming and Database Administration. I graduated with a bachelor's degree in Software Engineering from University of East London, and I'm also a certified Oracle Database Professional (OCP).

I'm passionate about teaching and sharing my knowledge on various platforms. In 2008, I facilitated high-end trainings in Oracle Database, Linux Operating System, Oracle Financial 11i, and Web Design at KarRox and 2010 at NIIT. I am also the author of the best selling PHP user authentication course on Udemy.