Skip to content

Bootcamp-STMIK-Mardira-Indonesia/Kelompok-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mardira Framework

Mardira Framework is a PHP framework Model Controller Based for building web applications and APIs. It is designed to be simple, and fast.

Total Downloads

Table of Contents

Requirements

  • PHP >= 7.4
  • MySQL >= 5.7.8
  • Apache >= 2.4.41
  • Composer >= 2.0.9

Installation

Clone

  • Clone this repo to your local machine using `git clone
  git clone https://github.com/Bootcamp-STMIK-Mardira-Indonesia/mardira-framework.git

Then, install the dependencies using composer

composer install

or

composer update

Setup

You can create a new project using composer

composer create-project mardira/mardira-framework <your_project_name>

Usage

Start Server

php mardira serve

or

php mardira serve --port=<your_port>

Create Controller

php mardira make:controller ControllerName

Create Model

php mardira make:model ModelName

Create Migration

php mardira make:migration create_table_table_name

Run Migration

php mardira migrate

Refresh Migration

php mardira migrate:refresh

Refresh Migration With Seed

php mardira migrate:refresh --seed

Create Seeder

php mardira make:seeder SeederName

Run Seeder

php mardira db:seed

Run Seeder Specific

php mardira db:seed --class=SeederName

Create .env

php mardira make:env

Create Authetication

php mardira make:auth

Refresh Authetication

php mardira make:auth --refresh

Support

Reach out to me at one of the following places!