PHPackages                             ctyurk15/simple-orm-model - 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. ctyurk15/simple-orm-model

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

ctyurk15/simple-orm-model
=========================

Simple ORM class

03PHP

Since Jun 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ctYurk15/simple-orm-model)[ Packagist](https://packagist.org/packages/ctyurk15/simple-orm-model)[ RSS](/packages/ctyurk15-simple-orm-model/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Description
===========

[](#description)

Simple, but usefull ORM class

Installation
============

[](#installation)

To install this package you need to:

1. Install composer
2. Add line to your composer.json file in project folder:

```
"minimum-stability": "dev"

```

3. Go to your project folder with console
4. Write down next command:

```
composer require ctyurk15/simple-orm-model

```

Done!

Usage
=====

[](#usage)

Here example of usage

```
//connect class
require __DIR__.'/vendor/autoload.php';
use ctyurk15\SimpleOrmModel\Model;

//initialize database connection
Model::init_conn('host', 'user', 'password', 'dbname');

//create class for your table
class ORM1 extends Model
{
    public static $table = 'orm1';
    public static $index_column = 'id';
}

//initialize database connection
ORM1::init_conn();

//use it
$records = ORM1::all();

foreach($records as $record)
{
    echo $record->getId().' - '.$record->get('title').'';
}
```

Database data connection

```
{
    "host": "localhost",
    "pass": "root",
    "dbname": "testing-packages",
    "user": "root"
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ebefb307b182d2c296a92966d2f4f61c1abcf4bde4bcbb8f0b8c1e77d269e60?d=identicon)[ctYurk15](/maintainers/ctYurk15)

---

Top Contributors

[![ctYurk15](https://avatars.githubusercontent.com/u/44519773?v=4)](https://github.com/ctYurk15 "ctYurk15 (6 commits)")

### Embed Badge

![Health badge](/badges/ctyurk15-simple-orm-model/health.svg)

```
[![Health](https://phpackages.com/badges/ctyurk15-simple-orm-model/health.svg)](https://phpackages.com/packages/ctyurk15-simple-orm-model)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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