Skip to content
@rapira-rs

Rapira: a post-modern PHP application server.

Rapira is a PHP application server with extensions from the RoadRunner maintainers.

Rapira

A post-modern PHP application server.

Website · Documentation · Quickstart · Releases

👋 What is Rapira

Rapira is a PHP application server written in Rust, built by the maintainers of RoadRunner. It embeds NTS PHP into the server process through PHP's embed SAPI: the host calls the interpreter directly, with no FastCGI, no sockets, no per-request serialization. Like RoadRunner, the server is extended through plugins.

Run an existing app unchanged in classic mode (a front controller executed per request, where php-fpm used to sit), or keep it resident in worker mode and pay the bootstrap cost once per worker instead of once per request.

📦 Which repo is which

  • rapira: the server itself - the Rust core, the embed SAPI integration.
  • sdk-php: the PHP building blocks - PSR-7 request factories, testing utilities, and helpers, each published as its own package.
  • yii-runner-rapira: web application runner for Yii3.
  • rapira-rs.github.io: source of the documentation site, rapira.rs.

🚀 Getting started

Every release bundles PHP (NTS) - no separate PHP installation needed. Grab the package or tarball for your platform and PHP version:

sudo apt install ./rapira-php<X.Y>_<version>_amd64.deb
rapira serve --mode classic public/index.php

The bundled libphp.so/libphp.dylib is built with --disable-all and a fixed set of extensions turned back on: OPcache and PCRE with JIT, session, filter, mbstring, iconv, ctype, tokenizer, fileinfo, phar, openssl, curl, zlib, the XML family (libxml, dom, xml, simplexml, xmlreader, xmlwriter), pdo_sqlite and sqlite3, plus everything PHP always builds in. If your app needs more, build from source against your own libphp or install the system one.

Docker images live at ghcr.io/rapira-rs/rapira, staged for copying into your own image. Full instructions: installation, quickstart, worker mode, and framework guides for Symfony, Laravel, and Yii3.

🤝 Contributing

Found a bug or want a feature? Open an issue in the matching repository; when in doubt, rapira-rs/rapira is the right place. Build and test instructions are in CONTRIBUTING.md.

Popular repositories Loading

  1. rapira rapira Public

    SAPI core API used to integrate with PHP SAPI and provide API for plugins

    Rust 11

  2. .github .github Public

  3. rapira-rs.github.io rapira-rs.github.io Public

    Rapira documentation

    TypeScript

  4. rapira-windows rapira-windows Public

    Rapira build, with ZTS, for Windows OS with full feature parity used only for testing purposes

    Rust

  5. contract contract Public

    PHP

  6. yii-runner-rapira yii-runner-rapira Public

    Web application runner for Rapira

    PHP

Repositories

Showing 9 of 9 repositories

Top languages

Loading…

Most used topics

Loading…