PHPackages                             inisiatif/model-shared - 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. inisiatif/model-shared

ActiveLibrary

inisiatif/model-shared
======================

Share model at Inisiatif Zakat Indonesia

2.9.2(7mo ago)09.4k↓46.2%5[4 PRs](https://github.com/atInisiatifZakat/model-shared/pulls)1proprietaryPHPPHP ^8.1CI passing

Since Jul 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/atInisiatifZakat/model-shared)[ Packagist](https://packagist.org/packages/inisiatif/model-shared)[ RSS](/packages/inisiatif-model-shared/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (32)Used By (1)

Model Shared
============

[](#model-shared)

Paket ini berisikan model yang di share dan digunakan bersama di Inisiatif Zakat Indonesia, berisikan :

1. Model pekerjaan
2. Model tinggat pendidikan
3. Model negara, provinsi sampai dengan desa
4. Model status perkawinan

Cara penggunaan
---------------

[](#cara-penggunaan)

### Instalasi

[](#instalasi)

Menggunakan composer dengan menjalankan perintah berikut:

```
composer require inisiatif/model-shared
```

### `Branch` and `Employee` relation `Donor`

[](#branch-and-employee-relation-donor)

Untuk penambahan relasi branch dan employee pada donor bisa menggunakan dymanic relation, tambahkan kode berikut pada `boot` di service provider

```
use Inisiatif\ModelShared\Models\Donor;

Donor::resolveRelationUsing('branch', function (Donor $model) {
    // Sesuaikan branch model
    return $model->belongsTo(Branch::class, 'branch_id');
});

Donor::resolveRelationUsing('employee', function (Donor $model) {
    // Sesuaikan employee model
    return $model->belongsTo(Employee::class, 'employeeid');
});
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance78

Regular maintenance activity

Popularity28

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Every ~31 days

Total

27

Last Release

224d ago

Major Versions

1.2.0 → 2.0.02023-07-25

1.2.1 → 2.4.22023-12-08

PHP version history (3 changes)1.2.0PHP ~8.0.0|~8.1.0

2.0.0PHP ~8.1.0|~8.2.0

1.x-devPHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3500d4ed2061891d54f54b550fbb9e782d0d1838b7fee429578a0733b0a378bf?d=identicon)[NoorAdiana](/maintainers/NoorAdiana)

---

Top Contributors

[![nuradiyana](https://avatars.githubusercontent.com/u/1073802?v=4)](https://github.com/nuradiyana "nuradiyana (44 commits)")[![nandi-ir](https://avatars.githubusercontent.com/u/83169406?v=4)](https://github.com/nandi-ir "nandi-ir (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![anshour](https://avatars.githubusercontent.com/u/68645489?v=4)](https://github.com/anshour "anshour (5 commits)")[![nadiannisaqilah](https://avatars.githubusercontent.com/u/13507782?v=4)](https://github.com/nadiannisaqilah "nadiannisaqilah (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![ihsanfikri12](https://avatars.githubusercontent.com/u/37237377?v=4)](https://github.com/ihsanfikri12 "ihsanfikri12 (1 commits)")[![Syifatf](https://avatars.githubusercontent.com/u/36734401?v=4)](https://github.com/Syifatf "Syifatf (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/inisiatif-model-shared/health.svg)

```
[![Health](https://phpackages.com/badges/inisiatif-model-shared/health.svg)](https://phpackages.com/packages/inisiatif-model-shared)
```

###  Alternatives

[veewee/xml

XML without worries

1835.9M29](/packages/veewee-xml)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[maartenpaauw/laravel-specification-pattern

Filter an Illuminate collection with specifications

1327.9k1](/packages/maartenpaauw-laravel-specification-pattern)[wijourdil/ntfy-notification-channel

ntfy.sh Notification Channel for Laravel

229.4k](/packages/wijourdil-ntfy-notification-channel)

PHPackages © 2026

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