Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Composer - The Ultimate Guide for PHP Dependency Management
Rating: 4.4 out of 5(337 ratings)
6,887 students

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
Last updated 12/2018
English

What you'll 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

Course content

3 sections23 lectures2h 43m total length
  • Welcome to the Course!3:24

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

  • Intro and installation on Windows4:35
    I'll give a brief overview of composer and guide you to install composer on windows operating system.
  • Installation on Mac OsX6:38

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

  • Basic Composer Commands8:14

    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.

  • Installing PHP Project Dependencies with Composer11:01

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

  • How to use PHP Libraries Installed with Composer12:30

    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 Review This Course0:06
  • Autoloading Classes and Files with Composer16:07
    In this lecture you will learn about three different methods of leveraging composer autoloading feature.
  • Installing Development Dependencies with Composer3:36

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

  • Updating Project Dependencies with Composer3:25

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

  • More Composer Commands11:52

    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.

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 how to manage PHP project dependencies using Composer.

In modern PHP development, Composer has become an indispensable tool that has aided the rapid development of the 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. Composer is one of the most highly recommended tools that solve fundamental issues in many web projects.

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

Some problems that Composer solves include:

  • 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 typical example is Symfony components which form the bedrock for many PHP frameworks such as Laravel. 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 include the following:

  • Quickly integrate libraries from vendors like AWS, Stripe, Pusher, Algolia, and others.

  • Ability to use ready-made packages that solve everyday problems. Do you need a validation package? Search for validation on packagist and get started right away. Do you need to handle "date"? Search for Carbon on packagist and get started right away.

  • Autoload all your files and classes using Composer's autoloading feature

  • keeping all packages updated

Composer is a fantastic tool that significantly speeds up the development of PHP projects. Ready to take your PHP SKILLS to the next level?


ENROLL NOW

Who this course is for:

  • 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