Installation
On this page
Requirements
- Every package supports PHP 8.3, 8.4, and 8.5. CmdStanPHP also supports PHP 8.2.
- Composer installs the PHP libraries from Packagist.
- PIE installs the phit and phpolars extensions.
phibble
Requires: mbstring extension, PDO extension
composer require phpstats/phibble
phplyr
Requires: phibble (installed by Composer), PDO extension, mbstring extension
composer require phpstats/phplyr
phpolars
Requires: PIE, NTS (non-thread-safe) PHP
To build from source: Rust toolchain, libclang
pie install phpstats/phpolars
php -r 'echo phpversion("php_polars"), PHP_EOL;'
Prints the installed version. PHP-FPM reads its own php.ini, so enable the extension there and restart FPM.
juphyter
Requires: mbstring and tokenizer PHP extensions, Composer, Python 3 with the venv module
composer global require phpstats/juphyter
composer global exec juphyter -- install --create-venv ~/.venvs/juphyter
composer global exec juphyter -- doctor
Checks kernel readiness and optional Quarto support.
phit
Requires: PIE, unzip or the PHP zip extension, NTS (non-thread-safe) PHP
To build from source: Rust toolchain, Clang and libclang, PHP development files (phpize and php-config), autoconf and make
pie install phpstats/phit
php -r 'echo phpversion("phit"), PHP_EOL;'
Prints the installed version. PHP-FPM reads its own php.ini, so enable the extension there and restart FPM.
phiz
composer require phpstats/phiz
CmdStanPHP
Requires: JSON extension, proc_open() enabled, CmdStan 2.37 or later
To compile models: make, C++ compiler supported by CmdStan
composer require phpstats/cmdstanphp