PHPackages                             wdes/simple-php-model-system - 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. wdes/simple-php-model-system

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

wdes/simple-php-model-system
============================

A simple PHP model system

v1.3.0(4y ago)11.1kMPL-2.0PHPPHP ^7.2 || ^8.0

Since May 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wdes/simple-php-model-system)[ Packagist](https://packagist.org/packages/wdes/simple-php-model-system)[ Docs](https://github.com/wdes/simple-php-model-system)[ RSS](/packages/wdes-simple-php-model-system/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

simple-php-model-system
=======================

[](#simple-php-model-system)

[![Lint and analyse files](https://github.com/wdes/simple-php-model-system/actions/workflows/lint-and-analyse.yml/badge.svg?branch=main)](https://github.com/wdes/simple-php-model-system/actions/workflows/lint-and-analyse.yml)[![Run phpunit tests](https://github.com/wdes/simple-php-model-system/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/wdes/simple-php-model-system/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/ff25f004735a8a759399fbf21a2d6cd45dd45231629da084d933e4fff4771b07/68747470733a2f2f636f6465636f762e696f2f67682f776465732f73696d706c652d7068702d6d6f64656c2d73797374656d2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/wdes/simple-php-model-system)[![Version](https://camo.githubusercontent.com/624fbc789f1745816e7c4a9bc1a52dd56b0bf524ecbf816aeede2520779fefc3/687474703a2f2f706f7365722e707567782e6f72672f776465732f73696d706c652d7068702d6d6f64656c2d73797374656d2f76657273696f6e)](https://packagist.org/packages/wdes/simple-php-model-system)[![License](https://camo.githubusercontent.com/a1ad96c3a3286ac62ff08848d67a74a6de911c8db3a917dc955dcbcd9f1c7987/687474703a2f2f706f7365722e707567782e6f72672f776465732f73696d706c652d7068702d6d6f64656c2d73797374656d2f6c6963656e7365)](https://packagist.org/packages/wdes/simple-php-model-system)[![PHP Version Require](https://camo.githubusercontent.com/17a4e19f96ebe6ef5c81bbf833378004b0ac319ddbe098cf317fc605912358b4/687474703a2f2f706f7365722e707567782e6f72672f776465732f73696d706c652d7068702d6d6f64656c2d73797374656d2f726571756972652f706870)](https://packagist.org/packages/wdes/simple-php-model-system)[![maintenance-status](https://camo.githubusercontent.com/7c3549878eb89ebd222e1f55395add160de0676078f4b1b2f678196d46f6fb1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e74656e616e63652d706173736976656c792d2d6d61696e7461696e65642d79656c6c6f77677265656e2e737667)](https://camo.githubusercontent.com/7c3549878eb89ebd222e1f55395add160de0676078f4b1b2f678196d46f6fb1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e74656e616e63652d706173736976656c792d2d6d61696e7461696e65642d79656c6c6f77677265656e2e737667)

A simple PHP model system

Why ?
-----

[](#why-)

The goal of this project is to provide an easy way to use Models in a non composer setup. This is why this project is kept very minimal. The user can copy all classes in `src/` and start using the lib. But this also works in a composer setup.

How to use
----------

[](#how-to-use)

### Connect to an existing PDO connection

[](#connect-to-an-existing-pdo-connection)

```
