PHPackages                             keasy9/laravel-composite-pk - 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. keasy9/laravel-composite-pk

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

keasy9/laravel-composite-pk
===========================

A small Laravel package that allows to use composite primary keys.

1.0(2y ago)1131MITPHPPHP ^7.3 || ^8.0

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/keasy9/laravel-composite-pk)[ Packagist](https://packagist.org/packages/keasy9/laravel-composite-pk)[ RSS](/packages/keasy9-laravel-composite-pk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Laravel-localize - a small Laravel package that allows to use composite primary keys.
-------------------------------------------------------------------------------------

[](#laravel-localize---a-small-laravel-package-that-allows-to-use-composite-primary-keys)

### Installation:

[](#installation)

- composer require keasy9/laravel-composite-pk

### Usage:

[](#usage)

```
class Post extends Model
{
    use HasCompositePrimaryKey;

    protected $primaryKey = ['author_id', 'category_id'];
    public $incrementing = false;

    //...
}

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

918d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/127016754?v=4)[keasy9](/maintainers/keasy9)[@keasy9](https://github.com/keasy9)

---

Top Contributors

[![keasy9](https://avatars.githubusercontent.com/u/127016754?v=4)](https://github.com/keasy9 "keasy9 (2 commits)")

### Embed Badge

![Health badge](/badges/keasy9-laravel-composite-pk/health.svg)

```
[![Health](https://phpackages.com/badges/keasy9-laravel-composite-pk/health.svg)](https://phpackages.com/packages/keasy9-laravel-composite-pk)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k3.5k](/packages/leantime-leantime)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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