2017 © Pedro Peláez
 

library webx

Light php framework to illustrate the implementation of a web framework with static routes for study purposes

image

longanime/webx

Light php framework to illustrate the implementation of a web framework with static routes for study purposes

  • Monday, July 23, 2018
  • by michale-lins
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

, (*1)

Welcome to Webx (tiny) php framework

Tiny and simple framework to illustrate an implementation of a web framework with static routes using Php | Study purposes for programming classes., (*2)

This was a design POC architecture for academic use forged as a gift for a friend teaching classes in web programming., (*3)

You may use it as it is. There is no plan on continuing this project (well...who knows in the future!), (*4)

Feel free to send comments., (*5)

Installation

composer require longanime/webx

Architectre

Simple View-Controller (no model) with static route approach., (*6)

Folder structure:, (*7)

|-app/ root folder of your application |--actions/ your actions classes |--view/ your view classes (matching actions' names) |-actions.php Build your actions and rounting |-app.php Your application configuration |-index.php App caller, (*8)

Usage

Create an app.php file in your root folder and inialize a new App., (*9)

$app = new App( "app-name" );

You can create your actions/rountings direct inside the app.php file or you could create an actions.php file and inside of it require individual controllers (no enforced, for now)., (*10)

When creating, for each action it will seek for 1. an action class: a file under /app/actions/[ActionName].class.php 2. a view: a file under /app/views/[ActionName].php, (*11)

If the action does not needs a view, just create the class file under (1), (*12)

There is an example app called webx-app available on github., (*13)

Support or Contact

You can reach me at michael at malvins dot studio, (*14)

Good Coding!, (*15)

The Versions

23/07 2018

dev-master

9999999-dev

Light php framework to illustrate the implementation of a web framework with static routes for study purposes

  Sources   Download

MIT

The Requires

  • php ^5.5

 

by Michael Lins

23/07 2018

v1.1

1.1.0.0

Light php framework to illustrate the implementation of a web framework with static routes for study purposes

  Sources   Download

MIT

The Requires

  • php ^5.5

 

by Michael Lins

22/07 2018

v1.0

1.0.0.0

Light php framework to illustrate the implementation of a web framework with static routes for study purposes

  Sources   Download

MIT

The Requires

  • php ^5.5

 

by Michael Lins