PHP Classes
elePHPant
Icontem

Push: Rapid Web application development framework

Recommend this page to a friend!
  Info   View files Example   View files View files (75)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2016-03-29 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 203 All time: 7,805 This week: 936Up
Version License PHP version Categories
push 0.1.0MIT/X Consortium ...5.5PHP 5, Libraries, Traits
Collaborate with this project Author

push - github.com

Description

This package implements a rapid Web application development framework.

It provides a router class that can be configured to assign different URL patterns to given closure functions that will handle the request responses when matching URLs are accessed.

The packages provides many general purpose classes for Web application development, as well useful traits for using in other classes for debugging and handing events.

Picture of Jeremiah Ogbomo
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

Details

Push PHP MVC Framework

A Minimal PHP platform for rapid web application development.

Installation

It's most recommended to utilize Composer for installation.

$ composer require push/push "@dev"

This installs Push and it requires PHP 5.5.0 or newer.

Usage

Create an index.php file with the following contents:

<?php

include_once __DIR__.'/vendor/autoload.php';

$app = new Push\Application();

// Hello world from Hello controller
$app->router->any('/hello/:$input', 'Hello@index');

// Hello world from Callback
$app->router->get('/:$input', function($req, $res){
	$content = '<h1>Hello, '.$req['input'].'!</h1>';
	$content .= '<h2>from Route callback..</h2>';
	$content .= '<a href="hello/world">Goto Hello Controller</a>';

	$res->write($content);
});

$app->run();

The rest of the Application's configurations and structure is described in th example's directory.

You may quickly test this using the built-in PHP server:

$ php -S localhost:3000

Go to http://localhost:3000 to see Push framework in action.

Credits

License

The Push Framework is licensed under the MIT license. See License File for more information.

  Files folder image Files  
File Role Description
Files folder imageexample (3 files, 2 directories)
Files folder imagePush (5 files, 13 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License
Plain text file push.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:203
This week:0
All time:7,805
This week:936Up