Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
a8d1eb3
Traduction Spanish
Jan 24, 2023
1e323ca
Add correcction, add base_url in all forms for work correct in XAMPP
Jan 24, 2023
a494240
Correction styleci 'logout' => 'Salir',
Jan 24, 2023
a73441f
Correctión base_url logout in header.php
Jan 24, 2023
077c027
Base_url in delete and update user
Jan 25, 2023
f3c479d
Correction in rol, base_url in update datatablet button target
Jan 25, 2023
28f2060
Fork for composer test
Jan 25, 2023
34d6c3b
Correction for change name composer
Jan 26, 2023
768755e
Change Leame
Jan 26, 2023
c15f9cd
Change for add search menu mainsidebar
Jan 26, 2023
6f68d18
Change in dashboard
Jan 26, 2023
cd22797
Add firstname and lastname
Feb 3, 2023
8bd3c77
Update README.md
julio101290 Feb 3, 2023
73c9dcd
Update README.md
julio101290 Feb 3, 2023
06acda3
Update FUNDING.yml
julio101290 Feb 3, 2023
bcdc336
Update README.md
julio101290 Feb 3, 2023
b56a1fa
Cambios Leame
julio101290 Feb 3, 2023
2ec0d85
change namespace
julio101290 Feb 4, 2023
f90340d
Responsive in datatables using dataTables.responsive.js
Feb 22, 2023
946a78a
Draggrable modal change
Feb 27, 2023
54cd6ea
edit permission draggable
Feb 27, 2023
911d554
Auth change
Jun 8, 2023
e073aa8
asd
Jun 8, 2023
96ec4cb
changes
Jun 8, 2023
85fc67d
Correcctions
Jun 8, 2023
57f4468
Correction User Controller
Jun 8, 2023
39dfba2
Corrections User Order
Aug 12, 2023
e9fc9b9
Correccion para codeigniter 4.5
julio101290 May 13, 2024
175b410
cambios rutas
julio101290 May 13, 2024
3c36056
Change Security Headers token
julio101290 Oct 11, 2024
25d8422
New loads
julio101290 Nov 26, 2024
2bc13a0
Add files via upload
julio101290 Nov 27, 2024
da32214
Changes in language files
julio101290 Jan 15, 2025
66759cb
Change function datatime html5 reverse
julio101290 May 6, 2025
a709a59
Changes for clone roles and permissions from old user
julio101290 Jun 11, 2025
a196efd
changes in autocrud for compatibility with posgreSQL
julio101290 Jul 8, 2025
21bb2ca
Corrections autoCrudController
julio101290 Jul 8, 2025
e1183f5
changes in dashboard generic
julio101290 Jul 8, 2025
6ab4ba4
add function mdlUserModel
julio101290 Jul 22, 2025
e810b85
Add Profile Image
julio101290 Aug 21, 2025
2854abe
correction profile image
julio101290 Aug 22, 2025
b915b22
more correction in profile image
julio101290 Aug 22, 2025
3c01d67
Correction in sidebar
julio101290 Aug 22, 2025
ba64e8c
Corrections
julio101290 Aug 22, 2025
e963f43
Changes for corrections save menu, desing login and add traductions
julio101290 Jan 6, 2026
8e8668c
Correction route base_URL
julio101290 Jan 7, 2026
3501890
Correction in save users return correct route
Feb 24, 2026
49c1ff5
Correcctions route in update user redirect
julio101290 Mar 6, 2026
05e674c
add autocrud for composer example for use http://localhost:8080//admi…
julio101290 Mar 7, 2026
49745d4
Correction site cross
julio101290 Mar 10, 2026
14ef025
Update UserController.php
julio101290 Apr 27, 2026
7bcb482
changes roles correction
julio101290 Jun 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# These are supported funding model platforms
custom: https://saweria.co/agungsugiarto # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: user?u=74078772
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://cesarsystems.com.mx/']
330 changes: 177 additions & 153 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,153 +1,177 @@
<p align="center"><img src="https://codeigniter.com/assets/images/codeigniter4logo.png" width="200"></p>

