PHPackages                             ody/foundation - 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. ody/foundation

ActiveLibrary[Framework](/categories/framework)

ody/foundation
==============

Core for ODY framework

0.2.0(1y ago)1282MITPHPPHP &gt;=8.3

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ody-dev/foundation)[ Packagist](https://packagist.org/packages/ody/foundation)[ RSS](/packages/ody-foundation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (13)Used By (2)

ODY Framework - Foundation
==========================

[](#ody-framework---foundation)

⚠️ **IMPORTANT**: This repository is automatically generated from the [ody repo](https://github.com/ody-dev/ody) and is read-only.

The Foundation module is the core of the ODY PHP Framework, providing essential functionality for building high-performance API applications with Swoole coroutines.

Overview
--------

[](#overview)

The Foundation module serves as the backbone of the ODY framework.

- **Routing**: Efficient request routing with FastRoute
- **Middleware**: PSR-15 compatible middleware implementation
- **HTTP Handling**: PSR-7 compatible request/response handling
- **Service Container**: Dependency injection and service management
- **Service Providers**: Modular service registration
- **Error Handling**: Exception handling

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

[](#installation)

```
composer require ody/foundation
```

Key Features
------------

[](#key-features)

### Swoole Integration

[](#swoole-integration)

ODY's foundation is built with native support for Swoole's coroutines, allowing for highly concurrent PHP applications:

```
