PHPackages                             ensi/octane-swoole-urgent-starter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ensi/octane-swoole-urgent-starter

ActiveLibrary

ensi/octane-swoole-urgent-starter
=================================

Laravel octane swoole urgent starter

2.0.4(1y ago)252.6k—9.7%1MITPHPPHP ^8.1CI passing

Since Oct 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ensi-platform/octane-swoole-urgent-starter)[ Packagist](https://packagist.org/packages/ensi/octane-swoole-urgent-starter)[ RSS](/packages/ensi-octane-swoole-urgent-starter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (9)Versions (8)Used By (0)

Alternative Laravel Octane swoole server starter
================================================

[](#alternative-laravel-octane-swoole-server-starter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b519446be38720396c15e0f36f7167553bc25928ef2c5b82ec303ca7a039a61e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e73692f6f6374616e652d73776f6f6c652d757267656e742d737461727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ensi/octane-swoole-urgent-starter)[![Tests](https://github.com/ensi-platform/octane-swoole-urgent-starter/actions/workflows/run-tests.yml/badge.svg?branch=master)](https://github.com/ensi-platform/octane-swoole-urgent-starter/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/fb98fe9743336dd82e867e23bfbb11c2db59ec3735fcce19d972c9d03be2b6af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e73692f6f6374616e652d73776f6f6c652d757267656e742d737461727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ensi/octane-swoole-urgent-starter)

This package adds alternative behaviour to octane server for dev and prod usage.
**Dev:** server process continue work even if syntax error appears in code.
**Prod:** you can start swoole master process directly, without artisan command, which consumes some memory.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ensi/octane-swoole-urgent-starter
```

and add this section to **config/octane.php** file

```
'swoole' => [
    'command' => '/var/www/vendor/bin/urgent-swoole-server',
    'show_fatal_error' => env('OCTANE_SHOW_FATAL_ERROR', false),
]

```

Version Compatibility
---------------------

[](#version-compatibility)

Laravel Octane swoole server starterLaravel OctanePHP^0.1.0^1.2\*^2.0.0^2.0^8.1Basic Usage
-----------

[](#basic-usage)

### Dev

[](#dev)

Just start octane server with swoole backend and --watch option, and see how it reloads after very fatal errors.
If you want to see error message in http response, set `true` to `OCTANE_SHOW_FATAL_ERROR` environment variable.

### Prod

[](#prod)

Originally, `octane:start` command makes server state file and then starts swoole process as child.
Now you can to separate this to two steps.
First: use `octane:dump-server-state` command for saving server state file.
Second: start swoole process, without any useless parent.

```
php artisan octane:dump-server-state --host=0.0.0.0 --port=8000 --workers=20

export APP_ENV=production
export APP_BASE_PATH=/var/www
export LARAVEL_OCTANE=1

php ./vendor/bin/swoole-server /var/www/storage/logs/octane-server-state.json
```

When service works in ELC workspace
-----------------------------------

[](#when-service-works-in-elc-workspace)

Old elc workspace template uses hack for reloading code without container restarts. You should to replace last artisan command in templates/swoole-X.X/php/entrypoint to this

```
OCTANE_SHOW_FATAL_ERROR=true php artisan octane:swoole --watch --host=0.0.0.0 --workers=1 --task-workers=1 || sleep 3600
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

### Testing

[](#testing)

1. composer install
2. composer test

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance45

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~174 days

Recently: every ~136 days

Total

6

Last Release

431d ago

Major Versions

0.1.0 → 2.02023-09-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8089373?v=4)[Наталия](/maintainers/MsNatali)[@MsNatali](https://github.com/MsNatali)

![](https://avatars.githubusercontent.com/u/7352966?v=4)[Andrey](/maintainers/dimionx)[@DimionX](https://github.com/DimionX)

---

Top Contributors

[![MsNatali](https://avatars.githubusercontent.com/u/8089373?v=4)](https://github.com/MsNatali "MsNatali (11 commits)")[![valerialukinykh](https://avatars.githubusercontent.com/u/123940772?v=4)](https://github.com/valerialukinykh "valerialukinykh (2 commits)")[![C0rTeZ13](https://avatars.githubusercontent.com/u/120840631?v=4)](https://github.com/C0rTeZ13 "C0rTeZ13 (1 commits)")[![MadridianFox](https://avatars.githubusercontent.com/u/3392587?v=4)](https://github.com/MadridianFox "MadridianFox (1 commits)")[![Se7en-RU](https://avatars.githubusercontent.com/u/24911713?v=4)](https://github.com/Se7en-RU "Se7en-RU (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ensi-octane-swoole-urgent-starter/health.svg)

```
[![Health](https://phpackages.com/badges/ensi-octane-swoole-urgent-starter/health.svg)](https://phpackages.com/packages/ensi-octane-swoole-urgent-starter)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M11](/packages/bref-laravel-bridge)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[spiral/roadrunner-laravel

Laravel integration for RoadRunner with support for HTTP, Jobs, gRPC, and Temporal plugins - going beyond Octane's capabilities

491320.3k3](/packages/spiral-roadrunner-laravel)[badaso/core

The API &amp; platform builder, build your apps 10x faster even more, it's open source &amp; 100% free !

1.3k16.2k10](/packages/badaso-core)[roadrunner-php/laravel-bridge

Laravel integration for RoadRunner with support for HTTP, Jobs, gRPC, and Temporal plugins - going beyond Octane's capabilities

49143.2k1](/packages/roadrunner-php-laravel-bridge)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
