Error muncul ketikan mengclone suatu repo ke local. Dalam kondisi itu, prasyarat untuk bisa menjalankan file diminta menginstall composer.phar dst.

Siapkan dulu composer.phar disini

php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ‘e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
php composer-setup.php
php -r “unlink(‘composer-setup.php’);”

Depedency-nya diinstall melalui folder verdor autoload.

Jika muncul seperti ini, cara mudah adalah:
1. Buka composer.json
2. Edit baris name, paling atas, misal tambah huruf x.
3. Lalukan update

php composer.phar require markrogoyski/math-php:1.*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals


Installing markrogoyski/math-php (v1.1.0): Downloading (100%)
Writing lock file
Generating autoload files

You Done.