PHPackages                             rizal/mvc - 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. rizal/mvc

ActiveProject[Framework](/categories/framework)

rizal/mvc
=========

Belajar MVC dengan menggunakan PHP

v1.0.0(3y ago)16PHP

Since Jan 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/RizalFIrdaus/Rizal-Framework)[ Packagist](https://packagist.org/packages/rizal/mvc)[ RSS](/packages/rizal-mvc/feed)WikiDiscussions main Synced today

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

Rizal Framework
===============

[](#rizal-framework)

> About This Project is starter with mvc architecture and composer management project

Getting started
---------------

[](#getting-started)

A quick introduction

\#Via clone github

```
git clone https://github.com/RizalFIrdaus/Rizal-Framework
```

\#Via Composer

```
composer create-project rizal/mvc
```

Connect Database
----------------

[](#connect-database)

Modified Config file database in /Helper/Database.

```
 $host = "localhost";
 $port = 3306;
 $dbname = "your dbname";
 $username = "your username";
 $password = "your password";
```

Controller
----------

[](#controller)

Inside App\\Controller(NameController.php) User is model from App\\Mode\\User.php, you can modified or add some models. Controller::view is static function to passing your view and models

```
  public function index(){
        $models = User::run();
        Controller::view("index",$models);

  }
```

IF there is no data model in your controller you can passing array null

```
  public function phpinfo(){
        Controller::view("phpinfo",[]);
    }
```

Model
-----

[](#model)

This code are eloquent data, in $sql variable you can modified SQL Syntax like INSERT,UPDATE, OR DELETE Then you can passing your data with row in database like "name" =&gt; $row\["name"\]

```
   public static function run():array{

        $con = Database::getConnection();
        $sql = "SELECT * FROM user";
        $statement = $con->prepare($sql);
        $statement->execute();
        foreach ($statement as $row){
             self::$field[] = [
                "name" => $row["name"],
                "age" =>$row["age"]
            ];
        }
        return self::$field;
    }
```

View
----

[](#view)

This way to fetch your data from controller

```

    Home Page

        Nama :
        Umur :

```

Routing
-------

[](#routing)

Routing Connection, in app\\Router\\Web.php

```
 public function run(){
        Route::add("GET", "/", HomeController::class, "index");
        Route::add("GET", "/phpinfo", HomeController::class, "phpinfo");
        Route::add("GET", "/test/([0-9a-zA-Z]*)", HomeController::class, "test");
    }
```

How to running
--------------

[](#how-to-running)

```
cd public
php -S localhost:8080
```

### Built By

[](#built-by)

Muhammad Rizal Firdaus

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e025aa0548d7b58a499074da21140960200f7930fdc2c8245024766a9034e55a?d=identicon)[RizalFIrdaus](/maintainers/RizalFIrdaus)

---

Top Contributors

[![RizalFIrdaus](https://avatars.githubusercontent.com/u/51688102?v=4)](https://github.com/RizalFIrdaus "RizalFIrdaus (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rizal-mvc/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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