PHPackages                             cruzer/dolphin - 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. cruzer/dolphin

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

cruzer/dolphin
==============

Dolphin ORM and Query Builder with Laravel Eloquent like syntax but very small footprint

v0.0.8(6y ago)070MITPHPPHP &gt;=7.2

Since Jun 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/CruzerSoftwares/Dolphin)[ Packagist](https://packagist.org/packages/cruzer/dolphin)[ Docs](https://github.com/CruzerSoftwares/dolphin)[ RSS](/packages/cruzer-dolphin/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)DependenciesVersions (10)Used By (0)

Dolphin ORM &amp; Query Builder
===============================

[](#dolphin-orm--query-builder)

[![Donate](https://camo.githubusercontent.com/ec6372693a58434c5935b1ac9b01000db335b4465ce95d17c90d808b21de63b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617472656f6e2d79656c6c6f772e737667)](https://www.patreon.com/join/CruzerSoftwares)[![GitHub issues](https://camo.githubusercontent.com/3a7e9ec90860568a6645be92c4ca97d34b8a768d19c17cea4d73930c20853f35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4372757a6572536f667477617265732f446f6c7068696e2e737667)](https://github.com/CruzerSoftwares/Dolphin/issues)[![PHP from Packagist](https://camo.githubusercontent.com/fcb857c421b81d520c18be2daf2a54a0bd0ddbb4e684ef69857700fee8fdfb97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6372757a65722f646f6c7068696e2e737667)](https://camo.githubusercontent.com/fcb857c421b81d520c18be2daf2a54a0bd0ddbb4e684ef69857700fee8fdfb97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6372757a65722f646f6c7068696e2e737667)[![Packagist Version](https://camo.githubusercontent.com/da6f3e8c268d816fc47370e5f57058b1798f2ad52c61354082ff3590fa50a6d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372757a65722f646f6c7068696e2e737667)](https://camo.githubusercontent.com/da6f3e8c268d816fc47370e5f57058b1798f2ad52c61354082ff3590fa50a6d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372757a65722f646f6c7068696e2e737667)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fbc60e161094cbee3bd4509c52789aa5654c8256672c7c650389969e9136464e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4372757a6572536f667477617265732f446f6c7068696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CruzerSoftwares/Dolphin/?branch=master)[![Build Status](https://camo.githubusercontent.com/3a1df0535eafddd70464d030351d3667c799f9050b7a10502b98a9779f5583ec/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4372757a6572536f667477617265732f446f6c7068696e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CruzerSoftwares/Dolphin/build-status/master)[![Packagist](https://camo.githubusercontent.com/51373106408fd0d9e1726d0b48b2568fa573e2039aaa4e1e610689d8e6c9685a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372757a65722f646f6c7068696e2e737667)](https://camo.githubusercontent.com/51373106408fd0d9e1726d0b48b2568fa573e2039aaa4e1e610689d8e6c9685a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372757a65722f646f6c7068696e2e737667)[![Code Coverage](https://camo.githubusercontent.com/181ff8ad5f14aa997d0fdd047e0f1bb07aa5c4b87fb6c6caadf5669463b254be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4372757a6572536f667477617265732f446f6c7068696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CruzerSoftwares/Dolphin/?branch=master)[![GitHub license](https://camo.githubusercontent.com/5a042da29dbf16670f580b9b2e267f4b47ce51fb215a96c67e261722156e2bd5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4372757a6572536f667477617265732f446f6c7068696e2e737667)](https://github.com/CruzerSoftwares/Dolphin/blob/master/LICENSE)

A lightweight Database Query builder and ORM for PHP 7 without any external dependency(only PDO is required). API looks quite same as of Laravel's Eloquent but without the complexity.

Features
--------

[](#features)

- Easy to use and rememberable syntax
- Uses prepared statements
- Method chaining
- Support multiple database driver through PDO
- Support join(), leftJoin(), rightJoin(), crossJoin()
- Supprts where(), whereIn(), whereNotIn(), whereNull(), whereNotNull(), whereRaw()
- Support groupBy(), having(), orderBy()
- Supports offset() and limit()
- Supports the shortcuts for retreiving data such as first(), last(), min(), max(), avg()
- Supports count()
- insert()
- update()
- delete()
- truncate()

Not yet Supported
-----------------

[](#not-yet-supported)

- union()
- exists()
- orWhere()
- events support
- transactions support

Tests
-----

[](#tests)

Tests are still pending.

Inspirations
------------

[](#inspirations)

Initialy, I created it for the CruzerMini to interact with the database because I was looking for a good library like Laravel's Eloquent but with small footprint. I tried severals but found nothing that has the nice syntax as Eloquent. Thats why it inspired me to create it.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/CruzerSoftwares/Dolphin/blob/master/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [RN Kushwaha](https://github.com/RNKushwaha022)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/CruzerSoftwares/Dolphin/blob/master/LICENSE) for more information.

Buy me a coffee
---------------

[](#buy-me-a-coffee)

[![Become a Patron](https://camo.githubusercontent.com/bc101c1d13e9c8f6ab92026eb037a37dc71f582e7c14f2f8ddce7503a3f05a64/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f70617472656f6e5f7075626c69635f6173736574732f746f6f6c626f782f70617472656f6e2e706e67)](https://www.patreon.com/join/CruzerSoftwares)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~46 days

Total

9

Last Release

2329d ago

### Community

Maintainers

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

---

Top Contributors

[![RNKushwaha](https://avatars.githubusercontent.com/u/8594388?v=4)](https://github.com/RNKushwaha "RNKushwaha (50 commits)")

---

Tags

phpormquery builderdolphin

### Embed Badge

![Health badge](/badges/cruzer-dolphin/health.svg)

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

###  Alternatives

[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k835.4k65](/packages/cycle-orm)[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)

PHPackages © 2026

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