Skip to content

Commit 09c6727

Browse files
authored
Update README.md
1 parent 99a279e commit 09c6727

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,38 @@
44

55
You can install the package via Composer:
66

7-
```bash
7+
```shell
88
composer require nativephp/php-bin --dev
99
```
1010

1111
or NPM:
1212

13-
```bash
13+
```shell
1414
npm -i @nativephp/php-bin --save-dev
1515
```
1616

1717
### ℹ️ Heads up...
1818
> You should install this package as a `dev` dependency, in most cases, and simply copy what you need from it to the
1919
relevant parts of your application. This will save you distributing all of the PHP binaries with every installation.
2020

21+
## Creating new binaries
22+
23+
NativePHP uses [`static-php-cli`](https://static-php.dev) to build minimal, statically-linked, self-contained PHP
24+
executables for each platform.
25+
26+
The default build commands are:
27+
28+
```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"
31+
```
32+
33+
```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"
35+
```
36+
37+
You need to build these on the relevant platform to compile binaries for that platform.
38+
2139
## Issues
2240

2341
Please raise any issues on the [NativePHP/laravel](/nativephp/laravel/issues/new/choose) repo.

0 commit comments

Comments
 (0)