Search by

artisanpack-ui / ecommerce-admin-livewire

JacobMartellaWebDesign

Livewire admin for the ArtisanPack UI ecommerce engine.

Package info

github.com/ArtisanPack-UI/ecommerce-admin-livewire

pkg:composer/artisanpack-ui/ecommerce-admin-livewire

Statistics

Installs: 198

Dependents: 1

Suggesters: 2

Stars: 0

Open Issues: 5

v2.0.0 2026-11-20 15:43 UTC

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

The store admin dashboard: key figures for sales, orders awaiting fulfillment, low stock, and reviews to moderate, a 30-day sales sparkline, the lowest-stock items, and recent orders

An order's detail page: status badges, the items table, totals in the order currency and the store currency, and fulfillment with a shipment in transit, beside a status panel for changing status and sub-status or canceling the order

The product form editing a simple product, on the General tab with name, slug, type, status, publish date, short description, and a rich-text description editor

The command palette open over the dashboard with the search "shirt" listing two matching products by name and SKU

Requirements

  • PHP 8.3+ with bcmath and intl
  • Laravel 12 or 13
  • Livewire 3.6+ or 4
  • artisanpack-ui/ecommerce 1.0
  • artisanpack-ui/livewire-ui-components 3.0
  • Tailwind CSS 4 and the ArtisanPack UI design system (@artisanpack-ui/css and @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

  1. 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 the shop-manager role with cms-framework. See Authorization.

  2. Open the admin at /ecommerce-admin (the admin.route_prefix config key).

  3. 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:

  1. 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
  2. Add the lines the install command prints to your main stylesheet. The @layer line 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";
  3. 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 ) );
  4. Publish TinyMCE for the description editor with php artisan vendor:publish --tag=artisanpack-assets and 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

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.