nativephp/php-bin

PHP binaries used by the NativePHP framework

Installs: 32 363

Dependents: 1

Suggesters: 0

Security: 0

Stars: 67

Watchers: 7

Forks: 15

Language:Batchfile

0.4.0 2024-04-26 14:32 UTC

This package is auto-updated.

Last update: 2024-05-02 12:51:57 UTC


README

Installation

You can install the package via Composer:

composer require nativephp/php-bin --dev

or NPM:

npm -i @nativephp/php-bin --save-dev

ℹ️ Heads up...

You should install this package as a dev dependency, in most cases, and simply copy what you need from it to the relevant parts of your application. This will save you distributing all of the PHP binaries with every installation.

Creating new binaries

NativePHP uses static-php-cli to build minimal, statically-linked, self-contained PHP executables for each platform.

You need to build separately for each PHP version:

PHP 8.2

bin/spc download --clean
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"

PHP 8.3

bin/spc download --clean
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"

Build

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"

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

Issues

Please raise any issues on the NativePHP/laravel repo.

Credits

License

This repository is simply a redistribution of PHP. As such its use and further distribution is subject to the various license agreements found in the licenses