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 Reac
dev-main / 1.x-dev
2026-11-10 09:59 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/database: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/routing: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- illuminate/validation: ^12.0 || ^13.0
- illuminate/view: ^12.0 || ^13.0
- javaabu/block-editor: ^1.0@dev
- javaabu/bulk-actions: ^1.0@dev
- javaabu/filters: ^1.0@dev
- javaabu/forms: ^2.0@dev
- javaabu/manifest: ^1.0@dev
- javaabu/mediapicker: ^1.0@dev
- javaabu/meta: ^1.0@dev
- javaabu/permissions: ^3.0@dev
- javaabu/stencil: ^1.0@dev
Requires (Dev)
- inertiajs/inertia-laravel: ^2.0
- javaabu/boost-javaabu-guidelines: ^1.4
- javaabu/dynamic-menubuilder: ^1.0@dev
- javaabu/translatable: ^3.0@dev
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0 || ^11.0
- phpunit/phpunit: ^11.5.3 || ^12.5.8
Suggests
- inertiajs/inertia-laravel: Renders the admin and public pages with Inertia React when post-types.views is inertia (^2.0)
- javaabu/dynamic-menubuilder: Add posts and post type archives to menus (^1.0)
- javaabu/translatable: Posts and terms in several languages (^3.0)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-15 10:55:22 UTC
README
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.