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

dev-main 2026-03-01 14:36 UTC

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