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(8mo ago)0442↓50%[3 PRs](https://github.com/f-liva/eloquent-merge-select/pulls)MITPHPPHP ^8.1CI passing

Since Aug 27Pushed 1mo 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 1mo ago

READMEChangelog (1)Dependencies (13)Versions (5)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

40

—

FairBetter than 88% of packages

Maintenance76

Regular maintenance activity

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/796e4d6545ebd619068a5905951de016ca61799e96c918f62a8659d1c04af1af?d=identicon)[f-liva](/maintainers/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

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

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

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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