PHPackages                             shopie/neat-core - 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. [API Development](/categories/api)
4. /
5. shopie/neat-core

ActiveProject[API Development](/categories/api)

shopie/neat-core
================

Neat, the PHP 8 API for microservices

v2.0.8(3mo ago)02571MITPHP

Since Dec 17Pushed 3mo agoCompare

[ Source](https://github.com/Shopie-App/neat-core)[ Packagist](https://packagist.org/packages/shopie/neat-core)[ RSS](/packages/shopie-neat-core/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (23)Used By (1)

🚀 Neat-Core
===========

[](#-neat-core)

**Neat-Core** is a high-performance **PHP 8.4 Micro-kernel**. It provides the essential engine—DI Container, Middleware Pipeline, and Worker-ready Request handling—needed to build ultra-fast, stateless **microservices** and web applications.

Built for the 2026 era of distributed systems, Neat-Core is a f\*\*\*ing brilliant foundation for developers who need maximum throughput with a **zero-leak** footprint.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/8caa421e2b20d255ca78e20fc187952eb327e4290139a4fc1f0ed933769c5c99/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e342d3838393262662e737667)](https://camo.githubusercontent.com/8caa421e2b20d255ca78e20fc187952eb327e4290139a4fc1f0ed933769c5c99/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e342d3838393262662e737667)

✨ The Philosophy
----------------

[](#-the-philosophy)

Modern PHP isn't just for FPM anymore. Neat-Core was built from the ground up to thrive as a **Microservice backbone** in **Worker-mode** (FrankenPHP, RoadRunner).

While other frameworks struggle with memory bloat and state pollution in long-running processes, Neat-Core uses a **"Build-not-Reset"** architecture. We don't try to scrub dirty objects; we spawn fresh ones and recycle the references. It’s cleaner, safer, and optimized for high-concurrency environments where every byte counts and every millisecond matters.

📊 Performance
-------------

[](#-performance)

- **200K+ requests/sec** (Baseline with full middleware pipeline in worker mode).
- **Zero Memory Creep:** Flat memory delta over long-running worker loops—perfect for low-resource VPS environments.
- **Lean Kernel:** Zero third-party dependencies. Pure PHP 8.4 code.

🏗 Key Features
--------------

[](#-key-features)

- **Reference Recycling:** Automatic isolation between requests. No manual `reset()` methods, no data leakage.
- **Microservice Ready:** Lightweight footprint designed for distributed architectures and containerized deployments (Docker/Kubernetes).
- **Dual-Mode Engine:** Seamlessly switches between FrankenPHP workers and traditional PHP-FPM for ultimate flexibility.
- **Fluent AppBuilder:** Simple, expressive setup for HTTP, Middleware, and Routing components.

🚀 Quick Start (FrankenPHP / Microservice)
-----------------------------------------

[](#-quick-start-frankenphp--microservice)

```
use Neat\App\AppBuilder;
use Neat\Contexts\HttpContext;
use Neat\Http\Request;
use Neat\Http\Response;

// Build the kernel once
$app = (new AppBuilder())
    ->useHttp()
    ->useMiddleware()
    ->build();

// The Worker Handler
$handler = static function () use ($app) {
    // 1. Spawn fresh Request/Response instances for THIS request
    $context = new HttpContext(new Request(), new Response());

    // 2. Run the kernel. Reference Recycling handles the cleanup via 'finally'.
    $app->run($context);
};

// Start the high-performance loop
while (frankenphp_handle_request($handler));
```

🏗 Architecture
--------------

[](#-architecture)

Neat-Core follows a **Ref-Recycle** pattern:

1. **Spawn:** Fresh HTTP objects are created per request (physically new memory).
2. **Sync:** The DI Container "hot-swaps" its internal pointers to these new objects.
3. **Run:** Middleware and logic execute in a 100% clean environment.
4. **Wipe:** The `finally` block severs references, allowing PHP to reclaim memory instantly.

📄 Documentation
---------------

[](#-documentation)

Full documentation, architecture deep-dives, and Greek-server optimization tips are available at:

⚖️ License
----------

[](#️-license)

MIT License. Built for speed.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~39 days

Recently: every ~12 days

Total

22

Last Release

96d ago

Major Versions

v1.1.12 → v2.0.02026-02-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3966200?v=4)[shopie](/maintainers/shopie)[@shopie](https://github.com/shopie)

---

Top Contributors

[![ShopieApp](https://avatars.githubusercontent.com/u/72389353?v=4)](https://github.com/ShopieApp "ShopieApp (56 commits)")

### Embed Badge

![Health badge](/badges/shopie-neat-core/health.svg)

```
[![Health](https://phpackages.com/badges/shopie-neat-core/health.svg)](https://phpackages.com/packages/shopie-neat-core)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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