PHPackages                             oasys/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. [HTTP &amp; Networking](/categories/http)
4. /
5. oasys/core

ActiveLibrary[HTTP &amp; Networking](/categories/http)

oasys/core
==========

Minimal PSR-compatible HTTP framework with routing, middleware pipeline, and exception handling

v1.0.0(8mo ago)032MITPHPPHP ^8.2CI failing

Since Dec 6Pushed 1mo agoCompare

[ Source](https://github.com/kweensey/oasys-core)[ Packagist](https://packagist.org/packages/oasys/core)[ RSS](/packages/oasys-core/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Oasys
=====

[](#oasys)

[![Tests](https://github.com/kweensey/oasys-core/actions/workflows/tests.yml/badge.svg)](https://github.com/kweensey/oasys-core/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/cc8db8863e84837170ed108ab84cd5c3e8e5e97e671348fec2b031a5820cb7b1/68747470733a2f2f706f7365722e707567782e6f72672f6b7765656e7365792f6f617379732d636f72652f76)](https://packagist.org/packages/kweensey/oasys-core)[![PHP Version Require](https://camo.githubusercontent.com/a02b6fb3632b45b784a29cf178804a15e7a24bd856f87378f6dc5f4117f2d3a7/68747470733a2f2f706f7365722e707567782e6f72672f6b7765656e7365792f6f617379732d636f72652f726571756972652f706870)](https://packagist.org/packages/kweensey/oasys-core)[![License](https://camo.githubusercontent.com/3309b1a85ba51555cf7949b5df846f77e042498baabb9390edad8f0691ce7f9b/68747470733a2f2f706f7365722e707567782e6f72672f6b7765656e7365792f6f617379732d636f72652f6c6963656e7365)](https://packagist.org/packages/kweensey/oasys-core)

Minimal HTTP framework for modern PHP.

Works with any PSR-7 messages, PSR-15 middleware, and PSR-11 container.

- Manual and attribute-based routing
- Controller and method level middleware pipeline
- Exception-to-handler mapping
- Small dependency-free kernel

---

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

[](#installation)

Example using PHP-DI container and Guzzle's request/response:

```
composer require oasys/core
composer require php-di/php-di
composer require guzzlehttp/psr7
```

---

Quick start
-----------

[](#quick-start)

`public/index.php`:

```
