PHPackages                             f-liva/eloquent-merge-select - 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. f-liva/eloquent-merge-select

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

f-liva/eloquent-merge-select
============================

Append selects to the existing ones exposing mergeSelect to the Eloquent Query Builder

v1.0.0(10mo ago)0727↓64.3%[5 issues](https://github.com/f-liva/eloquent-merge-select/issues)[4 PRs](https://github.com/f-liva/eloquent-merge-select/pulls)MITPHPPHP ^8.1CI passing

Since Aug 27Pushed 2mo agoCompare

[ Source](https://github.com/f-liva/eloquent-merge-select)[ Packagist](https://packagist.org/packages/f-liva/eloquent-merge-select)[ Docs](https://github.com/f-liva/eloquent-merge-select)[ GitHub Sponsors](https://github.com/Fliva)[ RSS](/packages/f-liva-eloquent-merge-select/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (13)Versions (6)Used By (0)

Eloquent Merge Select
=====================

[](#eloquent-merge-select)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ea8201438d2d35c604eb9b639cfedbd7b76ca8caa9d43384fcd820447c4bb003/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f662d6c6976612f656c6f7175656e742d6d657267652d73656c6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/f-liva/eloquent-merge-select)[![GitHub Tests Action Status](https://camo.githubusercontent.com/78107bc0d146d58afdf4999338eb888eeb96878e7acda98a6518227e91231fa1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f662d6c6976612f656c6f7175656e742d6d657267652d73656c6563742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/f-liva/eloquent-merge-select/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/079781bfdb4a09577427f374522ef1b125430088b99b9d1772222121887f7dfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f662d6c6976612f656c6f7175656e742d6d657267652d73656c6563742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/f-liva/eloquent-merge-select/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5811a2d7e9e47c3bb6c2d5be93b90fb2ae4c9cbda74a149c4f9e53e3f4b4c368/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f662d6c6976612f656c6f7175656e742d6d657267652d73656c6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/f-liva/eloquent-merge-select)

Add additional select columns to Eloquent queries without removing those already present.

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

[](#installation)

You can install the package via composer:

```
composer require f-liva/eloquent-merge-select
```

Usage
-----

[](#usage)

```
User::query()
    ->select(['id', 'name'])
    ->mergeSelect(['email', 'created_at'])
    ->get();

// select `id`, `name`, `email`, `created_at` from `users`
```

Testing
-------

[](#testing)

```
composer pest
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Federico Liva](https://github.com/f-liva)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance72

Regular maintenance activity

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/346224?v=4)[Federico Liva](/maintainers/f-liva)[@f-liva](https://github.com/f-liva)

---

Top Contributors

[![f-liva](https://avatars.githubusercontent.com/u/346224?v=4)](https://github.com/f-liva "f-liva (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelFlivaeloquent-merge-select

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/f-liva-eloquent-merge-select/health.svg)

```
[![Health](https://phpackages.com/badges/f-liva-eloquent-merge-select/health.svg)](https://phpackages.com/packages/f-liva-eloquent-merge-select)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[wnx/laravel-backup-restore

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

213421.2k2](/packages/wnx-laravel-backup-restore)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[lacodix/laravel-model-filter

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

17558.6k](/packages/lacodix-laravel-model-filter)

PHPackages © 2026

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