PHPackages                             jarivas/sql-models - 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. jarivas/sql-models

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

jarivas/sql-models
==================

A simple and light Multi Sql model factory

1.9.0(2mo ago)0532MITTSQL

Since Jul 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/jarivas/php-sql-models)[ Packagist](https://packagist.org/packages/jarivas/sql-models)[ RSS](/packages/jarivas-sql-models/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (35)Used By (2)

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

[](#description)

It is a tool to generate Models from differets kinds automatically, those models can CRUD by them selves, even supports relationships throught the method join

How to install
==============

[](#how-to-install)

composer require jarivas/sql-models

How to use
==========

[](#how-to-use)

Please check the tests code on tests/Unit

Tests
=====

[](#tests)

- Requires Docker
- ./vendor/bin/phpunit --testsuite Mysql --filter ModelTest
- ./vendor/bin/phpunit --testsuite Pgsql --filter ModelTest
- ./vendor/bin/phpunit --testsuite Sqlite --filter ModelTest
- ./vendor/bin/phpunit --testsuite Mssql --filter ModelTest

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance86

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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 ~33 days

Recently: every ~0 days

Total

30

Last Release

66d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/993232a6d5ef5977556ddfaa67ea9510c39d36e3cb08ce2fc88bea4e29dcc3c8?d=identicon)[jarivas](/maintainers/jarivas)

---

Top Contributors

[![jarivas](https://avatars.githubusercontent.com/u/3421025?v=4)](https://github.com/jarivas "jarivas (39 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jarivas-sql-models/health.svg)

```
[![Health](https://phpackages.com/badges/jarivas-sql-models/health.svg)](https://phpackages.com/packages/jarivas-sql-models)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[symfony/ai-store

Low-level abstraction for storing and retrieving documents in a vector store.

19292.4k53](/packages/symfony-ai-store)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)

PHPackages © 2026

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