PHPackages                             strictlyphp/dolphpin - 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. strictlyphp/dolphpin

ActiveLibrary

strictlyphp/dolphpin
====================

3.1.2(1mo ago)03.5k[1 issues](https://github.com/strictlyPHP/dolphin/issues)MITPHPPHP &gt;=8.2CI passing

Since Mar 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/strictlyPHP/dolphin)[ Packagist](https://packagist.org/packages/strictlyphp/dolphpin)[ RSS](/packages/strictlyphp-dolphpin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (28)Versions (31)Used By (0)

Dolphin Framework
=================

[](#dolphin-framework)

[![Coverage Status](https://camo.githubusercontent.com/65f82887eb2b1bff6ca912d5452934d3f86dc77ed2370f0268a7f5ffa82668ec/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7374726963746c795048502f646f6c7068696e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/strictlyPHP/dolphin?branch=main)[![CI Status](https://github.com/strictlyPHP/dolphin/actions/workflows/test-main.yml/badge.svg)](https://github.com/strictlyPHP/dolphin/actions/workflows/test-main.yml/badge.svg)[![Stable](https://camo.githubusercontent.com/98f17b320b6bd21a2520f68751ebdc373d8d4fb3d6cdc0f6e3e395a7cfffd684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374726963746c797068702f646f6c706870696e)](https://camo.githubusercontent.com/98f17b320b6bd21a2520f68751ebdc373d8d4fb3d6cdc0f6e3e395a7cfffd684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374726963746c797068702f646f6c706870696e)

Dolphin is a lightweight PHP framework designed for running serverless functions on DigitalOcean. It provides attribute-based routing, automatic DTO mapping, role-based access control, and dependency injection out of the box.

For a detailed look at the internals, see [ARCHITECTURE.md](ARCHITECTURE.md).

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Extensions: intl, bcmath, simplexml, curl, mbstring

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

[](#installation)

```
composer require strictlyphp/dolphin:^3.0
```

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

[](#quick-start)

### 1. Define a Controller

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

Controllers are invokable classes annotated with `#[Route]`. The framework automatically deserializes the JSON request body into typed DTOs:

```
