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

AbandonedArchivedLibrary

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

This is my package EloquentToRawSql

v1.0.1(4y ago)5383↓100%1MITPHP

Since Jul 24Pushed 1y 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 today

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

29

—

LowBetter than 62% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

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

Total

2

Last Release

1703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/698cdb9538d0c24620186aee6466db1197f15f96d5c353af2b4167223b92510e?d=identicon)[eastwest](/maintainers/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

[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27330.5k](/packages/rahulalam31-laravel-abuse-ip)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13662.4k1](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

136.9k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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