rapira/laravel

Laravel bridge for Rapira: classic, worker and dispatcher modes on top of Laravel Octane
8
Install
composer require rapira/laravel
Latest Version:0.1.1
PHP:>=8.4
License:BSD-3-Clause
Last Updated:Oct 6, 2026
Links: GitHub  ·  Packagist
Maintainer: roxblnfk

rapira/laravel

About

Runs a Laravel application under Rapira in every run mode from one entry script:

  • classic — one request per script run, the same lifecycle as Laravel's own public/index.php.
  • worker — the application stays resident on Laravel Octane; requests arrive through the superglobals.
  • dispatcher — the application stays resident on Laravel Octane; requests arrive as Rapira\Http\Exchange units and responses are written back into them.

Install

composer require rapira/laravel

PHP Latest Version on Packagist License Total Downloads

Usage

The rapira server binary is installed separately: get it from the download page.

Publish the entry script and a starter server config into the project root:

php artisan vendor:publish --tag=rapira

worker.php:

use Rapira\Laravel\Runner;

require __DIR__ . '/vendor/autoload.php';

(new Runner(__DIR__))->run();

rapira.toml — pick the mode in [http.pool], the entry script stays the same:

[http]
listen = "127.0.0.1:8000"
middleware = ["static"]

[http.static]
root = "public"

[http.pool]
entrypoint = "worker.php"
mode = "dispatcher" # or "worker", "classic"

Start the server:

rapira serve rapira.toml

Related Packages

winter/wn-octane-plugin

Serves Winter CMS from a persistent application server (FrankenPHP, Swoole or Ro...

1 1
eyika/atom-octane

Octane-style persistent worker for the Atom framework — boot the application onc...

0 0
maaf/runtime

MAAF Runtime Package - Worker-based execution with cached bootstrap and module-l...

10 0
phyra/workerman-bridge

Phyra — Run Laravel on Workerman. Fast, memory-safe, state-leak-aware, with a cr...

0 3
goktugcy/worker-safety

Static analysis for PHP applications running on persistent workers. Detect cross...

12 0

Version History

Version Released PHP Laravel License
0.1.1 >=8.4 ^11.0 || ^12.0 || ^13.0 BSD-3-Clause
0.1.0 >=8.4 ^11.0 || ^12.0 || ^13.0 BSD-3-Clause