PHPackages                             halimzidoune/query-macro-helper - 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. halimzidoune/query-macro-helper

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

halimzidoune/query-macro-helper
===============================

A Laravel package that extends the Query Builder, allowing you to create custom macros to work with different database drivers easily. Instead of using raw DB::raw() statements and checking the current driver each time, this package simplifies working with multiple databases. It makes your code cleaner, easier to read, and more organized, all while being fully compatible with all Laravel-supported database drivers.

v1.0.4(8mo ago)84MITPHP ^8.1

Since Aug 21Compare

[ Source](https://github.com/halimzidoune/query-macro)[ Packagist](https://packagist.org/packages/halimzidoune/query-macro-helper)[ RSS](/packages/halimzidoune-query-macro-helper/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/halimzidoune/query-macro).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance59

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

5

Last Release

259d ago

### Community

Maintainers

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

---

Top Contributors

[![halimzidoune](https://avatars.githubusercontent.com/u/24246363?v=4)](https://github.com/halimzidoune "halimzidoune (22 commits)")

---

Tags

laravelstringquerydriverstring-helper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/halimzidoune-query-macro-helper/health.svg)

```
[![Health](https://phpackages.com/badges/halimzidoune-query-macro-helper/health.svg)](https://phpackages.com/packages/halimzidoune-query-macro-helper)
```

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

450191.6k1](/packages/mehdi-fathi-eloquent-filter)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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