Makaroni is an yummy framework made for PHP developers ;))
- Simple and easy to use
- Routing system
- Validation
- QueryBuilder
- Migration
PHP >= 8
via Composer:
composer create-project makaroni/framework project-name
OR
download last release and run composer install
.
Now start the magic!
*NOTE: To see an example of a blog application, go to the blog
branch.
img
: have makaroni logo imagemain
: this directory have your application codesconfig
: there are config.php file for config your apppublic
: index.php directoryroute
: define your routes in route.phpSystem
: directory for controllers and models (write your helper methods in helpers.php)view
: create your views hereMigration
: write your migrations here
You can validate your inputs with validate
method, which gives array of arrays for validation:
use Makaroni\Framework\Validation\Validation;
class PostController
{
public function store()
{
$title = request()->input('title');
(new Validation)->validate([
['title', $title, 'words'],
]);
// continues if inputs are valid
}
}
Use yum
for run your local webserver:
php yum
// PHP Development Server (http://localhost:8080) started...
Use migrate
for run your migrations
php migrate
Send your pull requests for contributing.
MIT.