PHPackages                             idoalit/sinom - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. idoalit/sinom

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

idoalit/sinom
=============

A litle library for litle project like "sinom"

v1.0.1(4y ago)01731MITPHP

Since Nov 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/idoalit/sinom)[ Packagist](https://packagist.org/packages/idoalit/sinom)[ RSS](/packages/idoalit-sinom/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Sinom
=====

[](#sinom)

`Sinom` merupakan ORM (Object Relational Mapping) sederhana.

Install dengan composer

```
composer require idoalit/sinom

```

Cara Penggunaan
---------------

[](#cara-penggunaan)

- Buat sebuah `class` model yang meng-extends `\Idoalit\Sinom\Database\Model`
- `Sinom` mensyaratkan koneksi `\PDO` untuk koneksi ke database. Koneksi ini dapat ditambahkan dalam `constructor` atau menggunakan method `setConnection`atau dengan membuat sebuah class skeleton yang memiliki static method `getInstance` untuk mengambil instance dari `\PDO`.
- Contoh:

```
# Ini contoh class Biblio model

class Biblio extends \Idoalit\Sinom\Database\Model
{
  protected $connection_class = MyPDOConnection::class;
  protected $table = 'Biblio';
  protected $primary_key = 'biblio_id';
}

```

- Penggunaan model

```
# Menambah data ke database
$biblio = new Biblio;
$biblio->title = 'Judul buku saya';
$biblio->insert();

# Mengambil data bibliografi dengan biblio ID
$biblio = Biblio::find($biblio_id);

# Mengambil data bibliografi dengan kata kunci
$biblio = Biblio::where('title', '=', 'judul buku saya')->first();

# Ambil data dengan object
$title = $biblio->title; // judul dari database

# Mengupdate data ke database
$biblio->title = 'Judul buku yang baru';
$biblio->update();

# menghapus data bibliografi dari database
$biblio->delete();

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1645d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9688c7467aa9b9fe6f491c0981df9548114a0df55c3e9d2e3979ced80492d3d?d=identicon)[idoalit](/maintainers/idoalit)

---

Top Contributors

[![idoalit](https://avatars.githubusercontent.com/u/1549628?v=4)](https://github.com/idoalit "idoalit (42 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/idoalit-sinom/health.svg)

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

PHPackages © 2026

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