PHPackages                             voku/paris - 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. voku/paris

Abandoned → [j4mie/paris](/?search=j4mie%2Fparis)Library[Database &amp; ORM](/categories/database)

voku/paris
==========

A lightweight Active Record implementation for PHP5, built on top of Idiorm

v1.7.6(8y ago)87.1k4[1 PRs](https://github.com/voku/paris/pulls)BSD-2-ClausePHPPHP &gt;=5.3.0

Since Nov 14Pushed 1y ago3 watchersCompare

[ Source](https://github.com/voku/paris)[ Packagist](https://packagist.org/packages/voku/paris)[ Docs](http://j4mie.github.com/idiormandparis)[ RSS](/packages/voku-paris/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (33)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f8e2394d67f4ea8ea064fcd5b0365e52bbd54dbabbf769a39074f5d4fba122b7/68747470733a2f2f7472617669732d63692e6f72672f766f6b752f70617269732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/voku/paris)[![codecov.io](https://camo.githubusercontent.com/60fe4d906922c3939fbd6907ca4560b1d09800c2240a24957ae0bc6dc6597b8c/687474703a2f2f636f6465636f762e696f2f6769746875622f766f6b752f70617269732f636f7665726167652e7376673f6272616e63683d6d6173746572)](http://codecov.io/github/voku/paris?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/22ed4647b17414c215fa3d2ccafd50ad8306f20ffdde3b75c5f84d629a08e40f/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6534366366353061633965313432363638653064366234376138656437636462)](https://www.codacy.com/app/voku/paris?utm_source=github.com&utm_medium=referral&utm_content=voku/paris&utm_campaign=badger)[![SensioLabsInsight](https://camo.githubusercontent.com/5a2c0c641585b0aff96ea91d535e1481dc665bf1036f832bfb7ddf4d589146ce/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39326532316531662d643331652d343434392d393262662d6638393566663837663764322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/92e21e1f-d31e-4449-92bf-f895ff87f7d2)[![Latest Stable Version](https://camo.githubusercontent.com/3225efbe29d5fbe2489ae95ade42ba64328d511b7004b5f33e1f843eb45e8e80/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70617269732f762f737461626c65)](https://packagist.org/packages/voku/paris)[![Total Downloads](https://camo.githubusercontent.com/0c6286fc5a981178b78c26eed25de4702c7c97dae453465dd55c1b35c93e1ed8/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70617269732f646f776e6c6f616473)](https://packagist.org/packages/voku/paris)[![Latest Unstable Version](https://camo.githubusercontent.com/ff1e6f394d4aea5a048b82ecd4dedc5d7ebd5574b5b02c0e6eb72f542bbcfba0/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70617269732f762f756e737461626c65)](https://packagist.org/packages/voku/paris)[![PHP 7 ready](https://camo.githubusercontent.com/8a11566ade3827b73f045e81ffcefd31ed8276df2b007def70d6b5d8ec39adc4/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f766f6b752f70617269732f62616467652e737667)](https://travis-ci.org/voku/paris)[![License](https://camo.githubusercontent.com/a17b2ca7192eb443f2981392f7fd2dd6c2fcda2fbe23224a251f4b7e352d7d9f/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70617269732f6c6963656e7365)](https://packagist.org/packages/voku/paris)

Paris
=====

[](#paris)

WARNING: this is only a Maintained-Fork from: ""

INFO: you can use my Simple Active Record lib instad of Paris: ""

---

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

[](#installation)

The recommended installation way is through [Composer](https://getcomposer.org).

```
$ composer require voku/paris
```

A lightweight Active Record implementation for PHP5.

Built on top of [Idiorm](http://github.com/j4mie/idiorm/).

Tested on PHP 5.3+ - may work on earlier versions with PDO and the correct database drivers.

Released under a [BSD license](http://en.wikipedia.org/wiki/BSD_licenses).

Features
--------

[](#features)

- Extremely simple configuration.
- Exposes the full power of [Idiorm](http://github.com/j4mie/idiorm/)'s fluent query API.
- Supports associations.
- Simple mechanism to encapsulate common queries in filter methods.
- Built on top of [PDO](http://php.net/pdo).
- Uses [prepared statements](http://uk.php.net/manual/en/pdo.prepared-statements.php) throughout to protect against [SQL injection](http://en.wikipedia.org/wiki/SQL_injection) attacks.
- Database agnostic. Currently supports SQLite, MySQL, Firebird and PostgreSQL. May support others, please give it a try!
- Supports collections of models with method chaining to filter or apply actions to multiple results at once.
- Multiple connections are supported

Documentation
-------------

[](#documentation)

The documentation is hosted on Read the Docs: [paris.rtfd.org](http://paris.rtfd.org)

### Building the Docs

[](#building-the-docs)

You will need to install [Sphinx](http://sphinx-doc.org/) and then in the docs folder run:

```
make html

```

The documentation will now be in docs/\_build/html/index.html

Let's See Some Code
-------------------

[](#lets-see-some-code)

```
/**
 * User: a sample user-class
 *
 * @property-read int    $id
 * @property-read string $first_name
 */
class User extends Model {
  public function tweets() {
      return $this->has_many('Tweet');
  }

  public function getId()
  {
    return $this->id;
  }

  public function getFirstName()
  {
    return $this->first_name
  }
}

/**
 * Tweet: a sample twitter-class
 *
 * @property-read int    $id
 * @property-read string $text
 */
class Tweet extends Model {

}

$user = Model::factory('User')
  ->where_equal('username', 'j4mie')
    ->find_one();
$user->first_name = 'Jamie';
$user->save();

$tweets = $user->tweets()->find_many();
foreach ($tweets as $tweet) {
  echo $tweet->text;
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~66 days

Recently: every ~101 days

Total

27

Last Release

3203d ago

PHP version history (2 changes)v1.2.0PHP &gt;=5.2.0

v1.6.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6456fe693db197c458272cb758bf78958bc7d3e787ccd59db4bf3cf41654316a?d=identicon)[voku](/maintainers/voku)

---

Top Contributors

[![treffynnon](https://avatars.githubusercontent.com/u/65215?v=4)](https://github.com/treffynnon "treffynnon (112 commits)")[![j4mie](https://avatars.githubusercontent.com/u/6988?v=4)](https://github.com/j4mie "j4mie (56 commits)")[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (36 commits)")[![Lapayo](https://avatars.githubusercontent.com/u/1183538?v=4)](https://github.com/Lapayo "Lapayo (6 commits)")[![stellis](https://avatars.githubusercontent.com/u/2069140?v=4)](https://github.com/stellis "stellis (3 commits)")[![rotexdegba](https://avatars.githubusercontent.com/u/1242622?v=4)](https://github.com/rotexdegba "rotexdegba (3 commits)")[![naga3](https://avatars.githubusercontent.com/u/5917968?v=4)](https://github.com/naga3 "naga3 (1 commits)")[![alexandrusavin](https://avatars.githubusercontent.com/u/1612455?v=4)](https://github.com/alexandrusavin "alexandrusavin (1 commits)")[![rhynodesigns](https://avatars.githubusercontent.com/u/2198266?v=4)](https://github.com/rhynodesigns "rhynodesigns (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![stratoss](https://avatars.githubusercontent.com/u/8927314?v=4)](https://github.com/stratoss "stratoss (1 commits)")[![Surt](https://avatars.githubusercontent.com/u/48085?v=4)](https://github.com/Surt "Surt (1 commits)")[![ptarjan](https://avatars.githubusercontent.com/u/40143?v=4)](https://github.com/ptarjan "ptarjan (1 commits)")[![bvfbarten](https://avatars.githubusercontent.com/u/8053347?v=4)](https://github.com/bvfbarten "bvfbarten (1 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![jahvi](https://avatars.githubusercontent.com/u/661330?v=4)](https://github.com/jahvi "jahvi (1 commits)")[![JoelMarcey](https://avatars.githubusercontent.com/u/3757713?v=4)](https://github.com/JoelMarcey "JoelMarcey (1 commits)")[![kkeiper1103](https://avatars.githubusercontent.com/u/4206897?v=4)](https://github.com/kkeiper1103 "kkeiper1103 (1 commits)")

---

Tags

ormmodelactive-recordparis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/voku-paris/health.svg)

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

###  Alternatives

[j4mie/paris

A lightweight Active Record implementation for PHP5, built on top of Idiorm

989499.6k22](/packages/j4mie-paris)[propel/propel

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

1.3k5.3M110](/packages/propel-propel)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8481.6M87](/packages/propel-propel1)[vlucas/spot2

Simple DataMapper built on top of Doctrine DBAL

605392.8k7](/packages/vlucas-spot2)[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)[cycle/active-record

Provides a simple way to work with your database using Active Record pattern and Cycle ORM

671.3k3](/packages/cycle-active-record)

PHPackages © 2026

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