https://github.com/jogboms/push
A minimal PHP-driven platform for rapid web application development
https://github.com/jogboms/push
Last synced: 3 months ago
JSON representation
A minimal PHP-driven platform for rapid web application development
- Host: GitHub
- URL: https://github.com/jogboms/push
- Owner: jogboms
- License: mit
- Created: 2016-02-18T12:59:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T17:02:50.000Z (over 9 years ago)
- Last Synced: 2025-06-02T02:50:00.716Z (4 months ago)
- Language: PHP
- Size: 116 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Push PHP MVC Framework
A Minimal PHP platform for rapid web application development.
## Installation
It's most recommended to utilize [Composer](https://getcomposer.org/) for installation.
```bash
$ 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
router->any('/hello/:$input', 'Hello@index');// Hello world from Callback
$app->router->get('/:$input', function($req, $res){
$content = 'Hello, '.$req['input'].'!
';
$content .= 'from Route callback..
';
$content .= 'Goto Hello Controller';$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:
```bash
$ php -S localhost:3000
```Go to http://localhost:3000 to see Push framework in action.
## Credits
- [Jeremiah Ogbomo](https://github.com/jogboms)
## License
The Push Framework is licensed under the MIT license. See [License File](LICENSE.md) for more information.