PHPackages                             skuadron45/ci4adminrbac - 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. skuadron45/ci4adminrbac

ActiveLibrary

skuadron45/ci4adminrbac
=======================

Codeigniter 4 Admin module With Basic RBAC

1.0.6(2y ago)491.3k↓100%16MITPHPPHP ^7.4 || ^8.0CI failing

Since Dec 19Pushed 2y ago8 watchersCompare

[ Source](https://github.com/skuadron45/ci4adminrbac)[ Packagist](https://packagist.org/packages/skuadron45/ci4adminrbac)[ RSS](/packages/skuadron45-ci4adminrbac/feed)WikiDiscussions master Synced today

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

Modul - CodeIgniter 4 Simple RBAC
=================================

[](#modul---codeigniter-4-simple-rbac)

[![Latest Stable Version](https://camo.githubusercontent.com/ecd843b747ba0bc4c6399ffa15e1488d02e8d9a6b579647834bbbb1dfb470b32/68747470733a2f2f706f7365722e707567782e6f72672f736b756164726f6e34352f63693461646d696e726261632f762f737461626c65)](https://packagist.org/packages/skuadron45/ci4adminrbac)[![Total Downloads](https://camo.githubusercontent.com/dd5853174269d5e45b9ed1fb950ce8354a9043a4b683637fe560f6c9a5cd8445/68747470733a2f2f706f7365722e707567782e6f72672f736b756164726f6e34352f63693461646d696e726261632f646f776e6c6f616473)](https://packagist.org/packages/skuadron45/ci4adminrbac)[![alt](https://camo.githubusercontent.com/9df83014ca4e13cff80cf1ef39e48ac188eccae31956d0898ee38581c39b94de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d736b756164726f6e343525324663693461646d696e726261632532302d73)](https://packagist.org/packages/skuadron45/ci4adminrbac)[![License](https://camo.githubusercontent.com/227598c3a3713c524ca58d76c5bfa8b1c8e910ebf0033aa7ff24cf03f32f2cb8/68747470733a2f2f706f7365722e707567782e6f72672f736b756164726f6e34352f63693461646d696e726261632f6c6963656e7365)](https://packagist.org/packages/skuadron45/ci4adminrbac)

Fitur yang digunakan/tersedia
=============================

[](#fitur-yang-digunakantersedia)

- Implementasi Filters terkait Autentikasi
- View Parser, View Renderer
- ResponseTrait
- Datatable Builder di file custom js.
- Form Builder untuk modal.
- Login User (Encrypt dan Decrypt)
- Add, Edit By Reload Page
- Add, Edit, Delete By Ajax Modal
- Hak Akses Add, Delete, Edit, View tiap modul. (Grup Pengguna)
- Template AdminLte3, Sweet Alert, Pace Js untuk loading bar.
- Model yang ada masih menggunakan cara CI3 (belum extend CodeIgniter\\Model)
- Mengakali Dynamic BASE URL seperti CI3 di Config/App.php
- Redirect Success Url/Home Modul tiap User setelah Login.
- Stored Procedure di database
- Function di database.

Update 13-01-2024 !
-------------------

[](#update-13-01-2024-)

- Fix error run php spark routes

Update 11-07-2023 !
-------------------

[](#update-11-07-2023-)

- Update to work on latest codeigniter 4 and PHP 8.x

Update 07-03-2020 !
-------------------

[](#update-07-03-2020-)

- Compiling Assets (Mix) menggunakan Laravel Mix, (1 js dan 1 css untuk template adminlte)
- Ubah request login menggunakan ajax

Update 19-04-2020 !
-------------------

[](#update-19-04-2020-)

- Penggunaan Migration
- Penggunaan Seeder
- Promote modul Install Command via php spark
- Isolated modul (tidak terikat folder app codeigniter 4)

Next Update
-----------

[](#next-update)

- Penggunaan Model dan Entity
- Module Profil Pengguna

Persiapan
---------

[](#persiapan)

Pastikan **codeigniter4/appstarter** project siap digunakan, baca tutorial install [disini](https://github.com/codeigniter4/appstarter)

Sesuaikan Base URL di App/Config/Database.php atau .env file Sesuaikan nama database yang akan digunakan di App/Config/Database.php atau .env file \*buat database baru bila database belum ada

Contoh via .env file:

```
app.baseURL = http://ci4fresh.test/

database.default.hostname = localhost
database.default.database = ci4fresh
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi

```

Instalasi module via composer
-----------------------------

[](#instalasi-module-via-composer)

Buka CMD/Shell di root project, run command berikut:

```
composer require skuadron45/ci4adminrbac

```

Jalankan command berikut untuk instalasi module (include migration, seeder, dll)

```
php spark ci4adminrbac:install

```

Tambahkan alias Filters -&gt; App/Config/Filters
------------------------------------------------

[](#tambahkan-alias-filters---appconfigfilters)

```
public array $aliases = [
        ...

        'redirectIfAuthenticated' => RedirectIfAuthenticated::class,
        'redirectIfNotAuthenticated' =>  RedirectIfNotAuthenticated::class
    ];

```

Routes List Modul
-----------------

[](#routes-list-modul)

Untuk mengetahui url yang tersedia untuk module ini, silahkan jalankan command:

```
php spark routes

```

routes untuk module ini yang tersedia dengan kolom handler dimulai dengan namespace \\Ci4adminrbac\\\*

Berikut ini adalah routes path yang sudah tersedia:

```
GET     | admin/logout
GET     | admin
GET     | admin/dashboard
GET     | admin/user/user
GET     | admin/user/user/getdata
GET     | admin/user/user/delete
GET     | admin/user/user/find
GET     | admin/user/usergroup
GET     | admin/user/usergroup/getdata
GET     | admin/user/usergroup/create
GET     | admin/user/usergroup/edit/([0-9]+)
GET     | admin/user/usergroup/delete
GET     | login
POST    | admin/user/user/store
POST    | admin/user/usergroup/store
POST    | admin/user/usergroup/update/([0-9]+)
POST    | login

```

Catatan
-------

[](#catatan)

### **Membuat .env file**

[](#membuat-env-file)

Buka CMD/Shell di root project, run command berikut:

```
cp env .env

```

\*perintah copy file env menjadi .env file secara command line (biasanya via GUI tidak dapat membuat .env file)

### **Codeigniter 4 Core System**

[](#codeigniter-4-core-system)

Karena saat ini codeigniter4 masih update terus perbaikannya, saya menggunakan repo github **codeigniter4/CodeIgniter4** untuk core system CI4-nya. Hal tersebut dapat dilakukan dengan melakukan langkah berikut:

Run command berikut:

```
php builds development

```

Perintah ini akan mengubah isi composer.json pada bagian

```
"require": {
        ...
        "codeigniter4/framework": "^4"
}

```

menjadi:

```
"require": {
        ...
        "codeigniter4/codeigniter4": "dev-develop"
},

```

dan menambahkan baris:

```
"minimum-stability": "dev"

```

Silahkan tambahkan 1 property berikut ini:

```
"prefer-stable": true

```

Untuk penjelasan prefer-stable silahkan baca [di sini](https://getcomposer.org/doc/04-schema.md#prefer-stable)

Lalu jalankan kembali perintah:

```
composer update --no-dev

```

###  Health Score

35

↑

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~224 days

Recently: every ~47 days

Total

6

Last Release

799d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.3PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/867f55d1331f53a42c32abf924aa8c0d3199939f9d40eeb1060ac5933d681484?d=identicon)[skuadron45](/maintainers/skuadron45)

---

Top Contributors

[![skuadron45](https://avatars.githubusercontent.com/u/19733761?v=4)](https://github.com/skuadron45 "skuadron45 (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

adminltecodeigniter4rbac

### Embed Badge

![Health badge](/badges/skuadron45-ci4adminrbac/health.svg)

```
[![Health](https://phpackages.com/badges/skuadron45-ci4adminrbac/health.svg)](https://phpackages.com/packages/skuadron45-ci4adminrbac)
```

PHPackages © 2026

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