PHPackages                             dapodik-org/laravel-dapodik-eloquent - 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. dapodik-org/laravel-dapodik-eloquent

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

dapodik-org/laravel-dapodik-eloquent
====================================

Dapodik Eloquent for Laravel Framework

00[1 PRs](https://github.com/dapodik-org/laravel-dapodik-eloquent/pulls)PHP

Since Jun 13Pushed 1mo agoCompare

[ Source](https://github.com/dapodik-org/laravel-dapodik-eloquent)[ Packagist](https://packagist.org/packages/dapodik-org/laravel-dapodik-eloquent)[ RSS](/packages/dapodik-org-laravel-dapodik-eloquent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dapodik Eloquent for Laravel Framework
======================================

[](#dapodik-eloquent-for-laravel-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/68f1ea483b083ce0c8e2fd1cce96a28da461a6afa651ca3a74e6575f5a939cb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461706f64696b2d6f72672f6c61726176656c2d6461706f64696b2d656c6f7175656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dapodik-org/laravel-dapodik-eloquent)[![GitHub Tests Action Status](https://github.com/dapodik-org/laravel-dapodik-eloquent/actions/workflows/run-tests.yml/badge.svg)](https://github.com/dapodik-org/laravel-dapodik-eloquent/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://github.com/dapodik-org/laravel-dapodik-eloquent/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/dapodik-org/laravel-dapodik-eloquent/actions/workflows/fix-php-code-style-issues.yml)[![Total Downloads](https://camo.githubusercontent.com/d1bf9e2d747ad2c3f464ec2e06e4b2cd43b25c078bf0d923fc64dbe4a7b2634e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461706f64696b2d6f72672f6c61726176656c2d6461706f64696b2d656c6f7175656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dapodik-org/laravel-dapodik-eloquent)

Paket ini menyediakan model Eloquent Dapodik yang siap digunakan di aplikasi Laravel Anda. Termasuk konfigurasi model, migrasi, dan command untuk menerbitkan model ke dalam folder aplikasi.

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

[](#installation)

Install package lewat Composer:

```
composer require dapodik-org/laravel-dapodik-eloquent
```

Publish
-------

[](#publish)

Publish migrasi dan jalankan:

```
php artisan vendor:publish --tag="dapodik-eloquent-migrations"
php artisan migrate
```

Publish file konfigurasi:

```
php artisan vendor:publish --tag="dapodik-eloquent-config"
```

Publish model package ke aplikasi Anda:

```
php artisan dapodik:eloquent-publish
```

Untuk publish satu model saja, gunakan nama model (key) seperti `agama`:

```
php artisan dapodik:eloquent-publish agama
```

Command ini akan menyalin seluruh folder `src/Models/Rest` dari package ke `app/Models/Dapodik`, dan mengubah namespace model menjadi `App\Models\Dapodik\...`.

Ini adalah contoh isi file konfigurasi yang dapat dipublish:

```
use Dapodik\Laravel\Eloquent\Models\Rest\Ref\LevelWilayah;
use Dapodik\Laravel\Eloquent\Models\Rest\Ref\Negara;
use Dapodik\Laravel\Eloquent\Models\Rest\Ref\KategoriDesa;
use Dapodik\Laravel\Eloquent\Models\Rest\Ref\MstWilayah;
use Dapodik\Laravel\Eloquent\Models\Rest\Ref\Agama;

return [
    /*
     * Prefix Table
     */
    'prefix' => env('DAPODIK_ELOQUENT_PREFIX', 'dapodik'),

    /*
     * Suffix Table
     */
    'suffix' => env('DAPODIK_ELOQUENT_SUFFIX', null),

    /*
     * Multi Connection Database
     */
    'multi_connection' => env('DAPODIK_ELOQUENT_MULTI_CONNECTION', false),

    /*
     * Custom Models
     */
    'models' => [
        'ref' => [
            'level_wilayah' => LevelWilayah::class,
            'negara' => Negara::class,
            'kategori_desa' => KategoriDesa::class,
            'mst_wilayah' => MstWilayah::class,
            'agama' => Agama::class,
            // more..
        ],
    ],
];
```

Testing
-------

[](#testing)

```
composer test
```

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)

- [Dapodik Org](https://github.com/dapodik-org)
- [Ade Reksi Susanto](https://github.com/adereksisusanto)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance61

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c95f89ce76929c588868c4d5de17d5625c7bb72f7b97d793ce488a3829f5452?d=identicon)[dapodik-org](/maintainers/dapodik-org)

---

Top Contributors

[![adereksisusanto](https://avatars.githubusercontent.com/u/34746706?v=4)](https://github.com/adereksisusanto "adereksisusanto (43 commits)")

### Embed Badge

![Health badge](/badges/dapodik-org-laravel-dapodik-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/dapodik-org-laravel-dapodik-eloquent/health.svg)](https://phpackages.com/packages/dapodik-org-laravel-dapodik-eloquent)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k13](/packages/pgvector-pgvector)

PHPackages © 2026

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