Every Laravel developer runs into the same issue.
You find yourself building the same kinds of apps and websites over and over again. And you find yourself writing the same kind of code over and over again. Whether it's SEO, forms, media, security, accessibility, performance, or any other element a website needs, it's an absolute pain to deal with.
While AI has certainly helped reduce the amount of code we have to write by hand, the reality is that managing all that code is still a chore.
ArtisanPack UI, however, takes care of all of that for you.
As of the time of this blog post, there are 40+ Laravel packages for you to use, either as a group or individually, ranging from user interface components to SEO to security to performance to even full-fledged Laravel starter kits and so much more.
The end goal is to make your life as a developer easier, reducing the amount of code you need to write and maintain.
Getting started with ArtisanPack UI, however, can be a challenge. Where exactly is the best place to begin?
That's exactly what we'll cover in this blog post. By the end, you'll know your next step.
So let's dive in!
How ArtisanPack UI fits together
As I mentioned before, ArtisanPack UI packages work both together and individually, depending on what you need for your app.
At the heart of it all is the Core package, which keeps supported packages' configuration files in one config file when you publish them for editing. It also makes it easier to install other ArtisanPack UI packages.
Then there are the front-end packages for Livewire, React, and Vue. These add a number of reusable components you can use to make your apps look consistent. And you can customize the styles of the components to match what you need to build.
From there, you can add any package you want and need for what you're building. Don't need the performance package but do need the SEO package? No problem. It will work just fine.
And you can use the Hooks package so you can extend packages through actions and filters without having to fork a package or edit any package files.

