PHPackages                             lfphp/porm - 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. lfphp/porm

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

lfphp/porm
==========

PHP 数据库ORM抽象库，用于PHP程式独立使用数据库时，方便以ORM方式进行设计。

1.0.26(3mo ago)21731MITPHPPHP &gt;=7.1

Since Jul 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sasumi/PORM)[ Packagist](https://packagist.org/packages/lfphp/porm)[ Docs](http://blog.yikepi.com/)[ RSS](/packages/lfphp-porm/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (96)Used By (1)

\#PORM

> PORM is developed and tested based on PHP5.6 and above

PHP database ORM abstraction library, used for PHP programs to use databases independently, convenient for coding in ORM mode. PORM currently only supports MySQL, and is linked in MySQLi or PDO mode (PDO is recommended). Please ensure that the corresponding extension is correctly installed in PHP.

1. Quick Installation
---------------------

[](#1-quick-installation)

```
composer require lfphp/porm
```

2. Usage
--------

[](#2-usage)

PORM supports calling by defining the ORM Model class, and also supports calling by directly linking to the database.

### 2.1 ORM approach

[](#21-orm-approach)

```
