PHPackages                             mk-ryan1988/eloquent-gaql - 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. mk-ryan1988/eloquent-gaql

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

mk-ryan1988/eloquent-gaql
=========================

Allows you to write Google Ad's GAQL the Eloquent way.

014PHP

Since Jun 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mk-ryan1988/eloquent-gaql)[ Packagist](https://packagist.org/packages/mk-ryan1988/eloquent-gaql)[ RSS](/packages/mk-ryan1988-eloquent-gaql/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Eloquent GAQL
=============

[](#eloquent-gaql)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8456df4e83586feb1017fc511d915ba7280c82826f510b2b39ed4817336a99d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6b2d7279616e313938382f656c6f7175656e742d6761716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mk-ryan1988/eloquent-gaql)[![GitHub Tests Action Status](https://camo.githubusercontent.com/777940d792ab1ae7a08f6cb6553a2e950c9098cbd27180b99ee0165b6cf21077/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6b2d7279616e313938382f656c6f7175656e742d6761716c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mk-ryan1988/eloquent-gaql/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1e08df475db526c006130757bc244c3c899bf2f967ab1c9a3bbb651274c6a871/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6b2d7279616e313938382f656c6f7175656e742d6761716c2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/mk-ryan1988/eloquent-gaql/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1fb5979aca1b29bc7d365db45cd6852a14bd36f060b1a8c18a496ee734566df0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6b2d7279616e313938382f656c6f7175656e742d6761716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mk-ryan1988/eloquent-gaql)

Allows you to write Google Ad's Query strings the [Laravel Eloquent](https://laravel.com/docs/8.x/queries) way.

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

[](#installation)

You can install the package via composer:

```
composer require mk-ryan1988/eloquent-gaql
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="MkRyan1988\GaqlBuilder\GaqlBuilderServiceProvider" --tag="eloquent-gaql-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="MkRyan1988\GaqlBuilder\GaqlBuilderServiceProvider" --tag="eloquent-gaql-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
$elequent-gaql = new MkRyan1988\GaqlBuilder();
echo $elequent-gaql->echoPhrase('Hello, Spatie!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mark Ryan](https://github.com/mk-ryan1988)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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/b3ab8a34d52dad8d6607ee6be7452fc3796763e0947f4b43a5522f7930de99c4?d=identicon)[mk-ryan1988](/maintainers/mk-ryan1988)

---

Top Contributors

[![mk-ryan1988](https://avatars.githubusercontent.com/u/35534717?v=4)](https://github.com/mk-ryan1988 "mk-ryan1988 (24 commits)")

### Embed Badge

![Health badge](/badges/mk-ryan1988-eloquent-gaql/health.svg)

```
[![Health](https://phpackages.com/badges/mk-ryan1988-eloquent-gaql/health.svg)](https://phpackages.com/packages/mk-ryan1988-eloquent-gaql)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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