mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
pr feedback
This commit is contained in:
@@ -21,20 +21,19 @@ for us to support them.
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
asdf plugin-add php
|
||||
asdf plugin-add php https://github.com/asdf-community/asdf-php.git
|
||||
```
|
||||
|
||||
Since this plugin compiles PHP from source, you'll want to ensure all other required packages are installed.
|
||||
After you've installed additional system packages, install a specific PHP version:
|
||||
|
||||
```bash
|
||||
asdf install php 7.4.16
|
||||
asdf install php latest
|
||||
```
|
||||
|
||||
You can test to ensure the installation was successful:
|
||||
|
||||
```bash
|
||||
asdf reshim
|
||||
php --version
|
||||
```
|
||||
|
||||
@@ -48,7 +47,7 @@ echo "extension=redis.so
|
||||
extension=imagick.so" > $(asdf where php)/conf.d/php.ini
|
||||
```
|
||||
|
||||
#### MacOS
|
||||
#### macOS
|
||||
|
||||
To install PHP on MacOS, you'll need a set of packages installed via homebrew:
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ install_php() {
|
||||
)
|
||||
|
||||
# it's not obvious where php.ini should be placed, let us make it easy for the user
|
||||
mkdir $install_path/conf.d/
|
||||
mkdir -p $install_path/conf.d/
|
||||
echo "# add system-wide php configuration options here" > $install_path/conf.d/php.ini
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user