PHPackages                             wind111-lang/sumire - 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. [Database &amp; ORM](/categories/database)
4. /
5. wind111-lang/sumire

ActiveLibrary[Database &amp; ORM](/categories/database)

wind111-lang/sumire
===================

A small PDO Mapper for PHP 8.2+.

v0.2.0(1mo ago)10MITPHPPHP &gt;=8.2CI passing

Since Jul 10Pushed 1mo agoCompare

[ Source](https://github.com/wind111-lang/sumire)[ Packagist](https://packagist.org/packages/wind111-lang/sumire)[ GitHub Sponsors](https://github.com/wind111-lang)[ RSS](/packages/wind111-lang-sumire/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

Sumire
======

[](#sumire)

Sumire is a small PDO Mapper for PHP 8.2+.

PDO handles the database connection, PHP attributes describe your entities, and Sumire provides a focused persistence and repository layer on top.

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

[](#installation)

```
composer require wind111-lang/sumire
```

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

[](#requirements)

- PHP 8.2+
- `ext-pdo`
- One PDO driver for your database:
    - SQLite: `pdo_sqlite`
    - MySQL: `pdo_mysql`
    - PostgreSQL: `pdo_pgsql`

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

[](#quick-start)

The following example uses an in-memory SQLite database, so it can be run as a single PHP script.

```
