FOR CODEIGNITER 4 AND SHIELD

Stop deploying to change a permission.

Shield keeps its roles in a config file. Rolewarden moves them to the database and gives your client a panel to manage them. Shield stays, its tables untouched.

Open the live demo Read the documentation
Available on Codester ยท Regular licence $29
BEFOREapp/Config/AuthGroups.php
public array $matrix = [
    'admin' => ['users.*', 'invoices.approve'],
    'user'  => ['invoices.view'],
];
Every change is a commit and a deploy.
AFTERyour controller, unchanged
if (auth()->user()->can('invoices.approve')) {
    // the answer comes from the database
}
An administrator changes it from a browser.
Rolewarden admin dashboard: active users, sign-ins and permission changes, with a sidebar for users, roles and permissions
The dashboard: blocks per role, each behind its own permission
TO WIRE IT IN 2 lines in Auth.php and Routes.php, written by the wizard
BUILD STEPS 0 no Node, no npm, CSS shipped compiled
THEMES 3 each in light and dark, with a customiser
REGULAR LICENCE $29 per end product, on Codester
A

In an existing app in three steps

1 Install With Composer, or from the complete application zip with vendor/ included when the server has no Composer.
2 Wire Open /rolewarden/setup. The wizard runs the migrations, brings your Shield groups across and writes the config lines for you, after showing you the diff.
3 Hand over Your client manages users, roles and permissions. No file inside the module is meant to be edited, so updates never overwrite your work.
B

A wizard for the app you already have

new in 1.2

Your app is in production, with its own groups and users. The wizard reads them, asks six questions, and tells you what each answer will do before anything changes.

Nothing is written until you confirm. Then it applies in a safe order: migrations, roles, super admin, filters, wiring. Every config file it edits is shown as a diff, backed up, syntax-checked and logged. Interrupted halfway, it resumes where it stopped.

Rolewarden setup wizard, step 3 of 7: for each group that shares a name with a role you choose to merge, import under another name, or skip
01
Filters
If a global session filter guards your app, it adds the exceptions the panel needs.
02
Roles
Adapt the roles you already have, or import Rolewarden's. It suggests one from what it finds.
03
Clashes
A group named like one of ours: merge it, import it under another name, or skip it. Each option states how many users and permissions it affects.
04
New users
Which role a new sign-up receives.
05
Super admin
One of your active users, or a new account.
06
Visibility
The panel for every user, or for administrators only.
Opens with a one-time code that only someone with file access can read, and locks itself when done.
C

What your client manages

One matrix per role. Roles inherit from a parent, and a single user can be granted or denied one permission without inventing a new role.

Five marks, told apart by shape: granted, inherited, granted for one user, denied for one user, not granted. A denial beats every role, super admin included.

Try the matrix in the live demo
PERMISSIONREADERAUTHORAPPROVER
01documents.view
02documents.create
03documents.approve
04documents.delete
Author inherits from Reader, Approver from Author denied for 1 user
D

Everything in the box

01Authorization engineRole inheritance, per-user grant and deny, one fixed resolution order. A denial beats every role, super admin included.cached per user
02Users, roles, matrixSearch and filter users, import them from CSV, edit a permission matrix per role. Guard rails keep one active super admin.no config edits
03Dashboard and command searchA summary page with blocks per role, Ctrl K to reach any screen, and Check a permission to see why a user can or cannot.since 1.1
04Sessions and sign-in limitsEvery signed-in browser with device and last activity. Sign out one or all. Throttling per IP and a lock per email.on top of Shield
05Activity log and security emailsEvery change from the panel and every sign-in attempt, filtered by user, action and period. Emails on new device, password change, lockout.no cron job
06Themes and languagesConsole, Clarity and Contrast, a live customiser with a WCAG AA check. English and Italian, one PHP file per extra language.saved as a file of your app
07Setup wizardFor an app that already runs on Shield. It asks each choice with its consequence, writes nothing until you confirm, and logs every file it touches.new in 1.2

Built for

Freelance developers and small agencies who ship CodeIgniter 4 applications to clients, and want a permission layer that is in place on day one and that the client manages without calling them.

Not for

Applications on Ion Auth, Myth:Auth or a home-made login: they have to move to Shield first. Multi-tenant apps: roles are global to the application.

See it with real roles before you buy

The demo ships a small document register with Reader, Author and Approver accounts. Data resets every hour.

Open the live demo Buy this script on Codester
Regular licence
an end product free for its users
$29
Extended licence
an end product that is sold
$99
Sold on Codester. Requires PHP 8.3, CodeIgniter 4.7.4, Shield 1.4.