PHPackages                             discover/uniquecombination-validation - 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. discover/uniquecombination-validation

ActiveLibrary

discover/uniquecombination-validation
=====================================

unique check validation by any combination value like comma separated value duplicate entry check

v1.0(7y ago)013MITPHPPHP &gt;=5.1.0

Since Apr 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pk70/uniquecombination-validation)[ Packagist](https://packagist.org/packages/discover/uniquecombination-validation)[ RSS](/packages/discover-uniquecombination-validation/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Unique Validation with combination For Laravel
==============================================

[](#unique-validation-with-combination-for-laravel)

This package is for unique validation with comma separated value('1,2,4') or other separated value('a-k-i') of sigle-column duplicate entry check.

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

[](#installation)

Install the package through [Composer](http://getcomposer.org). On the command line:

```
composer require discover/uniquecombination-validation

```

Configuration
-------------

[](#configuration)

Add the following to your `providers` array in `config/app.php`:

```
'providers' => [
    // ...

    Discover\UniqueCombination\UniqueCombinationServiceProvider::class,
],
```

Usage
-----

[](#usage)

Use it like any `Validator` :

```
$validator = Validator::make($request->all(), [
    'title' => 'required|unique_combination:table_name,column_name,separator',
]);
```

See the [Validation documentation](http://laravel.com/docs/validation) of Laravel.

### Example

[](#example)

If you have a database table `my_table` and column which name is `column_1` and the value is `(25,36,21)` already exists.

Your input field name is `name_1` and `value` is `(36,21,25)`. You want to check unique validation with your database column so that duplicate entry prevent with this comma separated combination:

```
$validator = Validator::make($request->all(), [
    'name_1' => 'required|unique_combination:my_table,column_1,","',
]);
```

### Example-1

[](#example-1)

If you have a database table `my_table` and column which name is `name_string` and the value is `(akash-jhon-jannat)` already exists.

Your input field name is `name` and `value` is `(Jannat-Jhon-akash)`. You want to check unique validation with your database column so that duplicate entry prevent with this comma separated combination:

```
$validator = Validator::make($request->all(), [
    'name' => 'required|unique_combination:my_table,name_string,"-"',
]);
```

You can also use `any separator` like`('-','+')` as your need. You can use and `sort of combination` this. This package is `case-sensitive`

License
=======

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2596d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16e47a5a2e67c9407947cfbe086713697e5c35b2cfed0836805afaff7e69d9a5?d=identicon)[sajib](/maintainers/sajib)

---

Top Contributors

[![moinul70](https://avatars.githubusercontent.com/u/10565515?v=4)](https://github.com/moinul70 "moinul70 (11 commits)")

### Embed Badge

![Health badge](/badges/discover-uniquecombination-validation/health.svg)

```
[![Health](https://phpackages.com/badges/discover-uniquecombination-validation/health.svg)](https://phpackages.com/packages/discover-uniquecombination-validation)
```

PHPackages © 2026

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