PHPackages                             nihilsen/laravel-join-using - 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. nihilsen/laravel-join-using

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

nihilsen/laravel-join-using
===========================

Add support for the USING directive in join constraints for Laravel query builder

v0.1.0(3y ago)4109[3 PRs](https://github.com/Persaeus/laravel-join-using/pulls)1MITPHPPHP ^8.1

Since Aug 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Persaeus/laravel-join-using)[ Packagist](https://packagist.org/packages/nihilsen/laravel-join-using)[ Docs](https://github.com/nihilsen/laravel-join-using)[ RSS](/packages/nihilsen-laravel-join-using/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (5)Used By (1)

Laravel `JOIN USING` 🖇️
=======================

[](#laravel-join-using-️)

[![Latest Version on Packagist](https://camo.githubusercontent.com/62c39f994b16c143d5a6ba7e178aba20c9072da9bb235798e4079a2b7a279b26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6968696c73656e2f6c61726176656c2d6a6f696e2d7573696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nihilsen/laravel-join-using)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f149bf4921cdddaa7d269b240c59afa7b8690395aa3f99421a0181b81916e57f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6968696c73656e2f6c61726176656c2d6a6f696e2d7573696e672f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/nihilsen/laravel-join-using/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/dbb8aac79aa05909bd2aebdd3661dcef65833fc12fcf73eeb6d7af44142cce7b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6968696c73656e2f6c61726176656c2d6a6f696e2d7573696e672f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/nihilsen/laravel-join-using/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/57346f6322451605ac04467bc0c6d36ab58e5986e18d087b0c4d54d66b053ec7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6968696c73656e2f6c61726176656c2d6a6f696e2d7573696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nihilsen/laravel-join-using)

This package adds support for the `USING` directive in join constraints for Laravel query builder.

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

[](#installation)

You can install the package via composer:

```
composer require nihilsen/laravel-join-using
```

Usage
-----

[](#usage)

```
use Illuminate\Support\Facades\DB;
use Nihilsen\LaravelJoinUsing\JoinUsingClause;

$query = DB::table('left_table')->rightJoin(
    'right_table',
    fn (JoinUsingClause $join) => $join->using('shared_column')
);

echo $query->toSql() // select * from "left_table" right join "right_table" using ("shared_column")
```

Credits
-------

[](#credits)

- [nihilsen](https://github.com/nihilsen)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

1347d ago

### Community

Maintainers

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

---

Top Contributors

[![Persaeus](https://avatars.githubusercontent.com/u/32091869?v=4)](https://github.com/Persaeus "Persaeus (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![nihilsen](https://avatars.githubusercontent.com/u/160070922?v=4)](https://github.com/nihilsen "nihilsen (1 commits)")

---

Tags

databasejoinlaravelmysqlpostgresqlsqlsqliteusinglaravelnihilsenlaravel-join-using

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nihilsen-laravel-join-using/health.svg)

```
[![Health](https://phpackages.com/badges/nihilsen-laravel-join-using/health.svg)](https://phpackages.com/packages/nihilsen-laravel-join-using)
```

###  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)
