PHP Classes

How to Learn about MVC frameworks with a PHP MVC Project Using the Package Simplex: Example application based on a MVC framework

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-08-09 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 44 All time: 10,834 This week: 43Up
Version License PHP version Categories
simplex 1.0.0The PHP License5PHP 5, Libraries, Design Patterns
Description 

Author

This package provides an example application based on a MVC framework.

It provides a base framework to process HTTP requests using a router class that can forward the processing to controller classes.

The package also provides an example application that uses the framework to implement a simple site with pages and registered users.

Picture of Nahidul Hasan
  Performance   Level  
Innovation award
Innovation award
Nominee: 7x

 

Example

<?php


 
require 'vendor/autoload.php';
 require
'core/bootstrap.php';

 use
App\Core\Router;
 use
App\Core\Request;

 
Router::load('app/routes.php')
    ->
direct(Request::uri(), Request::method());


Details

simplex

Latest Stable Version Total Downloads Latest Unstable Version License

The Simplex Framework is very simple and easy. It will be very helpful for the developers who are the beginner in PHP and want to learn Framework

Installation

Server Requirements

The Simplex framework has a few system requirements.You will need to make sure your server meets the following requirements:

  • PHP >= 7.0
  • PDO PHP Extension

Installing Simplex

Run the command


composer create-project nahidulhasan/simplex YOUR_PROJECT_NAME

Run the Project

If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, Follow the steps described in below:

  • Go to your project directory:
 cd YOUR_PROJECT_NAME

  • Run the command :
php -S 127.0.0.1:4321

  • Now browse the project
http://127.0.0.1:4321

Run the project using Docker:

Now run the following command from your terminal one by one. Running the commands be sure that you have installed docker.You will get install instructions from this link

docker-compose build

docker-compose up -d

Now browse project

http://localhost:9003

License

Simplex is open-sourced software licensed under the MIT license


  Files folder image Files (29)  
File Role Description
Files folder imageapp (1 file, 3 directories)
Files folder imagecore (4 files, 1 directory)
Files folder imagedocker (2 directories)
Accessible without login Plain text file .env.Example Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file config.php Aux. Configuration script
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:44
This week:0
All time:10,834
This week:43Up