PHPackages                             swayok/peskyorm-laravel - 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. swayok/peskyorm-laravel

ActiveLibrary

swayok/peskyorm-laravel
=======================

Service Providers and other classes to replace laravel's Eloquent ORM by PeskyORM

01.0kPHP

Since Apr 30Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/swayok/peskyorm-laravel)[ Packagist](https://packagist.org/packages/swayok/peskyorm-laravel)[ RSS](/packages/swayok-peskyorm-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

What is this?
=============

[](#what-is-this)

This is a package with classes used to replace Laravel's Eloquent ORM by PeskyORM

Installation
------------

[](#installation)

**Add service provider**

Add `\PeskyORMLaravel\Providers\PeskyOrmServiceProvider::class` to `providers` array in `config/app.php`

This will also register:

- `\PeskyORMLaravel\Providers\PeskyValidationServiceProvider` - several situational validators;
- `\PeskyORMLaravel\Providers\PeskyOrmUserProvider` - `Auth` will use PeskyORM and its Record object to manage authorisation. Which Record class to use is configured in `config/auth.php` in `providers` array:

    ```
      'providers' => [
          'frontend' => [
              'driver' => 'peskyorm',
              'model' => \App\Db\User\User::class,
          ]
      ]

    ```
- `\PeskyORMLaravel\Console\Commands\OrmMakeDbClassesCommand` Command (`php artisan orm:make-db-classes`) - generates DB classes by table name
- If you have DebugBar package enabled - it will be configured to display queries executed by PeskyOrm adapters (only if this functionality is enabled in DebugBar)

**Publish config using artisan**

`php artisan vendor:publish --tag=config --force`

This will add `config/peskyorm.php` file

Notes
-----

[](#notes)

1. Remove `Illuminate\Validation\ValidationServiceProvider::class` from `providers` array in `config/app.php` - `\PeskyORMLaravel\Providers\PeskyValidationServiceProvider::class` replaces it
2. You may remove `'Eloquent' => Illuminate\Database\Eloquent\Model::class` form `helpers` array in `config/app.php` if you're not going to use it along with PeskyORM
3. You may also remove `Illuminate\Pagination\PaginationServiceProvider::class` and `Illuminate\Auth\Passwords\PasswordResetServiceProvider::class` form `providers` (don't forget to remove `'Password' => Illuminate\Support\Facades\Password::class` helper) because PeskyORM does not support these currently.
4. Do not remove Laravel's `DatabaseServiceProvider` - some parts of Laravel use it to do service things like migrations, db seeding, etc.
5. Do not remove `DB` helper - it may be useful and it won't harm your app's perfomance or stability

Todo
----

[](#todo)

1. Update tests and cover more functionality
2. Think about a helper facade

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance53

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a631e17770f1ef26d05cbc896e14b218d186973a00a515eed2d86fbc9eb936a?d=identicon)[sway](/maintainers/sway)

---

Top Contributors

[![swayok](https://avatars.githubusercontent.com/u/629675?v=4)](https://github.com/swayok "swayok (138 commits)")

### Embed Badge

![Health badge](/badges/swayok-peskyorm-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/swayok-peskyorm-laravel/health.svg)](https://phpackages.com/packages/swayok-peskyorm-laravel)
```

PHPackages © 2026

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