At first I was using the up5.6 version of the PHP command installation composer
Later when using composer, the command line was found to prompt PHP version too low
So I downloaded the wamp and reinstalled the composer with version 7.1 PHP because the PHP-ML requirement must be version 7.1
There are some problems with the installation, that is, the installation is unsuccessful, and there is no folder that appears
When installing with composer, use the path where the Composer.json is located
Usecomposer require php-ai/php-ml
Installation of PHP-ML, but no success, prompt for errors
This is because version matching is not ignored
First set composer to domestic mirror
Composer Config-g Repo.packagist composer https://packagist.phpcomposer.com
Then use the Ignore version matching command
Composer Install--ignore-platform-reqs
You can find the Vendor folder at the Php-ml directory, which is all the library files
At this point, complete the composer install PHP package process
Add: Actually this is not used when I install PHP-ML
About the update command
Composer Update--ignore-platform-reqs
If prompted for warning:
is isn't writable. Proceeding without cache
This is the execution of composer in the virtual machine, that the directory does not have writable permissions, composer cannot cache the downloaded package, so that each time you have to re-download, the directory is changed to writable readable.
777 /home/vagrant/.composer/cache/files/
Composer (composer) installation php-ml