Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e3afd

Browse files
committed
update README
1 parent 7d4a769 commit 65e3afd

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@ The following extensions are available on all containers:
77
- OpenSSL
88
- mcrypt
99
- sodium (5.6+ only)
10-
- ssh2 (5.3-7.4 only)
10+
- ssh2 (5.3+ only)
11+
12+
## Running Multiple PHP versions via Docker
13+
After installing Docker you may use these containers to run multiple versions of PHP on Linux via Docker. Using the 8.0 container as an example, here's what you'd want to do:
14+
15+
```
16+
docker pull "phpseclib/php8.0"
17+
printf "alias php80='docker run -it --rm --name php80 --user $(id -u):$(id -g) -v \"$PWD\":/usr/src/myapp -w /usr/src/myapp phpseclib/php8.0 php'\n" >> ~/.bashrc
18+
printf "alias php80='docker run -it --rm --name composer80 --user $(id -u):$(id -g) -v \"$PWD\":/usr/src/myapp -w /usr/src/myapp phpseclib/php8.0 composer'\n" >> ~/.bashrc
19+
```
20+
21+
At this point you'll be able to do `php80 test.php` to run PHP scripts using the 8.0 container or `composer80 require phpseclib/phpseclib:^3.0` to run Composer using the 8.0 container
22+
23+
## Notes on the available extensions
1124

1225
**ssh2**
1326

1427
This PECL extension is included for comparison purposes with phpseclib.
1528

16-
The PHP 4.4, 5.0, 5.1, 5.2 and 8.0 Dockerfile's do not support libssh2 due to issues I was having with installing / compiling the extensions. If you're able to get libssh2 working in these versions feel free to submit a pull request.
29+
The PHP 4.4, 5.0, 5.1 and 5.2 Dockerfile's do not support libssh2 due to issues I was having with installing / compiling the extensions. If you're able to get libssh2 working in these versions feel free to submit a pull request.
1730

1831
**sodium**
1932

@@ -49,7 +62,6 @@ mcrypt is an exception to this because mcrypt used to be a core extension and be
4962

5063
(in order of priority)
5164

52-
- get libssh2 [working on PHP 8.0](https://bugs.php.net/bug.php?id=80250)
5365
- implementing some [testing](https://docs.docker.com/docker-hub/builds/automated-testing/).
5466
- providing [i386 Ubuntu builds](https://hub.docker.com/r/i386/ubuntu/)
5567
- getting libssh2 working on PHP 4.4, 5.0, 5.1 and 5.2

test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
iii

0 commit comments

Comments
 (0)