PHPackages                             eastwest/eloquent-to-raw-sql - 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. eastwest/eloquent-to-raw-sql

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

eastwest/eloquent-to-raw-sql
============================

This is my package EloquentToRawSql

v1.0.1(5y ago)53901MITPHP

Since Jul 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jannejava/eloquent-to-raw-sql)[ Packagist](https://packagist.org/packages/eastwest/eloquent-to-raw-sql)[ Docs](https://github.com/jannejava/eloquent-to-raw-sql)[ RSS](/packages/eastwest-eloquent-to-raw-sql/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Eloquent toRawSQL
=================

[](#eloquent-torawsql)

Output the full, unparameterized query in Laravel so you can paste it right into your database GUI.

Example:

```
$user = User::where('id', 1)->toRawSql();

dump($user);

// "select * from `users` where `id` = 1"

```

How to install
--------------

[](#how-to-install)

`composer require eastwest/eloquent-to-raw-sql`

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1843d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/463372?v=4)[eastwest](/maintainers/eastwest)[@eastwest](https://github.com/eastwest)

---

Top Contributors

[![jannejava](https://avatars.githubusercontent.com/u/543616?v=4)](https://github.com/jannejava "jannejava (7 commits)")

---

Tags

laraveleloquent-to-raw-sqleastwest

### Embed Badge

![Health badge](/badges/eastwest-eloquent-to-raw-sql/health.svg)

```
[![Health](https://phpackages.com/badges/eastwest-eloquent-to-raw-sql/health.svg)](https://phpackages.com/packages/eastwest-eloquent-to-raw-sql)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k55.8M12.9k](/packages/illuminate-database)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

214456.3k2](/packages/wnx-laravel-backup-restore)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17562.4k](/packages/lacodix-laravel-model-filter)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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