1
0
Fork 0
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:
Owen Voke 2019-01-23 18:02:13 +00:00 committed by Starbeamrainbowlabs
parent 9c4f5869eb
commit a0cbc90c3a

31
pages/common/phpenv.md Normal file
View 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`