makaroni / framework
The Makaroni PHP framework
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/makaroni/framework
Requires
- makaroni/core: ^1.3.0
README
Makaroni
Makaroni is an yummy framework made for PHP developers ;))
Features
- Simple and easy to use
- Routing system
- Validation
- QueryBuilder
- Migration
Requirements
PHP >= 8
Getting Started
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.
Directory trees
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
Routing
Validation
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 } }
QueryBuilder
Migration
Yum
Use yum for run your local webserver:
php yum
// PHP Development Server (http://localhost:8080) started...
Migrate
Use migrate for run your migrations
php migrate
Contributing
Send your pull requests for contributing.
License
MIT.