PHPackages                             juniyasyos/manage-unit-kerja - 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. juniyasyos/manage-unit-kerja

ActiveLibrary

juniyasyos/manage-unit-kerja
============================

Plugin manage Unit Kerja untuk Filament (modul terpisah)

v1.0.0(yesterday)01↓100%MITPHPPHP ^8.2

Since Mar 21Pushed todayCompare

[ Source](https://github.com/juniyasyos/manage-unit-kerja)[ Packagist](https://packagist.org/packages/juniyasyos/manage-unit-kerja)[ RSS](/packages/juniyasyos-manage-unit-kerja/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (2)Used By (0)

Manage Unit Kerja Package
=========================

[](#manage-unit-kerja-package)

Package Laravel/Filament untuk manajemen unit kerja, dengan dukungan mode center/client dan sinkronisasi.

Fitur utama
-----------

[](#fitur-utama)

-

Filament Resource untuk model `UnitKerja`.

- Contoh konfig `app_env`, `center_application`, `sync.active`, dan `app_center_url`.
- Logika CRUD: hanya boleh bila `center_application` true atau environment local.
- `sync.active` menyalakan fitur sinkronisasi.
- Mode center: endpoint provisioning `GET /api/manage-unit-kerja/center/provision`.
- Mode client: endpoint sync `POST /api/manage-unit-kerja/client/sync`.

Install
-------

[](#install)

1. Pasang package melalui composer (jika belum):

```
composer require juniyasyos/manage-unit-kerja
```

2. Publish config, migrasi, seeder:

```
php artisan vendor:publish --tag=manage-unit-kerja-config
php artisan vendor:publish --tag=manage-unit-kerja-migrations
php artisan vendor:publish --tag=manage-unit-kerja-seeders
```

3. Migrate dan seed (opsional):

```
php artisan migrate
php artisan db:seed --class="Juniyasyos\\ManageUnitKerja\\Database\\Seeders\\UnitKerjaSeeder"
```

Konfigurasi
-----------

[](#konfigurasi)

Edit `config/manage-unit-kerja.php` atau via `.env`:

- `MANAGE_UNIT_KERJA_APP_ENV` (default `APP_ENV` / `production`)
- `MANAGE_UNIT_KERJA_CENTER_APPLICATION` (`true` / `false`)
- `MANAGE_UNIT_KERJA_SYNC_ACTIVE` (`true` / `false`)
- `MANAGE_UNIT_KERJA_APP_CENTER_URL` (`https://center-app.example.com`)

Contoh `.env`:

```
MANAGE_UNIT_KERJA_APP_ENV=production
MANAGE_UNIT_KERJA_CENTER_APPLICATION=false
MANAGE_UNIT_KERJA_SYNC_ACTIVE=true
MANAGE_UNIT_KERJA_APP_CENTER_URL=https://center-app.example.com
```

Behavior CRUD
-------------

[](#behavior-crud)

- `center_application = true` =&gt; CRUD full (create/edit/delete aktif).
- `app_env = local` =&gt; CRUD tetap aktif (developer/local mode).
- selain kondisi di atas =&gt; CRUD dibatasi; UI element Filament disembunyikan.

Filament Resource
-----------------

[](#filament-resource)

- `UnitKerjaResource` untuk `UnitKerja` model
- `ListUnitKerja` menyembunyikan `Create` jika CRUD tidak diizinkan.
- `UnitKerjaResourceTable` menonaktifkan aksi edit/restore/forceDelete jika CRUD tidak diizinkan.
- `UsersRelationManager` juga diperiksa `isCrudAllowed()` untuk attach/detach.

API Sync
--------

[](#api-sync)

### Center

[](#center)

- Endpoint: `GET /api/manage-unit-kerja/center/provision`
- Menghasilkan JSON data `UnitKerja` dari database.
- Hanya tersedia ketika `center_application=true`.

### Client

[](#client)

- Endpoint: `POST /api/manage-unit-kerja/client/sync`
- Memanggil `GET {app_center_url}/api/manage-unit-kerja/center/provision`.
- Mengupdate/insert unit kerja berdasarkan `slug`.
- Hanya berjalan kalau `sync.active=true`.

### Contoh pemakaian client (curl)

[](#contoh-pemakaian-client-curl)

```
curl -X POST \
  -H "Accept: application/json" \
  https://client-app.example.com/api/manage-unit-kerja/client/sync
```

Command CLI
-----------

[](#command-cli)

- `php artisan manage-unit-kerja:sync` (juga cek sync.active, placeholder).

Pengembangan
------------

[](#pengembangan)

- Implementasi provisioning/tokens/auth untuk keamanan.
- Tambahkan validasi payload (schema).
- Buat queue/batch sync utuh jika volume besar.

---

Catatan
-------

[](#catatan)

Package ini didesain sebagai satu kesatuan komponen manajemen unit kerja dengan behavior client/center yang konsisten.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13dafb0bb45c4dbf74b7d4a75e9e1d2c335fcaa1fb4e32f135ac4fb4fee5f1aa?d=identicon)[Ahmad Ilyas](/maintainers/Ahmad%20Ilyas)

---

Top Contributors

[![juniyasyos](https://avatars.githubusercontent.com/u/111669845?v=4)](https://github.com/juniyasyos "juniyasyos (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/juniyasyos-manage-unit-kerja/health.svg)

```
[![Health](https://phpackages.com/badges/juniyasyos-manage-unit-kerja/health.svg)](https://phpackages.com/packages/juniyasyos-manage-unit-kerja)
```

###  Alternatives

[bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

339951.2k13](/packages/bezhansalleh-filament-language-switch)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169175.3k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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