Alter introduces a new way to develop WordPress Themes. With Models, Routes and Views you can easily develop large WordPress applications or websites.
Route::get('/cars', function() {
$this->render('cars.index', ['car' => Car::all()]);
});
Alter provides a simple router built in the WordPress rewrite API using Fastroute that maps route callbacks to specific HTTP request methods and URIs.
Alter has easy-to-use request and response abstractions that let you inspect and manipulate HTTP requests, method, status, URI, headers, cookies, and body.
Alter uses Twig as built-in template engine, so you can create powerful templates using layouts, template blocks, etc.
Alter creates a binding from Models to Post Types to you can easily create custom fields and retrieve items from the models through a very simple API.
To get started with Alter you will need to create a new theme by running this command in your wp-content/themes
directory:
composer create-project alterfw/alter mytheme
This command will create a bootstrap project to getting started with Alter. See more about Alter in the Docs.