Home >Backend Development >PHP Problem >How to install php class library

How to install php class library

藏色散人
藏色散人Original
2021-09-12 10:47:172186browse

How to install the php class library: 1. Download the "go-pear.phar" file; 2. Execute the "php go-pear.phar" command; 3. Keep pressing Enter.

How to install php class library

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

How to install the php class library?

Install PHP class library PEAR

When there is no pear in the PHP project;

Separate installation solution

1. Download the file linked below to go-pear.phar.

http://pear.php.net/go-pear.phar

It is best to put this file in the Php directory, because after the next step is executed, many folders and files will be generated.

2. Execute php go-pear.phar

(When executing on Windows, there is a UAC problem, so you need to run CMD with administrator rights.

As administrator How to run CMD with permissions.

Create the CMD.bat file -> There is only one statement in the file: CMD -> Right-click to run the BAT file as an administrator)

3. All the way Enter.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to install php class library. 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