Exura.php is a minimalist PHP micro-framework designed to simplify modern backend development.
Inspired by Express-like design, Exura focuses on clarity, modularity, and control — without the bloat of large frameworks.
-
⚡ Simple Routing
Define routes withExura::module($method, $route, $callback)— expressive and easy to read. -
🛡️ Error & Exception Handling
All errors and exceptions are automatically converted into structured JSON. -
📦 Response Management
UseExura::return(),Exura::state(), orExura::header()to control responses clearly. -
📑 Method Helper
Easily retrieve request data usingExura::method(). -
🔍 Trace & Debug Info
Attach traces or additional method info into responses for easier debugging.
Exura::module('GET', 'demo', function() {
Exura::state(200);
return [
'data' => 'Hello World 👋'
];
});
Exura::module('POST', 'demo', function() {
$data1 = Exura::method('data1', false);
Exura::return(
data: ['data1'=> $data1],
code: 200
);
});
Exura::module('DELETE', 'demo', function() {
// Simulated error
$x = $y + 2;
return [
'data'=> 'DELETE:hello world',
'method'=> Exura::method()
];
});Simple, clean, and powerful — that’s the Exura.php way ✨ Perfect for developers who love concise code, full control, and zero bloat.
Exura uses the Rune build engine.
Before getting started, we recommend reading the official documentation here:
👉 https://github.com/devneet-id/rune
Although in most cases you can simply run the available build commands, understanding the Rune structure will help you better track and manage post-processing tasks more efficiently.
Requirements, Make sure you have:
- Composer installed
- PHP version 8+
Then run this command:
composer installTo view the main rune script:
php runeTo build the project:
php rune build
php rune build --min=trueDevelopment mode (auto watch & build on changes):
php rune watchExura will:
-
Be fully integrated with Rune as its built-in module bundler and task engine.
-
Feature a custom preprocessing and execution system for APIs, inspired by reactive patterns — built natively into Rune’s environment.
-
Support asynchronous, non-blocking, and side-effect aware workflows, allowing developers to handle background tasks and deferred execution efficiently.
-
Embrace modern backend development concepts, including structured API design, modular response handling, and forward-compatible architecture.
-
Stay committed to never slowing down or interfering with the developer's workflow.
Exura.php is here to assist — not to intrude.