PHPackages                             spatial/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spatial/core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spatial/core
============

Spatial API Core Contains Attributes

4.0.1(3mo ago)34762MITPHPPHP ^8.2

Since Oct 28Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/aiira-co/spatial-core)[ Packagist](https://packagist.org/packages/spatial/core)[ RSS](/packages/spatial-core/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (10)Dependencies (14)Versions (60)Used By (2)

Spatial Core
============

[](#spatial-core)

The core package of the **Spatial PHP Framework** - a modern, attribute-based web framework for building high-performance APIs with PHP 8.2+ and OpenSwoole.

[![PHP Version](https://camo.githubusercontent.com/187240af044d09d5b14a1d9d9ebdf3f7a993e4c7bc09bdb46b4ba661a891bf5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c7565)](https://php.net)[![License](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](LICENSE)

Features
--------

[](#features)

- 🚀 **High Performance** - Built for OpenSwoole async server
- 🎯 **Attribute-Based Routing** - Define routes with PHP 8 attributes
- 📦 **Modular Architecture** - Angular-inspired module system
- 🔄 **CQRS Ready** - Built-in Mediator pattern support
- ✅ **Validation Attributes** - Declarative DTO validation
- 🛠️ **CLI Tools** - Code generators for rapid development
- 🔐 **Authorization** - Attribute-based auth guards
- 📝 **PSR-7 Compliant** - Standard HTTP message interfaces

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

[](#installation)

```
composer require spatial/core
```

Quick Start
-----------

[](#quick-start)

### 1. Create a Controller

[](#1-create-a-controller)

```
