PHPackages                             as-shiddiq/cineex - 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. [Framework](/categories/framework)
4. /
5. as-shiddiq/cineex

ActiveLibrary[Framework](/categories/framework)

as-shiddiq/cineex
=================

CiNeex - CodeIgniter Next and Extendable

v0.0.2.0(2y ago)1113proprietaryPHP

Since Aug 19Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/as-shiddiq/cineex)[ Packagist](https://packagist.org/packages/as-shiddiq/cineex)[ RSS](/packages/as-shiddiq-cineex/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

[![Cineex Logo](https://camo.githubusercontent.com/15b3010cd4bb9730c9e86673b7b8bbf078de0e1e3b13caac11b0e7ae10740f62/68747470733a2f2f6b6f64696e67616b616e2e636f6d2f63696e6565782e706e67)](https://camo.githubusercontent.com/15b3010cd4bb9730c9e86673b7b8bbf078de0e1e3b13caac11b0e7ae10740f62/68747470733a2f2f6b6f64696e67616b616e2e636f6d2f63696e6565782e706e67)

Cineex - CodeIgniter Next and Extendable
========================================

[](#cineex---codeigniter-next-and-extendable)

[![License](https://camo.githubusercontent.com/794347bec64bb06501658552e564c604e66704bed88f4fcd473a7d4847e40054/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d70726f70726965746172792d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/204b1791e3a57f86a93de1422b2a6e584f5045431629c5b9abd4e28dbc8b5357/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d626c75652e737667)](https://php.net)[![CodeIgniter](https://camo.githubusercontent.com/829c12943c37889350c4323713586bce6afb43b67a4fefd5723d45b3c1481539/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d342e362e312d6f72616e67652e737667)](https://codeigniter.com/)

**Cineex** adalah framework PHP yang dibangun di atas CodeIgniter 4, dirancang untuk mempermudah pembuatan aplikasi web dengan sistem modular (HMVC). Framework ini menyediakan generator otomatis, REST API siap pakai, dan sistem autentikasi yang lengkap.

**Cineex** is a PHP framework built on top of CodeIgniter 4, designed to simplify web application development with a modular system (HMVC). It provides automatic generators, ready-to-use REST API, and complete authentication system.

---

📋 Daftar Isi / Table of Contents
--------------------------------

[](#-daftar-isi--table-of-contents)

- [Fitur Utama / Key Features](#-fitur-utama--key-features)
- [Teknologi / Technology Stack](#-teknologi--technology-stack)
- [Instalasi / Installation](#-instalasi--installation)
    - [Instalasi pada Proyek CodeIgniter Baru](#1-instalasi-pada-proyek-codeigniter-baru)
    - [Instalasi Tanpa CodeIgniter](#2-instalasi-tanpa-codeigniter-terinstall)
- [Konfigurasi / Configuration](#-konfigurasi--configuration)
- [Penggunaan / Usage](#-penggunaan--usage)
    - [Command Line Interface](#1-command-line-interface-cli)
    - [Membuat Module](#2-membuat-module)
    - [Generator Commands](#3-generator-commands)
    - [REST API](#4-rest-api)
- [Struktur Proyek / Project Structure](#-struktur-proyek--project-structure)
- [Dokumentasi Lengkap / Full Documentation](#-dokumentasi-lengkap--full-documentation)
- [Kontribusi / Contributing](#-kontribusi--contributing)
- [Lisensi / License](#-lisensi--license)

---

✨ Fitur Utama / Key Features
----------------------------

[](#-fitur-utama--key-features)

### 🚀 **Command Line Interface (CLI)**

[](#-command-line-interface-cli)

Cineex menyediakan CLI tool (`run`) yang powerful untuk mempercepat development:

- Generator otomatis untuk Model, Controller, View, Migration, dll.
- Installer otomatis untuk setup database dan seeding
- Template replacer untuk customisasi tampilan

Cineex provides a powerful CLI tool (`run`) to speed up development:

- Automatic generators for Model, Controller, View, Migration, etc.
- Automatic installer for database setup and seeding
- Template replacer for UI customization

### 🧩 **Modular System (HMVC)**

[](#-modular-system-hmvc)

- Sistem modular yang memudahkan kerja tim
- Module dapat digunakan kembali di proyek lain
- Isolasi kode yang lebih baik

Modular system for better team collaboration:

- Modules can be reused in other projects
- Better code isolation

### 🔌 **REST API Ready**

[](#-rest-api-ready)

API siap pakai tanpa coding manual untuk:

- ✅ Create, Read, Update, Delete (CRUD)
- ✅ Multi-delete
- ✅ Nested arrays
- ✅ File upload
- ✅ JWT Authentication

Ready-to-use API without manual coding for CRUD operations, file uploads, and JWT authentication.

### 🔐 **Authentication System**

[](#-authentication-system)

Fitur autentikasi lengkap sudah tersedia:

- Login &amp; Sign up
- Forgot password
- User profile management
- Role-based access control

Complete authentication features out of the box.

### 🎨 **Template System**

[](#-template-system)

- Template dapat diganti sesuai kebutuhan
- Dashboard UI sudah tersedia (Neumorphism UI)
- Support multiple templates

Customizable templates with built-in dashboard UI.

---

🛠 Teknologi / Technology Stack
------------------------------

[](#-teknologi--technology-stack)

Cineex menggunakan teknologi berikut / Cineex uses the following technologies:

TeknologiVersiKegunaan / Purpose[CodeIgniter 4](https://codeigniter.com/)4.6.1Core Framework[Neumorphism UI](https://themesberg.com/product/ui-kit/neumorphism-ui-kit-bootstrap)-CSS Framework[Dompdf](https://github.com/dompdf/dompdf)^2.0PDF Generation[UUID](https://github.com/ramsey/uuid)^4.0UUID Generation[WebP Convert](https://github.com/rosell-dk/webp-convert)^2.9Image Conversion[Firebase JWT](https://github.com/firebase/php-jwt)^5.2JWT Authentication---

📦 Instalasi / Installation
--------------------------

[](#-instalasi--installation)

### Persyaratan / Requirements

[](#persyaratan--requirements)

- PHP &gt;= 7.4
- Composer
- MySQL/MariaDB atau database lain yang didukung CodeIgniter 4
- Web server (Apache/Nginx)

### 1. Instalasi pada Proyek CodeIgniter Baru

[](#1-instalasi-pada-proyek-codeigniter-baru)

Jika Anda sudah memiliki proyek CodeIgniter 4, ikuti langkah berikut:

**If you already have a CodeIgniter 4 project, follow these steps:**

#### Step 1: Install via Composer

[](#step-1-install-via-composer)

```
composer require as-shiddiq/cineex
```

#### Step 2: Copy File Run dan Paths.php

[](#step-2-copy-file-run-dan-pathsphp)

```
# Copy file run sebagai CLI tool
cp vendor/as-shiddiq/cineex/run run

# Copy konfigurasi Paths.php
cp vendor/as-shiddiq/cineex/src/Default/app/Config/Paths.php app/Config/Paths.php
```

#### Step 3: Replace Default CodeIgniter Files

[](#step-3-replace-default-codeigniter-files)

```
# Jalankan command untuk mengganti file default CodeIgniter
php run replace:all
```

> **Catatan / Note:** Command ini akan mengganti beberapa file default CodeIgniter dengan versi Cineex yang sudah dimodifikasi.

#### Step 4: Konfigurasi Environment

[](#step-4-konfigurasi-environment)

Edit file `.env` dan sesuaikan konfigurasi database Anda:

```
#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------
database.default.hostname = localhost
database.default.database = nama_database_anda
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi

#--------------------------------------------------------------------
# CINEEX MODULES
#--------------------------------------------------------------------
cineex.modules = dashboard,user,settings
```

#### Step 5: Install dan Jalankan

[](#step-5-install-dan-jalankan)

```
# Install database, migrations, dan seeders
php run install

# Jalankan development server
php spark serve
```

Aplikasi Anda akan berjalan di `http://localhost:8080`

---

### 2. Instalasi Tanpa CodeIgniter Terinstall

[](#2-instalasi-tanpa-codeigniter-terinstall)

Jika Anda belum menginstall CodeIgniter, ikuti langkah tambahan berikut:

**If you haven't installed CodeIgniter yet, follow these additional steps:**

#### Step 1: Install Cineex via Composer

[](#step-1-install-cineex-via-composer)

```
composer require as-shiddiq/cineex
```

#### Step 2: Copy Folder CodeIgniter

[](#step-2-copy-folder-codeigniter)

```
# Copy folder public
cp -r vendor/codeigniter4/framework/public public

# Copy folder app
cp -r vendor/codeigniter4/framework/app app

# Copy folder writable
cp -r vendor/codeigniter4/framework/writable writable
```

#### Step 3: Update Paths.php

[](#step-3-update-pathsphp)

Edit file `app/Config/Paths.php` dan ubah path systemDirectory:

```
public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system';
```

#### Step 4: Lanjutkan dengan Step 2-5 dari Instalasi Normal

[](#step-4-lanjutkan-dengan-step-2-5-dari-instalasi-normal)

Ikuti Step 2 sampai Step 5 dari [Instalasi pada Proyek CodeIgniter Baru](#1-instalasi-pada-proyek-codeigniter-baru)

---

⚙️ Konfigurasi / Configuration
------------------------------

[](#️-konfigurasi--configuration)

### File .env

[](#file-env)

Berikut adalah konfigurasi penting di file `.env`:

```
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------
CI_ENVIRONMENT = development

#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
app.baseURL = 'http://localhost:8080/'
app.indexPage = ''

#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------
database.default.hostname = localhost
database.default.database = cineex_db
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
database.default.DBPrefix =

#--------------------------------------------------------------------
# CINEEX CONFIGURATION
#--------------------------------------------------------------------
# Daftar module yang akan diaktifkan (pisahkan dengan koma)
cineex.modules = dashboard,user,blog,product

# Template untuk render (main, admin, dll)
cineex.template.main = neumorphism-ui
cineex.template.admin = neumorphism-ui

#--------------------------------------------------------------------
# RECAPTCHA (Optional)
#--------------------------------------------------------------------
# Untuk keamanan login, daftar di: https://www.google.com/recaptcha/admin
recaptcha.siteKey = your_site_key_here
recaptcha.secretKey = your_secret_key_here
```

---

🎯 Penggunaan / Usage
--------------------

[](#-penggunaan--usage)

### 1. Command Line Interface (CLI)

[](#1-command-line-interface-cli)

Cineex menyediakan berbagai command untuk mempermudah development:

#### Melihat Daftar Command

[](#melihat-daftar-command)

```
php run list
```

#### Command Utama / Main Commands

[](#command-utama--main-commands)

CommandDeskripsi / Description`php run install`Install database, migrations, dan seeders`php run list`Tampilkan semua command yang tersedia`php run replace:all`Replace semua file default CodeIgniter`php run replace:app`Replace folder app`php run replace:config`Replace konfigurasi`php run replace:env`Replace file .env`php run replace:template`Replace template UI---

### 2. Membuat Module

[](#2-membuat-module)

Module adalah komponen independen yang berisi Model, Controller, View, Migration, dll.

**Modules are independent components containing Models, Controllers, Views, Migrations, etc.**

#### Struktur Module

[](#struktur-module)

```
modules/
└── NamaModule/
    ├── Config/
    │   ├── Routes.php
    │   └── Filters.php
    ├── Controllers/
    │   └── NamaController.php
    ├── Models/
    │   └── NamaModel.php
    ├── Views/
    │   └── Main/
    │       └── index.php
    ├── Database/
    │   ├── Migrations/
    │   └── Seeds/
    └── Helpers/

```

#### Membuat Module Baru

[](#membuat-module-baru)

1. **Buat folder module** di `modules/NamaModule/`
2. **Daftarkan module** di `.env`: ```
    cineex.modules = dashboard,user,NamaModule
    ```
3. **Jalankan install** untuk register module: ```
    php run install
    ```

---

### 3. Generator Commands

[](#3-generator-commands)

Generator otomatis untuk membuat komponen module:

#### a. Membuat Migration

[](#a-membuat-migration)

```
php run make:migration --module=Blog --table=posts

# Contoh migration yang dihasilkan:
# modules/Blog/Database/Migrations/2024_01_01_000000_posts.php
```

**File Migration:**

```
