PHPackages                             gm314/siesta - 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. gm314/siesta

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

gm314/siesta
============

PHP 7 ORM Library

1.5.5(2y ago)15.7k3MITPHPPHP &gt;=8.1.0

Since Oct 4Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/gperler/siesta)[ Packagist](https://packagist.org/packages/gm314/siesta)[ Docs](https://gperler.github.io)[ RSS](/packages/gm314-siesta/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (50)Used By (0)

Siesta stored procedure based ORM for PHP 7
===========================================

[](#siesta-stored-procedure-based-orm-for-php-7)

[![License](https://camo.githubusercontent.com/0efeb35c7c8914746ee282c34a2986873619efb1c4c1ac43e1c8283733aa8724/68747470733a2f2f706f7365722e707567782e6f72672f676d3331342f7369657374612f6c6963656e7365)](https://packagist.org/packages/gm314/siesta)[![Latest Stable Version](https://camo.githubusercontent.com/faa7d9166a6f48154d52a22b105f49914f1736245abb1e5cdae630aae86fffdd/68747470733a2f2f706f7365722e707567782e6f72672f676d3331342f7369657374612f762f737461626c65)](https://packagist.org/packages/gm314/siesta)[![Total Downloads](https://camo.githubusercontent.com/ba72d559d20cec4c21c58aea0dfb3a1c76242d7023e95d501b7c9a6e83076da2/68747470733a2f2f706f7365722e707567782e6f72672f676d3331342f7369657374612f646f776e6c6f616473)](https://packagist.org/packages/gm314/siesta)[![Latest Unstable Version](https://camo.githubusercontent.com/b26c1e09e5ba03dba69682018a83c69cc474d68fe67b9c252cb3ac4ba12ffd29/68747470733a2f2f706f7365722e707567782e6f72672f676d3331342f7369657374612f762f756e737461626c65)](https://packagist.org/packages/gm314/siesta)

Stored procedure based ORM for PHP 7.

Documentation
=============

[](#documentation)

For full documentation, please visit

Installation with composer
==========================

[](#installation-with-composer)

```
composer require gm314/siesta

```

Example
=======

[](#example)

In this example we create an Artist and Label entity, and configure the relationship between them:

```
$artist = new Artist();
$artist->setName("Jamie Woon");

$label = new Label();
$label->setName("PMR");
$label->setCity("London");
$label->addToArtistList($artist);

// save with cascade. will store both label and artist
$label->save(true);
```

Console Commands
================

[](#console-commands)

create config file

```
vendor/bin/siesta init

```

generate entities

```
vendor/bin/siesta gen

```

reverse engineer

```
vendor/bin/siesta reverse

```

Testing
=======

[](#testing)

configure your database settings in tests/siesta.test.mysql.config.json

```
vendor/bin/codecept run

```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance47

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~82 days

Recently: every ~161 days

Total

39

Last Release

761d ago

Major Versions

0.5.3 → 1.0.02016-07-21

PHP version history (4 changes)0.1.0.PHP &gt;=5.3.9

1.0.0PHP &gt;=7.0.0

1.4.1PHP &gt;=7.1.0

1.5.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/201e6d6e88070d43f5dfaf3f9052efa0d2e9703d3cdb529c95029c32f8973ffb?d=identicon)[gperler](/maintainers/gperler)

---

Top Contributors

[![gperler](https://avatars.githubusercontent.com/u/4823172?v=4)](https://github.com/gperler "gperler (238 commits)")[![mattcannon](https://avatars.githubusercontent.com/u/173341?v=4)](https://github.com/mattcannon "mattcannon (1 commits)")

---

Tags

ormObject relational mapperSiesta

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/gm314-siesta/health.svg)

```
[![Health](https://phpackages.com/badges/gm314-siesta/health.svg)](https://phpackages.com/packages/gm314-siesta)
```

###  Alternatives

[propel/propel

Propel2 is an open-source Object-Relational Mapping (ORM) for PHP.

1.3k5.3M110](/packages/propel-propel)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[thecodingmachine/tdbm

The Database Machine is a PHP ORM that requires no configuration. The object model is deduced from the database model.

123174.9k6](/packages/thecodingmachine-tdbm)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

203.7k](/packages/perplorm-perpl)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
