Appearance
Installation
Requirements
- PHP 8.4 or newer
- Laravel 13.36 or newer (the packages use its validation rule builders; the skeletons run on the current 13.x)
- An admin panel: Filament 5 or Laravel Nova 5 (Nova needs a license)
- A database: MySQL 8 or MariaDB on a server, SQLite for tests and sandboxes — or an existing WordPress database. Not PostgreSQL: the tables are WordPress's and some of the SQL that reads them is MySQL's, and nothing is tested there
- Node.js and npm for a Vue or React theme (the skeletons build with Vite 7); a Blade theme needs no build
Where the packages come from
kitloom packages are not on Packagist: they come from the kitloom Composer repository, https://, with the access from your purchase (see After your purchase). Every package is released at once, under one version — see the Changelog.
Starting from a skeleton
The fastest way to a working site is a skeleton: a plain Laravel 13 application with the kitloom core and the site route already wired, and the modules and themes you choose while it installs.
| Skeleton | Admin | Package |
|---|---|---|
| Filament skeleton | Filament 5 at / | kitloom/ |
| Nova skeleton | Nova 5 at / | kitloom/ |
The skeletons are public, so you can read what a site starts from: kitloom/filament-starter and kitloom/nova-starter, one commit per release. The packages they install are not: those come with your access.
With your access to the kitloom Composer repository saved (see After your purchase), one command creates the project:
bash
# Kitloom for Filament
composer create-project kitloom/filament-skeleton my-site --repository=https://packages.kitloom.dev --add-repository
# Kitloom for Nova
composer create-project kitloom/nova-skeleton my-site --repository=https://packages.kitloom.dev --add-repositoryFor Nova, Composer also asks for your Nova license at nova.: Nova is licensed by Laravel, not by kitloom.
Or with the Laravel installer, which takes the skeleton as a community starter kit. Tell Composer where the skeleton comes from, once per machine, then create the site:
bash
composer config --global repositories.kitloom composer https://packages.kitloom.dev
# Kitloom for Filament
laravel new my-site --using=kitloom/filament-skeleton --phpunit -v
# Kitloom for Nova
laravel new my-site --using=kitloom/nova-skeleton --phpunit -v- matters: without it the installer runs Composer behind a progress bar, where no question can be asked, and the install keeps the usual modules with no theme — the same as -- below. -- keeps the site's tests on PHPUnit: without it the installer moves them to Pest and prints warnings about a workflow file the kit does not have. Its other steps, a build of the npm dependencies and Laravel Boost, each have a flag that skips them (--, --).
create- installs the Composer packages, copies . to ., generates the key and links public/ to the uploads. Then it asks what the site keeps:
- Themes, none ticked. A theme keeps the modules it needs and says so: Pantry keeps the shop, Atelier the bookings.
- The active theme, one of those you kept, or none: then the site answers with JSON, for a front end of your own.
- Modules, group by group — Content, SEO, Marketing, Sales, Accounts & security, AI & API, Maintenance. The usual ones are ticked, and those the active theme suggests: comments, widgets, sliders, forms, emails, import and export, spreadsheets, search and replace, custom fields, post types, duplicate posts, future actions, media replace, SEO, redirections, security, two-factor sign-in, sign in as, the REST API, AI agents and AI Writer, the admin bar, backups and site health. Space ticks and unticks, Enter goes on.
- Whether to fill the site with the active theme's demo — posts, pages, menus and widgets to see it with (
--ordemo --answer it without asking).no- demo
Every Vue and React theme you keep is then built, without a question (npm install, npm run build; Node 20 or later): all of them, not only the active one, so switching themes in the admin needs no build. -- leaves it for later; on a machine without npm the install goes on and says the command to run. A Blade theme needs no build.
What you leave out is removed with composer remove, so your composer. names exactly what the site runs. The tests are yours too: phpunit. runs the tests/ and tests/ suites, with an example test in each (in tests/, the home page answers) — kitloom's own tests stay with the packages, and APP_ in phpunit. is only the theme a test falls back to, not a setting of the site. Then the migrations run (on SQLite by default; database/ is created if missing), the themes are built and the theme is activated — the kitloom_ option, the one place that says which theme is active. A Vue theme that is not built is not activated: build it (npm install && npm run build), then php artisan site:. The core is always there: the WordPress data model, the site and its themes engine, settings, users and roles, media, menus, shortcodes, the Modules screen, the admin menu editor and the visual editor.
Without questions — a script, a CI job — pass the answers instead:
bash
php artisan kitloom:install --no-interaction # the ticked modules, no theme
php artisan kitloom:install --modules=seo,forms --theme=journal --no-build
php artisan kitloom:install --all --theme=journal --demo # keep everything; Journal, with its demo(composer create- runs it the first way: no theme, the site answers with JSON, and the install's last line says how to add one.) -- keeps every module and theme and activates the one -- names. A -- that is not installed stops the install before it changes anything and names the package to require. A module left out comes back later with composer require kitloom/ (or -), and a theme with:
bash
composer require kitloom/journal-theme
npm install && npm run build # every Vue and React theme of the site
php artisan site:theme Journal # or Appearance → ThemesWhen the install is done, make the first administrator, with demo content on a site that has no posts or pages yet, and start the site:
bash
php artisan db:seed
composer run dev # server, queue worker, logs and Vite togetherThe seeder creates the user admin with the email SEED_ (admin@kitloom.) and the password SEED_ (password) — set both in . before seeding anything that is not your own machine. It then runs Word, the same code as php artisan wordpress:: the options WordPress needs, its roles, and the first user as its administrator. On a site still without posts or pages come last a home page, an About page, a post in the News category, a main menu, a redirect and an entry in the 404 log (with Redirections kept) and a comment; the Nova skeleton adds a contact form and a Contacts page with it (with Forms kept). After a theme's demo the seeder adds the administrator only, and the theme's front page, pages and menus stay as they are.
A site without the demo content — or on a server, where composer install -- leaves out the Faker the seeder's factory needs — gets its first administrator from php artisan kitloom:. It asks for the email and the password, and makes the user an administrator of the site and of a WordPress on the same database. For scripts: --, --, -- and --, with --. The password never goes on the command line: a script hands it over in KITLOOM_, and without it one is made up and shown once. The deploy kit's files say how to run it on each target.
Open http:// for the site and / (Filament) or / (Nova) for the admin panel.
APP_URL before the demo
APP_ in . is http://, the address of php artisan serve, and it stays so under Herd or Valet too. A theme's demo writes links and image addresses from it into the content, and db: writes WordPress's home and siteurl options from it. . appears only during the install, so for a site at another address say no to the demo (or pass --), set APP_, then run the theme's <name>: command and php artisan db:. A site that moves later changes them with Search & Replace, as WordPress would.
Every theme brings demo content of its own, with a <name>: command named in extra. of its composer.; kitloom: runs the active theme's. To run one by hand:
bash
php artisan portfolio:demo # Portfolio (Vue): disciplines, case studies, Work, Studio and Contact pages
php artisan marketplace:demo # Marketplace (Blade): the shop's demo products, pages, a contact form, a blog, menus and widgets
php artisan game-reviews:demo # Game Reviews (Vue): genres, platforms, reviews and player votesphp artisan shop: (kitloom/shop) adds only a demo shop — categories, products with reviews, orders, the shop, cart and checkout pages — whatever the theme.
npm run build builds every installed Vue or React theme, each into its own public/, with its SSR bundle in bootstrap/ (npm run build: is the same, for scripts that call it so). npm run dev serves the active theme — it asks the site, so start it again after a switch; with no theme, or a Blade one, Vite has nothing to serve and says so, and composer run dev goes on without it. php artisan inertia: then renders the pages on the server, and without it they are drawn in the browser (composer run dev goes without: under the Vite dev server there is no SSR). A Vue or React theme that is not built cannot be activated. See Installing Themes.
Adding kitloom to an existing application
1. Require the packages
Add the kitloom repository first — see Installing from a repository. Then the core: the WordPress data model, the settings, the public site, the Modules screen and roles.
bash
composer require kitloom/wp-schema kitloom/settings kitloom/site \
kitloom/modules kitloom/permissionsThen the admin packages of your panel:
bash
composer require filament/filament:"^5.0" \
kitloom/wp-schema-filament kitloom/settings-filament \
kitloom/site-filament kitloom/modules-filament kitloom/permissions-filamentbash
composer require laravel/nova:"^5.0" \
kitloom/wp-schema-nova kitloom/settings-nova \
kitloom/site-nova kitloom/modules-nova kitloom/permissions-novaEvery package registers its own service provider through Laravel's package discovery. There is nothing to add to bootstrap/.
Roles
An admin section asks the Gate whether the user may open it. Without kitloom/ nobody has decided, and kitloom answers no (KITLOOM_): the admin stays closed rather than open to every signed-in user. Keep the roles module, or set the variable to allow for a site that runs without roles on purpose.
2. Users are WordPress's
Accounts are rows of WordPress's users table, shared with WordPress: sign-in by email or login name, WordPress's password hashes. The wordpress user provider and hash driver come with kitloom/; the application picks them:
php
// config/auth.php (php artisan config:publish auth)
'providers' => [
'users' => [
'driver' => 'wordpress',
'model' => env('AUTH_MODEL', App\Models\User::class),
],
],ini
# .env
HASH_DRIVER=wordpressThe user model reads that table and holds the user's roles:
php
// app/Models/User.php
use Illuminate\Foundation\Auth\User as Authenticatable;
use Kitloom\Permissions\Concerns\HasRoles;
use Kitloom\WpSchema\Contracts\HasCustomFields;
use Kitloom\WpSchema\Contracts\HasMetaTable;
use Kitloom\WpSchema\Models\Concerns\AuthenticatesAsWordPressUser;
use Kitloom\WpSchema\Models\Concerns\IsWordPressUser;
class User extends Authenticatable implements HasCustomFields, HasMetaTable
{
use AuthenticatesAsWordPressUser, HasRoles, IsWordPressUser;
}Authenticates maps what Laravel and the panels call name, email and password to display_, user_ and user_; the key is ID.
3. The database
Run the migrations:
bash
php artisan migratekitloom/ creates WordPress's core tables — users, posts, comments, terms, their meta, options and links — column for column as WordPress defines them. A table that already exists is left alone. Modules add the tables they need on top.
An application that already has Laravel's own users table gets its accounts moved into WordPress's table by the move_ migration; they keep their IDs. Back up the database first. With kitloom/, the first user becomes the administrator unless someone already holds that role. A database with no users yet gets its first administrator from php artisan kitloom:.
To run on an existing WordPress database instead, see Running on a WordPress database.
4. Route the site
Every address that is not one of your own routes is a page of the site: a post, an archive, the search, a 404. Hand them to the site controller as the fallback route, with the page cache in front:
php
// routes/web.php
use Kitloom\Site\Http\CachePage;
use Kitloom\Site\Http\SiteController;
Route::fallback(SiteController::class)->middleware(CachePage::class);Your own routes still win. The same address answers a browser with the rendered page and a request with Accept: with the page's data. The cache keeps pages for guests while it is switched on in Settings → Cache; SITE_ is only its default (on with that many seconds, off at 0). kitloom/ also brings POST / and POST / for the theme's own sign-in form, and the REST root /. See Architecture.
5. Hook in the Modules screen
To let administrators switch modules off, add one line to bootstrap/, after create():
php
use Kitloom\Modules\Modules;
$app = Application::configure(basePath: dirname(__DIR__))
// ...
->create();
// Modules deactivated on the Modules screen are not loaded.
Modules::bootstrap($app);
return $app;Without this line the Modules screen still lists modules, but says that switching has no effect. See Enabling & Disabling.
6. Your own models
kitloom ships a model for every WordPress table. When the site needs its own behaviour, it extends the package model and lists the class in config/:
php
// app/Models/Post.php
use Kitloom\WpSchema\Models\Post as WordPressPost;
class Post extends WordPressPost
{
//
}php
// config/kitloom-wp-schema.php
return [
'models' => [
'post' => App\Models\Post::class,
'term_taxonomy' => App\Models\TermTaxonomy::class,
'user' => App\Models\User::class,
],
];Models you do not list stay the package's own. Relations inside the packages take the class from this registry, so $category- returns your Post. A module that only needs a relation or a scope on a model it does not own uses Wp instead of a subclass — see Data & Models.
7. The admin panel
The admin is open to whoever has something to do in it — a permission beyond reading the site (Kitloom\). Customers and subscribers stay out, as WooCommerce keeps them out of wp-, and use their account on the site:
php
// app/Models/User.php
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
use Kitloom\Permissions\AdminAccess;
class User extends Authenticatable implements FilamentUser, HasCustomFields, HasMetaTable
{
public function canAccessPanel(Panel $panel): bool
{
return app(AdminAccess::class)->allows($this);
}
}php
// app/Providers/NovaServiceProvider.php
protected function gate(): void
{
Gate::define('viewNova', fn (User $user): bool => app(AdminAccess::class)->allows($user));
}kitloom sections attach themselves to every Filament panel (Panel::) or to Nova (Nova::). The Filament skeleton also uses kitloom's sign-in, registration and profile pages — Kitloom\, Register and Kitloom\ — on its panel. See Filament and Nova.
8. A theme
Without a theme every page is returned as JSON — a headless site. To render HTML, install a theme:
bash
composer require kitloom/blade-theme # Blade, no JavaScript build
# or a Vue theme, which brings kitloom/site-inertia:
composer require kitloom/portfolio-themeThe Blade engine is part of kitloom/. Vue themes need kitloom/ (Inertia 3 on the server, @inertiajs/ 3 in the browser) and a Vite build (npm run build builds them all). Activate it on Appearance → Themes or with php artisan site:. See Installing Themes.
Running on a WordPress database
Point a connection at the WordPress database and give Laravel its table prefix. The prefix is read by the connection's prefix key; the skeletons' config/ reads it from DB_ for MySQL and MariaDB:
ini
DB_CONNECTION=mysql
DB_DATABASE=wordpress
DB_PREFIX=wp_php
// config/database.php, in the mysql (or mariadb) connection
'prefix' => env('DB_PREFIX', ''),Laravel adds the prefix to every table, so posts is wp_, also in kitloom's raw SQL. Run php artisan migrate once: WordPress's tables are already there and are left alone; modules add the tables they need. Back up the database first, as with any migration on a live site — and try it on a copy before: Migrate from WordPress goes through the move step by step.
The other way round works too. A database the site started on gets what WordPress's installer would leave — the siteurl, home, blogname and other options, WordPress's roles, and the first user as its administrator — with:
bash
php artisan wordpress:install --url=https://example.com --title="My site" [email protected]Without options it takes APP_, APP_ and the first user's email. Nothing already there is changed, so it can run again. After it, WordPress itself runs on the same database.
Installing from a repository
The kitloom packages come from the kitloom Composer repository. With the access from your purchase saved once per machine (see After your purchase), add it to an application that did not start from a skeleton:
bash
composer config repositories.kitloom composer https://packages.kitloom.dev
composer require kitloom/redirects kitloom/redirects-filamentComposer writes ^1., the version every kitloom package is released under, and composer update moves them together. The Nova packages also need Nova's own repository, https://, with your license.
Packages of your own in development
A module of your own is linked into the application from a path repository while you work on it. kitloom: adds one for packages/ to composer.:
json
"repositories": [
{ "type": "path", "url": "packages/*", "options": { "symlink": true } }
]Its packages have no version yet, so the application requires them as @dev; the kitloom packages they require still come from the kitloom repository. See Publishing a Module for when they leave the application.
Next steps
- Configuration — environment variables, settings and admin switches.
- Deployment — the site on a server: DigitalOcean step by step, and other hosts.
- Architecture — how a request becomes a page.
- Installing Modules.