mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 13:15:42 +02:00
phpenv: add page (#2721)
This commit is contained in:
parent
9c4f5869eb
commit
a0cbc90c3a
1 changed files with 31 additions and 0 deletions
31
pages/common/phpenv.md
Normal file
31
pages/common/phpenv.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# phpenv
|
||||||
|
|
||||||
|
> A PHP version manager for development purposes.
|
||||||
|
|
||||||
|
- Install a PHP version globally:
|
||||||
|
|
||||||
|
`phpenv install {{version}}`
|
||||||
|
|
||||||
|
- Refresh shim files for all PHP binaries known to `phpenv`:
|
||||||
|
|
||||||
|
`phpenv rehash`
|
||||||
|
|
||||||
|
- List all installed PHP versions:
|
||||||
|
|
||||||
|
`phpenv versions`
|
||||||
|
|
||||||
|
- Display the currently active PHP version:
|
||||||
|
|
||||||
|
`phpenv version`
|
||||||
|
|
||||||
|
- Set the global PHP version:
|
||||||
|
|
||||||
|
`phpenv global {{version}}`
|
||||||
|
|
||||||
|
- Set the local PHP version, which overrides the global version:
|
||||||
|
|
||||||
|
`phpenv local {{version}}`
|
||||||
|
|
||||||
|
- Unset the local PHP version:
|
||||||
|
|
||||||
|
`phpenv local --unset`
|
Loading…
Add table
Reference in a new issue