https://youtu.be/qQrOJ_xPps4?rel=0

Steps to install dependency using Composer

  1. Create a project from a PHP template.
  2. Open a terminal and type composer init to init your Composer project.
  3. Install dependency using the proposed search menu or install it later using the command:
composer require ehime/hello-world
  1. Update your code to use autoloader:
<?php  
require 'vendor/autoload.php';

use HelloWorld\\SayHello;

echo SayHello::world() . "\\n";
  1. Tap the Run button and check out the result!