Download the PHP package philiplambok/mikasa without Composer
On this page you can find all versions of the php package philiplambok/mikasa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download philiplambok/mikasa
More information about philiplambok/mikasa
Files in philiplambok/mikasa
Package mikasa
Short Description A Simple Model-View-Controller(MVC) PHP Framework
License
Informations about the package mikasa
Mikasa Framework
Mikasa Framework is A Simple MVC(Model View Controller) PHP Framework. Mikasa Framework is suitable with you who familiar with CodeIgniter or just new in this pattern.
Installation
You need to install xampp with >= php 5.6 and composer. The installation we have to option, you can just download or clone this repo.
or you can install with composer [Recomended]
or just download from stable releases
Usage
In MVC Pattern, you will familliar with Model (Class that interact with database), View (File that handle the UI) and Controller (Class that manage the logic and routing).
You can run the project using build in php server, with type this command :
That command will be running your code in localhost port 8000. You can open your browser and type to url box : http://localhost:8000
Controller
Here is an example of a basic controller.
All controller must be extends with class controller, and for using class controller you must use from namespace : use App\Core\Controller
. Like i said first, in mikasa framework, controller will be manage the route like CodeIgniter, so on that code will be running in 'http://localhost:8000'. yeah index() method is the default method.
Model
If your program need some logic or interact to database, you can just create the model.
All model will be extends with Database class. To connection with database, you can using query method in db attr: $this->db->query("query")
.
Views
All views located in dir : App/Views
. You can create some html file and show them with controller. If you need some data in database you just create the model.
Learning Resource
- Documentation (Comming Soon!)