New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

javaabu/post-types

WordPress-style post types for Laravel: fluent definitions with taxonomies, statuses and scheduling, javaabu/meta fields, javaabu/mediapicker media and javaabu/block-editor content, admin pages with filters and bulk actions, and public archives with configurable permalinks, in Blade and Inertia React
55
Install
composer require javaabu/post-types:v1.0.0-alpha.1
Latest Version:v1.0.0-alpha.1
PHP:^8.4
Laravel:12 · 13
License:MIT
Last Updated:Nov 24, 2026
Links: GitHub  ·  Packagist
Maintainer: dash8x

Post Types

Tests codecov Latest Version on Packagist License: MIT

WordPress-style post types for Laravel. Define news, events or pages fluently, and get admin pages, public archives and permalinks for each.

use Javaabu\PostTypes\Facades\PostTypes;
use Javaabu\PostTypes\PostType;
use Javaabu\PostTypes\Taxonomy;
use Javaabu\Stencil\Fields\TextInput;

// AppServiceProvider::boot()
PostTypes::taxonomy(Taxonomy::make('categories')->hierarchical());

PostTypes::register(
    PostType::make('news')
        ->labels('News article', 'News')
        ->supports(['content', 'excerpt', 'media', 'meta'])
        ->taxonomies(['categories'])
        ->metaFields([TextInput::make('subtitle')])
        ->permalink('{year}/{month}/{slug}')
);

// routes/web.php
Route::postTypesAdmin(['guard' => 'web_admin', 'prefix' => 'admin', 'name' => 'admin.']);
Route::postTypes();

Documentation

See the docs, or llms.txt for AI assistants.

License

The MIT License (MIT). See License File.

Related Packages

javaabu/bulk-actions

Fluent bulk actions for Laravel: each authorized through the Gate with can(), op...

105 0
javaabu/widgets

WordPress classic-style widgets for Laravel: widget classes with javaabu/stencil...

55 0
javaabu/form-builder

Dynamic forms for Laravel: versioned form definitions and entries in the databas...

33 0
javaabu/stencil

Fluent form schemas for Laravel: define a form once in PHP and render it with Bl...

506 0

Version History

Pre-releases (1)
Version Released PHP Laravel License
v1.0.0-alpha.1 ^8.4 ^12.0 || ^13.0 MIT