artisanpack-ui / ecommerce-admin-livewire
Livewire admin for the ArtisanPack UI ecommerce engine.
Package info
github.com/ArtisanPack-UI/ecommerce-admin-livewire
pkg:composer/artisanpack-ui/ecommerce-admin-livewire
Requires
- php: ^8.3
- ext-bcmath: *
- ext-intl: *
- artisanpack-ui/core: ^1.0
- artisanpack-ui/ecommerce: ^1.0
- artisanpack-ui/hooks: ^1.2
- artisanpack-ui/livewire-ui-components: ^3.0
- artisanpack-ui/security: ^1.0.3|^2.0
- illuminate/support: ^12.0|^13.0
- livewire/livewire: ^3.6|^4.0
Requires (Dev)
- artisanpack-ui/code-style: ^1.1
- artisanpack-ui/code-style-pint: ^1.1
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- friendsofphp/php-cs-fixer: ^3.75
- laravel/pint: ^1.26
- orchestra/testbench: ^10.2|^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-browser: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-livewire: ^4.0
- rebing/graphql-laravel: ^9.0|^10.0
Suggests
- artisanpack-ui/cms-framework: Renders the admin inside the CMS admin layout, joins the CMS menu, and registers engine abilities as RBAC permissions.
- artisanpack-ui/ecommerce-kanban-livewire: Adds "Open board" links from order detail and kanban settings.
- artisanpack-ui/media-library: Pick product, variant, and category images through the media modal.
- barryvdh/laravel-dompdf: PDF table export.
- phpoffice/phpspreadsheet: XLSX table export.
- rebing/graphql-laravel: Required for real-time admin updates (the engine registers the `ecommerce.admin` broadcast channel only when it is installed).
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-20 15:50:08 UTC
README
A Livewire admin for the artisanpack-ui/ecommerce engine, built on
artisanpack-ui/livewire-ui-components. It covers orders,
reviews, products, categories, tags, inventory, digital files, license keys, customers, promotions and coupons,
shipping, tax, reports, notification templates, webhooks, order statuses, kanban boards, and store settings. It renders
inside the cms-framework admin when that package is installed, and as a standalone admin otherwise. Every screen and
action checks the engine's abilities, and other packages extend it through registries and filters.
Screenshots
Requirements
- PHP 8.3+ with
bcmathandintl - Laravel 12 or 13
- Livewire 3.6+ or 4
artisanpack-ui/ecommerce1.0artisanpack-ui/livewire-ui-components3.0- Tailwind CSS 4 and the ArtisanPack UI design system (
@artisanpack-ui/cssand@artisanpack-ui/behavior) in your application's Vite build
Optional: artisanpack-ui/cms-framework, artisanpack-ui/media-library, artisanpack-ui/ecommerce-kanban-livewire, phpoffice/phpspreadsheet (XLSX export),
barryvdh/laravel-dompdf (PDF export). See Requirements.
Installation
composer require artisanpack-ui/ecommerce-admin-livewire php artisan ecommerce-admin:install
The install command publishes config/artisanpack/ecommerce-admin-livewire.php, prints the front-end steps, and, with
cms-framework, registers RBAC permissions and a shop-manager role.
Quick start
-
Grant access. The engine denies every ability by default, so every screen returns 403 until you grant access. In a service provider's
boot():Gate::define( 'ecommerce.admin', fn ( $user ) => $user->is_admin );
Or define individual
ecommerce.{resource}.{action}abilities, or assign theshop-managerrole withcms-framework. See Authorization. -
Open the admin at
/ecommerce-admin(theadmin.route_prefixconfig key). -
Optionally seed a demo store on a development database:
php artisan ecommerce:seed-demo
Add your 2FA middleware to admin.middleware. Neither the engine nor the admin applies it.
Front-end setup
The admin renders on the ArtisanPack UI design system. The package ships no CSS or JavaScript build. In your application:
-
Remove daisyUI if nothing else uses it, and install the design system:
npm install @artisanpack-ui/css@^1 @artisanpack-ui/behavior@^1 @artisanpack-ui/livewire-drag-and-drop@^2
-
Add the lines the install command prints to your main stylesheet. The
@layerline comes first:@layer theme, base, apui, components, utilities; @import 'tailwindcss'; @import '@artisanpack-ui/css'; @source "../../vendor/artisanpack-ui/ecommerce-admin-livewire/resources/views/**/*.blade.php"; @source "../../vendor/artisanpack-ui/ecommerce-admin-livewire/src/**/*.php"; @source "../../vendor/artisanpack-ui/livewire-ui-components/resources/views/**/*.php"; @source "../../vendor/artisanpack-ui/livewire-ui-components/src/**/*.php";
-
Register the behavior engine and drag-and-drop in
resources/js/app.js:import apuiBehavior from '@artisanpack-ui/behavior/alpine'; import '@artisanpack-ui/livewire-drag-and-drop'; document.addEventListener( 'alpine:init', () => window.Alpine.plugin( apuiBehavior ) );
-
Publish TinyMCE for the description editor with
php artisan vendor:publish --tag=artisanpack-assetsand load/vendor/artisanpack-ui/js/tinymce/tinymce.min.js.
The layout loads your resources/css/app.css and resources/js/app.js. See
Front-End Setup for the full steps and a working reference, and
Upgrading when moving from 1.x.
Documentation
- Documentation home
- Getting started
- Installation: requirements, configuration, front-end setup, layouts
- Usage: screens, dashboard, command palette, real-time updates, product CSV
- Authorization
- Extending
- Accessibility and localization
- Advanced
- Reference: hooks, Artisan commands
- Upgrading from 1.x to 2.0
- FAQ and troubleshooting
Contributing
As an open source project, this package is open to contributions from anyone. Please read through the contributing guidelines to learn more about how you can contribute to this project.
composer test # unit and feature tests composer lint # php-cs-fixer (dry run) and phpcs composer test:browser # browser suite; see CONTRIBUTING.md composer ecommerce:verify-satellite # the engine's satellite contract verification
License
The MIT License. See LICENSE for details.



