Recommend this page to a friend! |
Download .zip |
Info | Example | View files (75) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-03-29 (7 months ago) | Not enough user ratings | Total: 203 | All time: 7,805 This week: 936 |
Version | License | PHP version | Categories | |||
push 0.1.0 | MIT/X Consortium ... | 5.5 | PHP 5, Libraries, Traits |
Collaborate with this project | Author | |
push - github.com Description This package implements a rapid Web application development framework. |
A Minimal PHP platform for rapid web application development.
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.
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.
The Push Framework is licensed under the MIT license. See License File for more information.
Files |
File | Role | Description | ||
---|---|---|---|---|
example (3 files, 2 directories) | ||||
Push (5 files, 13 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License | ||
push.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files | / | example |
File | Role | Description | ||
---|---|---|---|---|
App (4 directories) | ||||
config (1 file) | ||||
.htaccess | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
index.php | Example | Example script |
Files | / | example | / | App |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
includes (1 file) | ||||
Model (1 file) | ||||
View (1 file) |
Files | / | Push |
File | Role | Description | ||
---|---|---|---|---|
Components (8 files) | ||||
Core (6 files) | ||||
Exceptions (7 files) | ||||
Extensions (3 files) | ||||
Http (8 files) | ||||
Includes (2 files) | ||||
Interfaces (3 files) | ||||
Middlewares (3 files) | ||||
Modules (2 files) | ||||
Services (1 file) | ||||
Traits (2 files) | ||||
Utils (10 files) | ||||
Views (2 files) | ||||
Application.php | Class | Class source | ||
Controller.php | Class | Class source | ||
Middleware.php | Class | Class source | ||
Model.php | Class | Class source | ||
View.php | Class | Class source |
Files | / | Push | / | Components |
File | Role | Description |
---|---|---|
Form.php | Class | Class source |
ImageHandler.php | Class | Class source |
Mail.php | Class | Class source |
Pagination.php | Class | Class source |
Share.php | Class | Class source |
Theme.php | Class | Class source |
UploadHandler.php | Class | Class source |
Uploads.php | Class | Class source |
Files | / | Push | / | Core |
File | Role | Description |
---|---|---|
Cache.php | Class | Class source |
Config.php | Class | Class source |
MiddlewareObject.php | Class | Class source |
MiddlewareQueue.php | Class | Class source |
Module.php | Class | Class source |
Service.php | Class | Class source |
Files | / | Push | / | Exceptions |
File | Role | Description |
---|---|---|
ApiException.php | Class | Class source |
MethodNotAllowedException.php | Class | Class source |
NotFoundException.php | Class | Class source |
OfflineException.php | Class | Class source |
SkipException.php | Class | Class source |
StopException.php | Class | Class source |
ViewException.php | Class | Class source |
Files | / | Push | / | Extensions |
File | Role | Description |
---|---|---|
ImageHandler.php | Class | Class source |
Install.php | Class | Class source |
Mimes.php | Class | Class source |
Files | / | Push | / | Http |
File | Role | Description |
---|---|---|
Environment.php | Class | Class source |
Request.php | Class | Class source |
Response.php | Class | Class source |
Route.php | Class | Class source |
RouteObject.php | Class | Class source |
Router.php | Class | Class source |
Upload.php | Class | Class source |
Uri.php | Class | Class source |
Files | / | Push | / | Includes |
File | Role | Description |
---|---|---|
functions.php | Class | Class source |
index.html | Doc. | Documentation |
Files | / | Push | / | Interfaces |
File | Role | Description |
---|---|---|
ApplicationInterface.php | Class | Class source |
MiddlewareInterface.php | Class | Class source |
ViewInterface.php | Class | Class source |
Files | / | Push | / | Middlewares |
File | Role | Description |
---|---|---|
Database.php | Class | Class source |
Flash.php | Class | Class source |
Session.php | Class | Class source |
Files | / | Push | / | Traits |
File | Role | Description |
---|---|---|
Debugger.php | Class | Class source |
Events.php | Class | Class source |
Files | / | Push | / | Utils |
File | Role | Description |
---|---|---|
Bench.php | Class | Class source |
Bread.php | Class | Class source |
Collection.php | Class | Class source |
Encrypt.php | Class | Class source |
Num.php | Class | Class source |
Set.php | Class | Class source |
Str.php | Class | Class source |
Time.php | Class | Class source |
Timer.php | Class | Class source |
Uri.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.