wundii / jupyter-php-kernel
PHP Kernel for Jupyter Notebooks
Installs: 152
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/wundii/jupyter-php-kernel
Requires
- php: >=8.1
- psy/psysh: ^0.12
- ramsey/uuid: ^4.9
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- rector/rector: ^2.1
- symfony/var-dumper: ^6.4
- symplify/easy-coding-standard: ^12.5
- wundii/phplint: ^0.3
This package is auto-updated.
Last update: 2026-03-01 14:36:58 UTC
README
This repo is a derivative of jupyter-php-kernel.
Runtime architecture (PHP 8.5 compatible)
php-zmq/react/zmq are not used in PHP.
- The PHP kernel runs as a worker process over
STDIN/STDOUT. - A small Python bridge (
bridge/jupyter_php_zmq_bridge.py) owns the Jupyter ZMQ sockets. - Messages are forwarded between bridge and PHP worker as JSON lines with base64-encoded frames.
Requirements
- PHP >= 8.1
- Python 3
pyzmq(pip install pyzmq)
Start Python ZMQ
python3 -m py_compile ./bridge/jupyter_php_zmq_bridge.py