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
WordPress-style post types for Laravel. Define news, events or pages fluently, and get admin pages, public archives and permalinks for each.
- Post types with labels, features (content, excerpt, media, meta, author, scheduling), taxonomies, statuses and scheduling.
- Meta fields with javaabu/meta, media with javaabu/mediapicker, content with javaabu/block-editor.
- Admin pages from
Route::postTypesAdmin()with javaabu/filters and javaabu/bulk-actions, in Blade or Inertia React. - Public archives, term archives and single pages from
Route::postTypes(), with configurable permalinks and overridable templates. - Permissions per post type through javaabu/permissions, for any guard and user model.
- Dhivehi and RTL; optional translations with javaabu/translatable.
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
Version History
Pre-releases (1)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.0-alpha.1 | ^8.4 | ^12.0 || | MIT |