When beginners learn PHP and watch teaching videos, they often need to open extensions such as Openssl and curl, which can be directly modified to the php.ini file. Some, such as Redis and memcache, need to find corresponding versions of PHP, NTS, VC and WIN. While this is fine for an experienced person, it’s easy for a novice to get caught up in these challenges. So, a one-click install PHP extension package was developed. The main principles are as follows:

+--------------+                    +----------------+            +------------+
| open service | php install redis  | down redis.dll | php index  |    show    |
|  lamp/lnmp   |------------------> | move redis.dll | ---------> | extensions |
| environment  |                    | update php.ini |            |    list    |
+--------------+                    +----------------+            +------------+Copy the code

redis_extendsion



dll



Extendtions
$mapUrl
URL

  1. php install redisWill first get the version of the current installation environment, concatenated key to get the URL.
  2. After you get the URL, you request the URL and you get a compressed file.
  3. Unzip the file and getdllFile, copy toPHPExtension directory of.
  4. Open thephp.iniExtension project in the file

It’s easy to use:

PHP install memcache PHP install memcache PHP install memcache Please restart the server PHP index // rollback the php.ini configuration file PHP install rollbackCopy the code

See Github’s introduction for more extensions


If you have your own extension, you can reply to give the URL and extension name, I added to the program. It is convenient for you to use your favorite friend to point a thumbs-up and give a star!! ~_~. Github storage address