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 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: 14 This week: 14All time: 11,337 This week: 6Up
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  
Name: Nahidul Hasan <contact>
Classes: 15 packages by
Country: Bangladesh Bangladesh
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

  Files folder image Files (29)  /  app  
File Role Description
Files folder imagecontrollers (2 files)
Files folder imagemodels (1 file)
Files folder imageviews (6 files, 1 directory)
  Accessible without login Plain text file routes.php Example Example script

  Files folder image Files (29)  /  app  /  controllers  
File Role Description
  Plain text file PagesController.php Class Class source
  Plain text file UsersController.php Class Class source

  Files folder image Files (29)  /  app  /  models  
File Role Description
  Accessible without login Plain text file user.php Aux. Configuration script

  Files folder image Files (29)  /  app  /  views  
File Role Description
Files folder imagepartials (3 files)
  Accessible without login Plain text file about-culture.view.php Aux. Configuration script
  Accessible without login Plain text file about.view.php Aux. Configuration script
  Accessible without login Plain text file contact.view.php Aux. Configuration script
  Accessible without login Plain text file index.view.php Example Example script
  Accessible without login Plain text file user.view.php Aux. Configuration script
  Accessible without login Plain text file welcome.view.php Aux. Configuration script

  Files folder image Files (29)  /  app  /  views  /  partials  
File Role Description
  Accessible without login Plain text file footer.php Aux. Configuration script
  Accessible without login Plain text file head.php Aux. Configuration script
  Accessible without login Plain text file nav.php Aux. Configuration script

  Files folder image Files (29)  /  core  
File Role Description
Files folder imagedatabase (2 files)
  Plain text file App.php Class Class source
  Accessible without login Plain text file bootstrap.php Example Example script
  Plain text file Request.php Class Class source
  Plain text file Router.php Class Class source

  Files folder image Files (29)  /  core  /  database  
File Role Description
  Plain text file Connection.php Class Class source
  Plain text file QueryBuilder.php Class Class source

  Files folder image Files (29)  /  docker  
File Role Description
Files folder imagenginx (1 file)
Files folder imagephp (2 files)

  Files folder image Files (29)  /  docker  /  nginx  
File Role Description
  Accessible without login Plain text file default.conf Data Auxiliary data

  Files folder image Files (29)  /  docker  /  php  
File Role Description
  Accessible without login Plain text file custom.ini Data Auxiliary data
  Accessible without login Plain text file Dockerfile Data Auxiliary data

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:14
This week:14
All time:11,337
This week:6Up