Home>Article>Development Tools> Solving composer.phar installation issues

Solving composer.phar installation issues

藏色散人
藏色散人 Original
2019-09-05 13:32:18 6287browse

The following columncomposer usage tutorialwill introduce solutions to composer.phar installation problems. I hope it will be helpful to friends in need!

Solving composer.phar installation issues

Problem:

After downloading the composer.phar file and installing it according to the official tutorial, an error is reported when running the composer command: PHP Fatal error: Uncaught exception 'PharException' with message 'phar...

Solution:

The composer.phar file may be damaged. Re-download the latest file snapshothttps://getcomposer.org/composer.phar

Note:

Composer is a dependency management tool for PHP. We can declare the external tool libraries we depend on in the project, and Composer will help you install these dependent library files. With it, we can easily use one command to reference other people's excellent code into our project. .

Composer is not installed globally by default, but is installed based on a directory of a specified project (such as vendor).

Composer requires PHP 5.3.2 or above, and openssl needs to be turned on.

Composer can run on Windows, Linux and OSX platforms.

The above is the detailed content of Solving composer.phar installation issues. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn