Basic PHP 7+ MVC based routing framework.

Related tags

Miscellaneous QPHP
Overview

QPHP MVC Based Api Router

QUICK PHP 7+ MVC based router for create api. Works with :

  • Docker
  • PHP Built-in Server
  • Nginx
  • Apache2

Specs

  • Create a service api controller. looks like standard MVC
  • Simplified PDO helper. example in app\controllers\Svc.php
  • Support base URL/PATH like www.example.com/en/home/home or www.example.com/mydir/home/home. look here: app/config.php
  • Support default controller or/and action example www.example.com/ means home controller and home action.
  • Support preselect controller. route only one controller's actions
  • Support send variables to views form actions.
  • Render custom view
  • Execute custom action

Install

PHP 7+ required.

Usage with PHP Built-in Server

  • php -S localhost:80 -t ./
  • or work with our router for custom redirects look router.php :
  • php -S localhost:80 router.php

Usage with Nginx

  • for ngnix: put your server{} tag inside :
location / {
    try_files $uri $uri/ /index.php?$query_string;
}

Usage with Apache

  • activate RewriteEngine
  • apache ready (look .htaccess file)

Usage with Docker

  • Look dev.Dockerfile and docker-compose.yml
  • docker compose up
  • docker compose up --build --force-recreate
You might also like...
Basic class library to read, write and view files using PHP.

File Basic class library to read, write and view files using PHP. Supported PHP Versions Build Status (dev) Main Aim of The Library The main aim of th

PHP library with basic objects and more for working with Facebook/Metas Conversions API

PHP library with basic objects and more for working with Facebook/Metas Conversions API Installation The easiest way to install this library is by ins

this starter kite inspired by laravel & Geo and mvc pattern. it's wrap for Wordpress built in classes.

WordpressStarterKite Introduction Built With Prerequisite Directory Structure Guidelines Getting Started Authors Introduction this starter kite inspir

A research raw data repository for researchers of Arba Minch University built using Codeigniter which follows MVC architecture. The front-end is build using Bootstrap.

Arba Minch University Dataset Repository This system is a research dataset repository for Arba Minch University researchers and is build using Codeign

MVC API that feeds on Throwable instances

STDERR MVC API Table of contents: About Configuration Binding Points Execution Initialization Handling Installation Unit Tests Reference Guide Specifi

FFCMS 3 version core MVC architecture. Build-on use with ffcms main architecture builder.

FFCMS 3 version core MVC architecture. Build-on use with ffcms main architecture builder.

All the basic features of accounting sotware

Anzarkhan.com Invoice Anzarkhan.com Invoice is an open source accounting and invoicing solution built with PHP. For more information, visit http://www

AlphaID Helper - Basic, Simple and Lightweight

AlphaID Helper - Basic, Simple and Lightweight

just the most basic functions of the website.

cybergrungewebsite just the most basic functions of the website. upload handling the artists folder contains custom upload.php which handles uploads.

Owner
Kamil Yesil
Kamil Yesil
YL MVC Structure (PHP MVC) is a pattern made in PHP used to implement user interfaces, data, and controlling logic.

YL MVC Structure (PHP MVC) is a pattern made in PHP used to implement user interfaces, data, and controlling logic. It is built based on the combination of ideas from the Yii framework and Laravel framework (yl).

Tan Nguyen 3 Jan 3, 2023
Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC from scratch

This Project is based on course CSC 3215. Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC (Model–View–Controller) from scratch. Just learning about web technologies, Not focusing on UI (Bootstrap or other 3rd-Party UI libraries or frameworks).

Alvi Hasan 5 Sep 21, 2022
Mvc - Phalcon MVC Examples

Phalcon MVC Examples These are examples of MVC file structures you can employ using Phalcon >= 3.0.x For further documentation, check out the Phalcon

The Phalcon PHP Framework 804 Jan 3, 2023
A panel created based on the Zend Framework MVC framework

?? Painel MyZap2.0 Com ZendFramework 3 Descrição Esse é um painel criado como estudo pessoal do framework (Zend Framework MVC) não foi criado para fin

Jonathan Henrique 9 Jun 10, 2022
this is a PHP framework like Laravel based on MVC structure

PHP-MVC-framework v 1-0-0 this is a PHP framework like Laravel based on MVC structure The "App" folder is the main part of this framework Models, View

Yousef Jafari 1 Aug 4, 2022
A Magento 2 module that allows for creating discrete PDP (Product Detail Pages) page layouts for customers landing on the site from a PPC (Pay Per Click) link/ad by allowing routing to the same pages using a `/ppc/` prefix in the URL path.

A Magento 2 module that allows for creating discrete PDP (Product Detail Pages) page layouts for customers landing on the site from a PPC (Pay Per Click) link/ad by allowing routing to the same pages using a `/ppc/` prefix in the URL path.

null 16 Nov 11, 2022
A Simple MVC PHP Framework, integrated with lot of features such as Session, Cookies, Migrations, Database, Factories, Seeding, Bootstrap and Tailwind CSS

Navite A Simple MVC PHP Framework, integrated with lot of features such as Session, Cookies, Migrations, Database, Factories, Seeding, Bootstrap and T

Celionatti 2 Aug 22, 2022
Aqui são distribídas apostilas sobre alguns assuntos como PHP, PDO, MySQL, PHPOO, MVC, etc

Apostilas de Programação Aqui são distribídas apostilas sobre alguns assuntos como PHP, PDO, MySQL, PHPOO, MVC, etc URL deste repositório https://gith

Ribamar FS 50 Dec 24, 2022
Livro de introdução ao PHP orientado a objetos com MVC de forma prática

phpoo-livro Livro de introdução ao PHP orientado a objetos usando MVC com rotas. Porque de forma prática, por conta da criação, passo a passo, de um a

Ribamar FS 8 Dec 24, 2022
Basic User login & signup in php with JavaScript form validations

User login & signup in php User login & signup in PHP-MySQL with JavaScript form validations Project Details : Project Name : User Registration & Logi

Swapnil Zambare 2 Sep 30, 2022