PHPackages                             shadowprince/autoparis - 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. shadowprince/autoparis

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

shadowprince/autoparis
======================

Automated scheme creator &amp; updater integrated and built for idiorm &amp; paris. Currenlty works only with MySQL

0.1.3(12y ago)339BSDPHPPHP &gt;=5.2.0

Since Oct 15Pushed 12y ago2 watchersCompare

[ Source](https://github.com/ShadowPrince/autoparis)[ Packagist](https://packagist.org/packages/shadowprince/autoparis)[ Docs](http://shadowprince.github.com/autoparis)[ RSS](/packages/shadowprince-autoparis/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

AutoParis
---------

[](#autoparis)

Autoparis is a library, that extends [j4mie's paris ORM](http://github.com/j4mie/paris) for automated scheme creation and keeping it up to date.

How to use it?
--------------

[](#how-to-use-it)

### Installing

[](#installing)

Autoparis can be simply installed by [composer](http://getcomposer.org), actual install information you can found at [page on packagist](https://packagist.org/packages/shadowprince/autoparis).

### Requirements

[](#requirements)

1. Model should extend **\\Autoparis\\AutoModel** and provide public ( *non static* ) method **getFields()**. It should return array of instances of **\\Autoparis\\Field** or classes extending it.
2. **public static $\_field** of every model should be setted up.
3. You should provide **lookup\_models()** function in **bin/autoparis.php**, that'll return array of models classes
4. And you should properly configure idiorm when you start autoparis (you can get trough it simply including your project boostrap, that will call **ORM::configure**'s)

### Usage

[](#usage)

Autoparis is a cli-tool, located in **bin/autoparis.php**. You can get help trough **--help**. Autoparis has behavior like django's tool. By default, autoparis will update all schemes for models returned by **lookup\_models()**Like django, autoparis will not modify your tables if you dont provide **--force** option, because that action can damage data, so dont run it on production databases.

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

[](#documentation)

There is [documentation](http://github.com/shadowprince/autoparis/wiki), that covers few topics that might be unclear and usefull.

Examples
--------

[](#examples)

```
// model class
class User extends \Autoparis\AutoModel {
    public static $_table = 'users';

    public function getFields() {
        return [
            new \Autoparis\Int("id", ["nn" => true]),
            new \Autoparis\Varchar("username", 32),
            new \Autoparis\Varchar("password"", 32),
            new \Autoparis\DateTime("joined", ["default" => "now"])
        ];
    }

// in autoparis.php
ORM::configure(...);

function lookup_models() {
    return ["\User"];
}

$ ./autoparis.php
    Processing \User...
    Up to date.
mysql [db]> show columns from users;
    +----------+-------------+------+-----+---------+-------+
    | Field    | Type        | Null | Key | Default | Extra |
    +----------+-------------+------+-----+---------+-------+
    | id       | int(11)     | NO   |     | NULL    |       |
    | username | varchar(32) | YES  |     | NULL    |       |
    | password | varchar(32) | YES  |     | NULL    |       |
    | joined   | datetime    | YES  |     | NULL    |       |
    +----------+-------------+------+-----+---------+-------+

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

4

Last Release

4608d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43979443?v=4)[ShadowPrince](/maintainers/ShadowPrince)[@shadowprince](https://github.com/shadowprince)

---

Tags

ormaddonidiormparis

### Embed Badge

![Health badge](/badges/shadowprince-autoparis/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k295.3M7.2k](/packages/doctrine-orm)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k249.9M3.9k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.0k298.2M964](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k122.6M412](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k78.1M168](/packages/beberlei-doctrineextensions)

PHPackages © 2026

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