Skip to content

Commit 3922006

Browse files
authored
Update README.md
1 parent c441c67 commit 3922006

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,23 @@ relevant parts of your application. This will save you distributing all of the P
2323
NativePHP uses [`static-php-cli`](https://static-php.dev) to build minimal, statically-linked, self-contained PHP
2424
executables for each platform.
2525

26-
The default build commands are:
26+
You need to build separately for each PHP version:
2727

28+
### PHP 8.2
2829
```shell
29-
bin/spc download --clear
30-
bin/spc download --with-php=8.2 --for-extensions "bcmath,ctype,curl,dom,fileinfo,filter,mbstring,openssl,pdo,pdo_sqlite,session,simplexml,sqlite3,tokenizer,xml,zlib"
30+
bin/spc download --clean
31+
bin/spc download --with-php=8.2 --for-extensions "bcmath,ctype,curl,dom,fileinfo,filter,mbstring,openssl,pdo,pdo_sqlite,session,simplexml,sockets,sqlite3,tokenizer,xml,zlib"
3132
```
3233

34+
### PHP 8.3
3335
```shell
34-
bin/spc build --build-cli --build-embed "bcmath,ctype,curl,dom,fileinfo,filter,mbstring,openssl,pdo,pdo_sqlite,session,simplexml,sqlite3,tokenizer,xml,zlib"
36+
bin/spc download --clean
37+
bin/spc download --with-php=8.3 --for-extensions "bcmath,ctype,curl,dom,fileinfo,filter,mbstring,openssl,pdo,pdo_sqlite,session,simplexml,sockets,sqlite3,tokenizer,xml,zlib"
38+
```
39+
40+
### Build
41+
```shell
42+
bin/spc build --build-cli --build-embed "bcmath,ctype,curl,dom,fileinfo,filter,mbstring,openssl,pdo,pdo_sqlite,session,simplexml,sockets,sqlite3,tokenizer,xml,zlib"
3543
```
3644

3745
You need to build these on the relevant platform to compile binaries for that platform.

0 commit comments

Comments
 (0)