Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 860d2be

Browse files
authoredFeb 8, 2023
Update README.md
1 parent ad037f8 commit 860d2be

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@ PHP 8.1.15 (cli) (built: Feb 7 2023 11:31:36) (NTS)
4848
...
4949
```
5050

51+
## Other software
52+
53+
### Direnv
54+
55+
Add the following to `~/.direnvrc`:
56+
57+
```
58+
# Usage: use php <version>
59+
#
60+
# Loads the specified php version into the environent
61+
#
62+
use_php() {
63+
source $HOME/opt/php-activate/php-activate.sh
64+
php-activate $1
65+
layout php
66+
}
67+
```
68+
69+
then add the following to the project's `.envrc`:
70+
```
71+
use php 8.2
72+
```
73+
74+
5175
## Credits
5276

5377
Thanks to [wilmoore for php-version](https://github.com/wilmoore/php-version) which inspired this idea.

0 commit comments

Comments
 (0)
This repository has been archived.