1.0.3 • Published 5 years ago

octopi v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Octopi

Octopi is a PHP framework for robust applications. It includes:

  • A routing system
  • Models & views
  • More soon!

Routing

Octopi routing uses a URI and a Closure to provide an easy way to Route your website.

$Route::get('/', function() {
    return 'Hello, world!';
});

You may pass arguments as such:

$Route::get('/:page', function($page) {
    return $page;
});

At /hello, it would output:

hello

It supports the current methods:

  • $Route::post
  • $Route::get

Contributing

Hey! Thanks for taking the time to contribute! If you think there is an error, feel free to report it via a pull request or issue.