<p align="center">
<a href="https://packagist.org/packages/agungsugiarto/boilerplate"><img src="https://poser.pugx.org/agungsugiarto/boilerplate/version"></a>
<a href="https://packagist.org/packages/agungsugiarto/boilerplate"><img src="https://img.shields.io/badge/Package-agungsugiarto%2Fboilerplate-light.svg"></a>
<a href="https://packagist.org/packages/agungsugiarto/boilerplate"><img src="https://poser.pugx.org/agungsugiarto/boilerplate/downloads"</img></a>
<a href="https://github.com/agungsugiarto/boilerplate/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/agungsugiarto/boilerplate"></a>
</p>

CodeIgniter 4 Application Boilerplate
=====================================
This package for CodeIgniter 4 serves as a basic platform for quickly creating a back-office application. It includes profile creation and management, user management, roles, permissions and a dynamically-generated menu.

Feature
-------
* Configurable backend theme [AdminLTE 3](https://adminlte.io/docs/3.0/)
* CSS framework [Bootstrap 4](https://getbootstrap.com/)
* Icons by [Font Awesome 5](https://fontawesome.com/)
* Role-based permissions (RBAC) provided by [Myth/Auth](https://github.com/lonnieezell/myth-auth)
* Dynamically-Generated Menu
* Localized English / Indonesian

This project is still early in its development... please feel free to contribute!
------------------------------------------------------------
Screenshoot | Demo On [Heroku](https://boilerplate-codeigniter4.herokuapp.com/)
-------------------------------------------------------------------------------
![Dashboard](.github/dashboard.png?raw=true)

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

**1.** Get The Module

```bash
composer require agungsugiarto/boilerplate
```

**2.** Set CI_ENVIRONMENT, baseURL, index page, and database config in your `.env` file based on your existing database (If you don't have a `.env` file, you can copy first from `env` file: `cp env .env` first). If the database does not exist, create the database first.

```bash
# .env file
CI_ENVIRONMENT = development

app.baseURL = 'http://localhost:8080'
app.indexPage = ''

database.default.hostname = localhost
database.default.database = boilerplate
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
```
**3.** Run publish auth
```bash
php spark auth:publish

Publish Migration? [y, n]: y
created: Database/Migrations/2017-11-20-223112_create_auth_tables.php
Remember to run `spark migrate -all` to migrate the database.
Publish Models? [y, n]: n
Publish Entities? [y, n]: n
Publish Controller? [y, n]: n
Publish Views? [y, n]: n
Publish Filters? [y, n]: n
Publish Config file? [y, n]: y
created: Config/Auth.php
Publish Language file? [y, n]: n
```

> NOTE: Everything about how to configure auth you can find add [Myth/Auth](https://github.com/lonnieezell/myth-auth).


Is it ready yet? Not so fast!! ;-) After publishing `Config/Auth.php` you need to change
`public $views` with these lines below:
```php
public $views = [
'login' => 'agungsugiarto\boilerplate\Views\Authentication\login',
'register' => 'agungsugiarto\boilerplate\Views\Authentication\register',
'forgot' => 'agungsugiarto\boilerplate\Views\Authentication\forgot',
'reset' => 'agungsugiarto\boilerplate\Views\Authentication\reset',
'emailForgot' => 'agungsugiarto\boilerplate\Views\Authentication\emails\forgot',
'emailActivation' => 'agungsugiarto\boilerplate\Views\Authentication\emails\activation',
];
```

Open `app\Config\Filters.php`, find `$aliases` and add these lines below:
```php
public $aliases = [
'login' => \Myth\Auth\Filters\LoginFilter::class,
'role' => \agungsugiarto\boilerplate\Filters\RoleFilter::class,
'permission' => \agungsugiarto\boilerplate\Filters\PermissionFilter::class,
];
```

**4.** Run publish, migrate and seed boilerplate

```bash
php spark boilerplate:install
```

**5.** Run development server:

```bash
php spark serve
```

**6.** Open in browser http://localhost:8080/admin
```bash
Default user and password
+----+--------+-------------+
| No | User | Password |
+----+--------+-------------+
| 1 | admin | super-admin |
| 2 | user | super-user |
+----+--------+-------------+
```

Settings
--------

Config Boilerplate

You can configure default dashboard controller and backend theme in `app\Config\Boilerplate.php`,

```php
class Boilerplate extends BaseConfig
{
public $appName = 'Boilerplate';

public $dashboard = [
'namespace' => 'agungsugiarto\boilerplate\Controllers',
'controller' => 'DashboardController::index',
'filter' => 'permission:back-office',
];
// App/Config/Boilerplate.php
```

Usage
-----
You can find how it works with the read code routes, controller and views etc. Finnally... Happy Coding!

Changelog
--------
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------
Contributions are very welcome.

License
-------

This package is free software distributed under the terms of the [MIT license](LICENSE.md).
<p align="center">
<a href="https://packagist.org/packages/julio101290/boilerplate"><img src="https://poser.pugx.org/julio101290/boilerplate/version"></a>
<a href="https://packagist.org/packages/julio101290/boilerplate"><img src="https://img.shields.io/badge/Package-julio101290%2Fboilerplate-light.svg"></a>
<a href="https://packagist.org/packages/julio101290/boilerplate"><img src="https://poser.pugx.org/julio101290/boilerplate/downloads"</img></a>
<a href="https://github.com/julio101290/boilerplate/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/julio101290/boilerplate"></a>
</p>

CodeIgniter 4 Application Boilerplate
=====================================
This package for CodeIgniter 4 serves as a basic platform for quickly creating a back-office application. It includes profile creation and management, user management, roles, permissions and a dynamically-generated menu.

Feature
-------
* Configurable backend theme [AdminLTE 3](https://adminlte.io/docs/3.0/)
* CSS framework [Bootstrap 4](https://getbootstrap.com/)
* Icons by [Font Awesome 5](https://fontawesome.com/)
* Role-based permissions (RBAC) provided by [Myth/Auth](https://github.com/lonnieezell/myth-auth)
* Dynamically-Generated Menu
* Localized English / Indonesian / Spanish

This project is still early in its development... please feel free to contribute!

The original author is agungsugiarto/boilerplate https://github.com/agungsugiarto/boilerplate, we only made a fork to adapt it to new needs such as translating it into Spanish and making it functional in xampp/lampp

![Dashboard](.github/dashboard.png?raw=true)

------------------------------------------------------------

-------------------------------------------------------------------------------


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

**1.** Get The Module

```bash
composer require julio101290/boilerplate
```

**2.** Set CI_ENVIRONMENT, baseURL, index page, and database config in your `.env` file based on your existing database (If you don't have a `.env` file, you can copy first from `env` file: `cp env .env` first). If the database does not exist, create the database first.

```bash
# .env file
CI_ENVIRONMENT = development

app.baseURL = 'http://localhost:8080'
app.indexPage = ''

database.default.hostname = localhost
database.default.database = boilerplate
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
```
**3.** Run publish auth
```bash
php spark auth:publish

Publish Migration? [y, n]: y
created: Database/Migrations/2017-11-20-223112_create_auth_tables.php
Remember to run `spark migrate -all` to migrate the database.
Publish Models? [y, n]: n
Publish Entities? [y, n]: n
Publish Controller? [y, n]: n
Publish Views? [y, n]: n
Publish Filters? [y, n]: n
Publish Config file? [y, n]: y
created: Config/Auth.php
Publish Language file? [y, n]: n
```

> NOTE: Everything about how to configure auth you can find add [Myth/Auth](https://github.com/lonnieezell/myth-auth).


Is it ready yet? Not so fast!! ;-) After publishing `Config/Auth.php` you need to change
`public $views` with these lines below:
```php
public $views = [
'login' => 'julio101290\boilerplate\Views\Authentication\login',
'register' => 'julio101290\boilerplate\Views\Authentication\register',
'forgot' => 'julio101290\boilerplate\Views\Authentication\forgot',
'reset' => 'julio101290\boilerplate\Views\Authentication\reset',
'emailForgot' => 'julio101290\boilerplate\Views\Authentication\emails\forgot',
'emailActivation' => 'julio101290\boilerplate\Views\Authentication\emails\activation',
];
```

Open `app\Config\Filters.php`, find `$aliases` and add these lines below:
```php
public $aliases = [
'login' => \Myth\Auth\Filters\LoginFilter::class,
'role' => \julio101290\boilerplate\Filters\RoleFilter::class,
'permission' => \julio101290\boilerplate\Filters\PermissionFilter::class,
];
```

**4.** Run publish, migrate and seed boilerplate

```bash
php spark boilerplate:install
```
Open `app\Config\validation.php`, find `$ruleSets` and add these lines below:

```php
public $$ruleSets = [
\Myth\Auth\Authentication\Passwords\ValidationRules::class,
];
```
Open `app\entities\Users.php`, find `$casts` and add these lines below:

```php

protected $casts = [
'username' => 'string',
'email' => 'string',
'firstname' => 'string',
'lastname' => 'string',
'active' => 'boolean',
'force_pass_reset' => 'boolean',
];

```

**5.** Run development server:

```bash
php spark serve
```

**6.** Open in browser http://localhost:8080/admin
```bash
Default user and password
+----+--------+-------------+
| No | User | Password |
+----+--------+-------------+
| 1 | admin | super-admin |
| 2 | user | super-user |
+----+--------+-------------+
```

Settings
--------

Config Boilerplate

You can configure default dashboard controller and backend theme in `app\Config\Boilerplate.php`,

```php
class Boilerplate extends BaseConfig
{
public $appName = 'Boilerplate';

public $dashboard = [
'namespace' => 'julio101290\boilerplate\Controllers',
'controller' => 'DashboardController::index',
'filter' => 'permission:back-office',
];
// App/Config/Boilerplate.php
```

Usage
-----
You can find how it works with the read code routes, controller and views etc. Finnally... Happy Coding!

Changelog
--------
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------
Contributions are very welcome.

License
-------

This package is free software distributed under the terms of the [MIT license](LICENSE.md).
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agungsugiarto/boilerplate",
"description": "CodeIgniter4 Boilerplate based on AdminLTE 3 with user management, roles, permissions, ...",
"name": "julio101290/boilerplate",
"description": "CodeIgniter4 Boilerplate based on AdminLTE 3 with user management, roles, permissions, forked of agungsugiarto/boilerplate ...",
"keywords": [
"codeigniter4",
"authentication",
Expand All @@ -12,14 +12,17 @@
"authors": [
{
"name": "Agung Sugiarto",
"email": "me.agungsugiarto@gmail.com"
"email": "me.agungsugiarto@gmail.com",

"name": "Julio Leyva",
"email": "juliocesarleyvarodriguez@hotmail.com"
}
],
"require": {
"php": "^7.3 || ^8.0",
"myth/auth": "^1.0",
"codeigniter4/framework": "^4.1",
"codeigniter4/translations" : "^4.0"
"codeigniter4/translations" : "^4.0",
"julio101290/auth": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.1",
Expand All @@ -29,7 +32,7 @@
"prefer-stable": true,
"autoload": {
"psr-4": {
"agungsugiarto\\boilerplate\\": "src"
"julio101290\\boilerplate\\": "src"
}
},
"autoload-dev": {
Expand Down
Loading