PHPackages                             minifast/minifast-orm - 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. minifast/minifast-orm

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

minifast/minifast-orm
=====================

A little ORM, very simple to use and ultra fast

v1.1.2(7y ago)320MITPHPPHP ^7.0

Since Jul 1Pushed 7y ago3 watchersCompare

[ Source](https://github.com/minifastdev/MiniFast-ORM)[ Packagist](https://packagist.org/packages/minifast/minifast-orm)[ RSS](/packages/minifast-minifast-orm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

MiniFast ORM
============

[](#minifast-orm)

MiniFast ORM is a very little Object-Relational Mapping system. It will be usefull for little web projects where you don't want to spend all your time writting SQL queries.

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

[](#documentation)

### First of all

[](#first-of-all)

You need to create a `.xml` file containing your databse scheme. All supported types and the syntax will be available soon. Example:

```

```

### Install

[](#install)

Install MiniFast with [Composer](https://getcomposer.org/) by adding it to the `composer.json` file:

```
{
    "require": {
        "minifast/minifast-orm": "^1"
    }
}
```

There is an installer included in MiniFast that will create classes for you based on your xml schema. Assuming you are in your website root directory, execute it like this:

```
$ php vendor/minifast/minifast-orm/init.php /path/to/schema.xml
```

There will be no input if there is no error.

### How to use

[](#how-to-use)

After running the installer, an autoloader has been created. Set up the MySQL host, user and password (defaults are `localhost`, `root` and `root`) in `vendor/itechcydia/minifast-orm/src/minifast/Base.php` and `vendor/itechcydia/minifast-orm/src/minifast/BaseQuery.php` `__construct()` methods.

An `autoload.php` file has been created by Composer and you need to include it in order to use MiniFast. Assuming you have the same `schema.xml` than the one above, you will find some examples below:

#### INSERT

[](#insert)

```
