hero

Mantle

Mantle is a framework for building large, robust websites and applications with WordPress

Get Started →

Simplicity First

Mantle believes that enterprise-level WordPress development is possible and should have a simple and delightful syntax.

Inspired by Laravel

Enjoy the flexibility of the Laravel Framework inside of WordPress with a baked-in WordPress integration.

Modern Toolkit

Includes a powerful ORM, simple to use routing, blade-powered templating, and a fast independent testing library for WordPress out of the box.

Route::get( '/blog/{post}', 'Post_Controller@show' );

Route::rest_api(
	'namespace/v1',
	'/route-to-use',
	function() {
		return [ ... ];
	}
);
/**
 * Display the post.
 *
 * @param Post $post Post object.
 * @return Response
 */
public function show( Post $post ) {
	return response()->view( 'single' )
		->with( 'categories', $post->categories );
}

# Flexible RESTful Routing

Use a Symfony-powered routing framework on top of WordPress to respond to requests in your application. Respond to requests using native PHP or Blade templates, both supporting a set of powerful template helpers to help DRY up your templates.

# Interface with Data Models

Work with actual models to interact with data in your application. Mantle streamlines WordPress development to provide a uniform interface to work with core WordPress data structures. Define relationships between models and data structures bringing WordPress into the 21st century.

# Test Framework

Use the independent Mantle Test Framework to make your code testable and unit tests simple to write. Supports a drop-in replacement for core testing framework that will run faster and allow IDE-friendly assertions.

Mantle is a heavily Laravel-inspired framework for improving the WordPress developer experience. It aims to make the development process delightful for the developer. WordPress can already accomplish great things out of the box. Mantle aims to make it easier and simpler to use. Code should be fluent, reusable, easy to read, testable, and delightful to work with.

Get started here or visit our GitHub (opens new window) to contribute.