You can learn more in our overview of the full ArtisanPack UI ecosystem.
Before you start
Before you get started with any ArtisanPack UI package, you first need to make sure that your project satisfies the requirements.
For PHP versions, really anything that's 8.3 and above will work perfectly fine.
For Laravel versions, use Laravel 12 or later.
You will need Composer, obviously, and for any packages that have front-end components, you'll need Node 20+ and npm. Also, you'll need to be using Tailwind CSS v4 and above, along with DaisyUI 5.
Finally, if you're using Livewire, you'll need Livewire 3.6 or above. If you're using React, you'll need React 18 or 19, and you'll need Vue 3.5 and above if you're using Vue. Both React and Vue also need Inertia 2.
Once you've met those requirements, you'll be ready to roll with ArtisanPack UI.
Step 1: Choose your starting point
As I mentioned before, there are multiple ways to get started with ArtisanPack UI: use a starter kit for a fresh project or add it to an existing app. Here's how to do both of them.
Starting a new project: use a starter kit
The fastest way to start is with a starter kit.
There are three of them. They're the same app, built for three different frontends. Pick the one you write in.
Every kit comes with:
- Laravel 13, Tailwind CSS 4, and DaisyUI 5
- Core, Accessibility, and Security already installed
- Full authentication, including login, registration, password reset, email verification, and password confirmation
- User settings for profile, password, and appearance, with light, dark, and system themes
- Responsive layouts with a sidebar, mobile navigation, and toast notifications
- Pest tests, ready to run
- An optional modular structure, if you like organizing your app by feature
That's the setup work most projects start with, already done.
composer create-project artisanpack-ui/livewire-starter-kit my-app
cd my-app
composer dev
The Livewire kit is built on Livewire 3, Volt, and the ArtisanPack UI Livewire components.
To change your brand colors, edit resources/css/artisanpack-ui-theme.css.
composer create-project artisanpack-ui/react-starter-kit my-app
cd my-app
composer dev
The React kit runs on Inertia 2 and React 19, with the @artisanpack-ui/react components.
It also includes typed routes through Laravel Wayfinder. Want server-side rendering? Run `composer dev:ssr` instead of `composer dev`.
composer create-project artisanpack-ui/vue-starter-kit my-app
cd my-app
composer dev
The Vue kit runs on Inertia 2 and Vue 3.5, with the `@artisanpack-ui/vue` components.
It also includes typed routes through Laravel Wayfinder. Want server-side rendering? Run `composer dev:ssr` instead of `composer dev`.
During setup, the installer runs your migrations.
Then it asks which extra ArtisanPack UI packages you want. Hooks, Media Library, Code Style, and more are on the list.
Pick what your project needs, or skip it for now. You can add packages any time.
When it's done, `composer dev` starts everything in one terminal: the Laravel server, a queue worker, a log viewer, and Vite.
Open your browser, register an account, and you're in.
Each kit has its own docs covering configuration, testing, deployment, and more:
Adding to an existing app
If you already have an app, you don't need to start over to use ArtisanPack UI.
What you install depends on your frontend.
The Livewire components ship as a Composer package. The React and Vue components ship on npm.
That means React and Vue apps install Core on their own. Core is the PHP side that every other package plugs into.
Install the components, then run the installer:
composer require artisanpack-ui/livewire-ui-components
php artisan livewire-ui-components:install
npm run dev
That one composer require brings more than just components.
It also installs Core, Hooks, Icons, Accessibility, and Security. The foundation is in place from the start.
The installer walks you through the rest of the setup.
Then drop your first component into any Blade view:
<x-artisanpack-button color="primary">Get a quote</x-artisanpack-button>
The components work with both Livewire 3.6+ and Livewire 4.
Install Core with Composer, then the components with npm:
composer require artisanpack-ui/core
npm install @artisanpack-ui/react @artisanpack-ui/react-laravel @artisanpack-ui/tokens daisyui
That's three ArtisanPack UI packages, each with its own job:
@artisanpack-ui/reactis the component library, with 56+ components.@artisanpack-ui/react-laravelconnects them to Inertia, with helpers for forms, layouts, auth, and toasts.@artisanpack-ui/tokensholds the shared design tokens: colors, spacing, typography, and more.
Next, add the tokens to your Tailwind entry file. That's usually resources/css/app.css:
@import "tailwindcss";
@import "@artisanpack-ui/tokens/css";
Then import a component and use it:
import { Button } from '@artisanpack-ui/react';
export default function Welcome() {
return <Button color="primary">Get a quote</Button>;
}
Want light, dark, and system themes? Wrap your app in ThemeProvider. The React docs cover that, along with the Inertia form helpers.
Install Core with Composer, then the components with npm:
composer require artisanpack-ui/core
npm install @artisanpack-ui/vue @artisanpack-ui/vue-laravel @artisanpack-ui/tokens daisyui
That's three ArtisanPack UI packages, each with its own job:
@artisanpack-ui/vueis the component library, with 58 components.@artisanpack-ui/vue-laravelconnects them to Inertia.@artisanpack-ui/tokensholds the shared design tokens: colors, spacing, typography, and more.
Next, add the tokens to your Tailwind entry file. That's usually `resources/css/app.css`:
@import "tailwindcss";
@import "@artisanpack-ui/tokens/css";
Then register both plugins in `resources/js/app.ts`:
import { createArtisanPackUI } from '@artisanpack-ui/vue';
import { createArtisanPackUILaravel } from '@artisanpack-ui/vue-laravel';
// Inside createInertiaApp's setup()
app.use(createArtisanPackUI());
app.use(createArtisanPackUILaravel());
Now you can use components on any page:
<script setup lang="ts">
import { Button } from '@artisanpack-ui/vue';
</script>
<template>
<Button color="primary">Get a quote</Button>
</template>
Watching your bundle size? Import by category instead, like @artisanpack-ui/vue/form, to load only what you use.
Bring your package settings into one place
Whichever frontend you picked, finish with two Core commands:
php artisan vendor:publish --tag=artisanpack-config
php artisan artisanpack:scaffold-config
The first creates config/artisanpack.php.
The second finds the installed ArtisanPack UI packages that support it, like Forms. Then it pulls each one's settings into that file, in its own section.
Packages that don't support it yet, like SEO and Security, keep their own config files for now.
You'll run artisanpack:scaffold-config again after adding packages in the next step. It keeps any changes you've made and only adds what's new.
Step 2: Add what your project needs
This is where ArtisanPack UI becomes more than a component library.
Each package solves one problem. You install the ones your project needs and skip the rest.
And every package installs the same way:
- Require the package with Composer.
- Run its install or publish command.
- Run your migrations, if it has any.
You won't find tabs in this step. These are all Composer packages, so the commands are the same whether you chose Livewire, React, or Vue.
When a package has its own interface, like an admin dashboard, it ships Livewire components. Many include React and Vue versions too.
Here's a sample, organized by the problem you're trying to solve.
Collecting leads or contact requests? Forms
A drag-and-drop form builder with 35+ field types, email notifications, multi-step forms, conditional logic, and spam protection.
composer require artisanpack-ui/forms
php artisan vendor:publish --provider="ArtisanPackUI\Forms\FormsServiceProvider"
php artisan migrate
Showing up in search? SEO
Meta tags, Open Graph and Twitter Cards, 15 Schema.org types, XML sitemaps, redirects, and robots.txt, all managed in one place.
composer require artisanpack-ui/seo
php artisan migrate
Protecting the app and its users? Security
Security headers, Content Security Policy, input sanitization, output escaping, and XSS protection.
composer require artisanpack-ui/security
php artisan vendor:publish --tag=security-config
Started with a starter kit or the Livewire components? Security is already installed, so you can skip this one. You'll turn on its headers in step 3.
Need more than the basics? Authentication and two-factor login, roles and permissions, secure uploads, and privacy compliance each have their own package. You only add what you use.
Keeping it fast? Performance
Image optimization, page and fragment caching, resource hints, speculative loading, and database query analysis.
composer require artisanpack-ui/performance
php artisan perf:install
The installer publishes the config, runs migrations, and checks your environment.
Every feature is opt-in. Nothing changes until you enable it.
Managing images and uploads? Media Library
Uploads, folders, tags, and automatic conversion to modern formats like WebP and AVIF.
composer require artisanpack-ui/media-library
Need an admin backend? CMS Framework
Content types, taxonomies, users and roles, and admin pages. It also includes a WordPress-style site editor, themes, and plugins.
composer require artisanpack-ui/cms-framework
php artisan vendor:publish --tag=cms-framework-config
php artisan migrate
CMS Framework needs PHP 8.3 or higher.
Tracking visitors? Analytics
Privacy-first analytics stored in your own database, with consent management and a real-time dashboard. Google Analytics 4 and Plausible connections are optional.
composer require artisanpack-ui/analytics
php artisan analytics:install
The installer handles the config, migrations, and assets.
Taking appointments? Bookings
Scheduling for one-on-one, group, and recurring appointments. It syncs with Google, Microsoft 365, and Apple calendars, and includes a public booking widget.
composer require artisanpack-ui/bookings
php artisan migrate
Bring the new settings into Core
Remember `artisanpack:scaffold-config` from step 1?
Run it again after you add packages:
php artisan artisanpack:scaffold-config
It finds the new packages that support it and adds their settings to config/artisanpack.php.
Anything you've already changed stays put.
That's eight of 40+
These are the packages a typical client site reaches for first.
There's a lot more in the ecosystem: ecommerce, a visual editor, privacy and compliance tools, Google and Microsoft integrations, and others.
Browse them all on the packages page.
Next, let's put four of them to work on a real project.
Step 3: Build a real example
Lists of packages only go so far. Let's build something.
Picture a typical client: Cedar Creek Landscaping, a fictional local business that needs a new website.
They want three things:
- A way for customers to request a quote
- To show up when people nearby search for landscapers
- A site that's secure and loads fast
That's four packages: Forms, SEO, Security, and Performance.
This walkthrough assumes you've finished step 1, with either a starter kit or an existing app, and installed those four packages in step 2.
From a fresh starter kit, the whole build took me 60 minutes.
Add a quote request form
Start in the form builder. It's a drag-and-drop admin screen, so there's no field code to write.
Log in and go to `/admin/forms`. Click **Create Form**, name it "Quote request," and use `quote-request` as the slug.
Then add five fields:
- Name: text, required
- Email: email, required
- Phone: phone
- Service: dropdown, with options for lawn care, landscape design, irrigation, and tree and shrub care
- Project details: text area
Save the form, and make sure it's set to active.
There's a bonus for freelancers here. Your client can edit this form later without calling you.
Prefer to define forms in code, like in a seeder? The Forms docs show how.
Send the client an email
Open the form's **Notifications** tab and add two notifications:
- Admin - goes to the client's inbox, with a subject like `New quote request from {name}`
- Autoresponder - goes to the address in the email field, letting the customer know their request came through
The curly-brace merge tags pull in whatever the customer typed.
Put the form on a page
Load the form in a route:
use ArtisanPackUI\Forms\Services\FormService;
Route::get( '/quote', function ( FormService $forms ) {
$form = $forms->getBySlug( 'quote-request' );
abort_unless( $form?->is_active, 404 );
return view( 'quote', ['form' => $form] );
} );
Then render it in resources/views/quote.blade.php:
<livewire:form-renderer :form="$form" />
Publish the React form components:
php artisan forms:install-frontend --stack=react
This copies them into resources/js/vendor/artisanpack-forms/.
Add a route:
Route::inertia( '/quote', 'Quote' );
Then create resources/js/pages/Quote.tsx:
import { FormRenderer } from '@/vendor/artisanpack-forms/react';
export default function Quote() {
return <FormRenderer baseUrl="/api/v1/forms" formSlug="quote-request" />;
}
Publish the Vue form components:
php artisan forms:install-frontend --stack=vue
This copies them into resources/js/vendor/artisanpack-forms/.
Add a route:
Route::inertia( '/quote', 'Quote' );
Then create resources/js/pages/Quote.vue:
<script setup lang="ts">
import { FormRenderer } from '@/vendor/artisanpack-forms/vue';
</script>
<template>
<FormRenderer base-url="/api/v1/forms" form-slug="quote-request" />
</template>
Visit /quote, and the form is live.
Here's what you got without asking for it:
- Accessible fields - Every input has a real label. Help text is connected to its field with
aria-describedby, so screen readers read it aloud. - Autofill that works - Email and phone fields come with the right
autocompletevalues, so browsers can fill them in. That's a WCAG 2.2 requirement most hand-built forms miss. - Spam protection - A hidden honeypot field catches bots, and submissions are rate-limited by IP address.
- A place for every submission - They're saved to the database and listed at
/admin/forms/{form}/submissions.
Help the business get found
Start with the site-wide defaults. Add these to your .env file:
SEO_SITE_NAME="Cedar Creek Landscaping"
SEO_SITE_DESCRIPTION="Lawn care, landscape design, and irrigation in Cedar Creek and nearby towns."
Any page without its own title or description falls back to these.
Give each page its own title and description
The starter kit's x-layouts.app is the logged-in dashboard, so public pages like this one need their own layout. These examples call it x-layouts.site, with title and description props.
In that layout's <head>, replace the <title> tag with the SEO component:
<head>
<x-seo:meta :title="$title ?? null" :description="$description ?? null" />
</head>
Then pass a title and description from any view that uses the layout. For the quote page:
<x-layouts.site
title="Request a quote"
description="Tell us about your project and get a free landscaping quote."
>
<livewire:form-renderer :form="$form" />
</x-layouts.site>
React pages render inside one Blade file, resources/views/app.blade.php. Replace the <title inertia> tag in its <head> with the SEO component, reading from the page's props:
<head>
<x-seo:meta
:title="$page['props']['seo']['title'] ?? null"
:description="$page['props']['seo']['description'] ?? null"
/>
@inertiaHead
</head>
Then send the values with the page. Swap the quote route for a full one:
use Inertia\Inertia;
Route::get( '/quote', fn () => Inertia::render( 'Quote', [
'seo' => [
'title' => 'Request a quote',
'description' => 'Tell us about your project and get a free landscaping quote.',
],
] ) );
Search engines get the full set of tags on the first page load. Titles won't change as visitors click between pages yet, since the SEO package doesn't hook into Inertia's <Head> component.
Vue pages render inside one Blade file, resources/views/app.blade.php. Replace the <title inertia> tag in its <head> with the SEO component, reading from the page's props:
<head>
<x-seo:meta
:title="$page['props']['seo']['title'] ?? null"
:description="$page['props']['seo']['description'] ?? null"
/>
@inertiaHead
</head>
Then send the values with the page. Swap the quote route for a full one:
use Inertia\Inertia;
Route::get( '/quote', fn () => Inertia::render( 'Quote', [
'seo' => [
'title' => 'Request a quote',
'description' => 'Tell us about your project and get a free landscaping quote.',
],
] ) );
Search engines get the full set of tags on the first page load. Titles won't change as visitors click between pages yet, since the SEO package doesn't hook into Inertia's <Head> component.
Each <x-seo:meta> tag outputs the title, description, canonical URL, Open Graph, and Twitter Card tags in one go.
Tell search engines it's a local business
Local search is where landscapers win or lose customers. LocalBusiness structured data tells search engines what the business is, where it is, and how to reach it.
Add the schema component to the same `<head>` as your meta tags. It works the same in all three stacks:
<x-seo:schema :schemas="[
[
'@type' => 'LocalBusiness',
'name' => 'Cedar Creek Landscaping',
'telephone' => '+1-555-123-4567',
'address' => [
'@type' => 'PostalAddress',
'addressLocality' => 'Cedar Creek',
'addressRegion' => 'TX',
],
'priceRange' => '$$',
],
]" />
Run the page through Google's Rich Results Test to check it.
- A sitemap at
/sitemap.xml, generated on request. Pages built on models are added automatically. Static pages like the ones on this site need a short sitemap provider, which the SEO docs walk through. - A robots.txt file with rules you can change in the config
- Redirects for when the client renames a page
Lock it down
Security's headers protect against clickjacking, MIME-type sniffing, and insecure connections. They aren't applied until you add the middleware, so add it to your web routes in bootstrap/app.php:
->withMiddleware( function ( Middleware $middleware ) {
$middleware->web( append: [
\ArtisanPackUI\Security\Http\Middleware\SecurityHeadersMiddleware::class,
] );
} )
The React and Vue kits already append HandleInertiaRequests there. Add the new line to that same list.
Then check them with one command:
php artisan security:test-headers
Nothing in this section changes on the frontend. These are all server-side settings.
Add a Content Security Policy
A Content Security Policy tells the browser which scripts, styles, and images your site can load. It's one of the strongest defenses against cross-site scripting.
Turn it on by wrapping your routes in the csp middleware:
Route::middleware( ['csp'] )->group( function () {
// Your site's routes
} );
On a client site, start in report-only mode. Add this to your .env file:
SECURITY_CSP_REPORT_ONLY=true
In report-only mode, the browser logs what the policy would block but still loads it.
That matters for client sites. A Google Maps embed, a chat widget, or an analytics script will each need to be allowed. Report-only mode shows you what to add before anything breaks.
When the reports go quiet, set it back to false.
To change the allowed sources, publish the Security config:
php artisan vendor:publish --tag=security-config
The policy lives under the csp key in config/artisanpack/security.php.
What about the quote form? It's already covered. Forms one how often one IP address can submit, so you don't need to set that up separately.
Keep it fast
Every Performance feature is opt-in. Nothing changes until you turn it on.
Here are three quick wins for a site like this one. Like Security, they work the same on every frontend.
Cache your pages
Turn on page caching in your .env file:
PERF_PAGE_CACHE=true
Then apply the middleware to the pages that rarely change:
use ArtisanPackUI\Performance\Http\Middleware\PageCache;
Route::middleware( [PageCache::class] )->group( function () {
Route::get( '/', HomeController::class );
Route::get( '/services', ServicesController::class );
Route::get( '/about', AboutController::class );
} );
Leave the quote page out, along with any page that has a form or a Livewire component, like a newsletter signup in the footer. Cached pages share one visitor's CSRF token, so those forms would fail for everyone else.
Logged-in users skip the cache automatically, so your client always sees the live site.
On React and Vue, also add X-Inertia to the page_cache.vary_by list in the Performance config. Otherwise, a visitor clicking between pages can get cached HTML where Inertia expects JSON.
Shrink your images
Landscaping sites are full of big project photos. Convert them to WebP in one command:
php artisan perf:generate-webp public/images --recursive
That creates WebP copies next to the originals. Your pages still point to the old files until you change them.
In Blade views, the responsive image component handles that for you. It generates multiple sizes and modern formats:
<x-perf-responsive-image
src="/images/backyard-patio.jpg"
:sizes="[320, 640, 1024]"
formats="webp,avif"
alt="Flagstone patio with a built-in fire pit and native plantings"
/>
Connect to other domains early
Embedding a Google Map or loading scripts from another domain? Tell the browser to start connecting before it needs them. Add this to your layout's <head>:
@preconnect('https://maps.googleapis.com')
For React and Vue, that's the <head> in app.blade.php.
Want to see how much faster it got? Performance can also measure real visitors' Core Web Vitals and show them in a dashboard. The Performance docs cover setup.
What you just built
In roughly an hour, Cedar Creek Landscaping got:
- An accessible quote form, with email alerts, an autoresponder, and spam protection
- Page titles, descriptions, and social sharing tags
- LocalBusiness structured data for local search
- A sitemap and robots.txt file
- Security headers and a Content Security Policy
- Page caching, modern image formats, and resource hints
That's four packages, all installed the same way.
And you didn't build any of it from scratch.
What you got without asking
Look back at what you actually did in step 3.
You built a form, set a few values, and turned on some features.
But you got a lot more than that. Here's what came along for free.
Accessibility, from the first component
You never added an ARIA attribute. You never checked a color contrast ratio.
You didn't have to.
Accessibility is built into ArtisanPack UI from the start, not bolted on at the end. Every package begins from the same assumption: the site should work for everyone who visits it.
That showed up all over step 3. Every field had a real label that screen readers could read. Help text was linked to its field. Autofill values met WCAG 2.2.
And it goes past forms.
The Accessibility package comes with every starter kit and with the Livewire components. It can check color contrast and pick readable text colors for you:
$textColor = a11yGetContrastColor( '#2E7D32' );
Give it the client's brand green, and it returns a text color that's readable on top of it.
For a freelancer, that's the difference between "we'll fix accessibility later" and never having to.
One home for your settings
Four packages usually means four config files to hunt through.
Core's artisanpack:scaffold-config command gathers the ones that support it, like Forms, into config/artisanpack.php. Each package gets its own section, and your changes survive every time you run it again.
When the client asks for a change six months from now, you know where to look.
Room to customize without forking
Sooner or later, a client asks for something a package doesn't do out of the box.
Say Cedar Creek wants quote requests labeled by service, so the irrigation crew can spot theirs at a glance.
You don't need to fork Forms or override its views. You add a filter:
use ArtisanPackUI\Forms\Models\FormNotification;
use ArtisanPackUI\Forms\Models\FormSubmission;
use function addFilter;
addFilter( 'ap.forms.notificationSubject', function ( string $subject, FormNotification $notification, FormSubmission $submission ): string {
if ( FormNotification::TYPE_ADMIN !== $notification->type ) {
return $subject;
}
$service = $submission->getValue( 'service' );
return $service ? "[{$service}] {$subject}" : $subject;
} );
Put that in a service provider's boot() method. Now every admin email leads with the service, like "[Irrigation] New quote request from Maria."
The customer's autoresponder stays the same.
If you've worked in WordPress, this will feel familiar. That's on purpose.
The Hooks package brings WordPress-style actions and filters to Laravel, and packages across the ecosystem use them. Forms, SEO, the Livewire components, and more all let you change their behavior from your own code.
And hooks follow one naming pattern everywhere: ap., then the package, then the hook. Once you've used one, you can usually guess the rest.
The same pattern, every time
Look at how each package went in.
Composer. An install or publish command. Maybe a migration.
That's the whole pattern.
It was the same for the fourth package as it was for the first. It'll be the same for the 40th.
Where to go next
So now that you know how to get started with ArtisanPack UI, what is your next step?
If you're looking to start a new app or website with ArtisanPack UI, check out our starter kits for a solid foundation.
Or if you want to look through our library of packages to find the one that does the job you need right now, you can check out the packages page.
You can also learn more about the technical details of every package over on our documentation website. And you are more than welcome to contribute to all of the packages over in the GitHub repository.
Finally, to stay up to date with everything ArtisanPack UI, sign up for The ArtisanPack UI Dispatch newsletter to get updates, ideas, and tips sent to your inbox once a month. All completely free.
But whatever your next step is, happy building!


