PHPackages                             kekke/mononoke - 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. [Framework](/categories/framework)
4. /
5. kekke/mononoke

ActiveLibrary[Framework](/categories/framework)

kekke/mononoke
==============

Microservice framework for PHP

v0.1.4(7mo ago)10701[5 issues](https://github.com/Kekke88/Mononoke/issues)[1 PRs](https://github.com/Kekke88/Mononoke/pulls)PHPCI passing

Since Aug 16Pushed 5mo agoCompare

[ Source](https://github.com/Kekke88/Mononoke)[ Packagist](https://packagist.org/packages/kekke/mononoke)[ RSS](/packages/kekke-mononoke/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

Mononoke
========

[](#mononoke)

> ⚠️ **Early Alpha Notice**
> Mononoke is currently in **early alpha** and under active development.
> Features, and implementations may change at any time without notice.
> It is not yet recommended for production use, but feedback and contributions are welcome.

---

Mononoke is a PHP microservice framework and utility toolkit built with modern PHP practices.
It leverages **Swoole** for an asynchronous HTTP server and the **AWS SDK** for SNS and SQS integration,
allowing you to build event-driven, scalable PHP applications.

---

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

[](#installation)

Via composer:

`composer require kekke/mononoke`

Features
--------

[](#features)

- **AWS SNS and SQS Integration**
    Manage SNS topics, send notifications, subscribe queues, and poll SQS messages asynchronously.
- **Swoole HTTP Server**
    Asynchronous HTTP server with FastRoute-based routing for defining HTTP endpoints via PHP attributes.
- **WebSockets**
    Real-time, bidirectional communication between clients and the server, powered by Swoole’s WebSocket server.
- **Background Tasks**
    Offload blocking or long-running work to Swoole’s task workers for efficient non-blocking request handling.
- **Scheduler**
    Register cron-like scheduled tasks using attributes.

---

Attribute-based Listeners
-------------------------

[](#attribute-based-listeners)

Mononoke uses PHP attributes to register **HTTP routes**, **WebSocket event handlers**, **scheduled tasks**, **background tasks**, and **SNS/SQS message handlers**.
This allows for a clean and declarative service definition.

### Example Service

[](#example-service)

```
