Open Source Laravel E-Commerce

E-commerce that
feels like Laravel

A headless e-commerce package for Laravel. Eloquent models, familiar conventions, total control over your storefront.

$ composer require lunarphp/lunar
3.4k+GitHub Stars
2.5k+Discord Members
150k+Installs
Built for Laravel
The Platform

One package, complete commerce

Products, orders, customers and a full admin panel — all installable with a single Composer command.

E-Commerce Core

Eloquent models, pipelines and event-driven architecture — build any storefront without fighting the framework.

Admin Panel

A production-ready admin panel for managing products, orders and customers out of the box, then extend it to fit your workflow.

Coming Soon

Starter Kit

Hit the ground running with an Inertia + Vue storefront. Authentication, cart and checkout — ready to customise from day one.

Admin Panel

Your catalogue, fully under control

Products, variants, pricing, media and collections — managed through a clean, extensible admin panel.

Developer Experience

Code like it's just Laravel

No new DSL to learn. Lunar is built on Eloquent models, so querying products works exactly like querying any other model.

  • Standard Eloquent models and relationships
  • Extend with custom attributes and fields
  • Pipeline-based cart and order processing
  • Built-in Laravel Scout search integration
Read the documentation
ProductController.php
$url = Url::whereElementType($type)
            ->whereSlug($slug)
            ->with($eagerLoad)
            ->first();

$product = $url->element;

if ($product->status !== 'published') {
    return abort(404);
}
Features

Built for real-world commerce

From product catalogue management to order processing, Lunar covers the features you actually need to run a store.

Products & Catalogue

Product Types

Define different product types — clothing, electronics, digital goods — each with their own attribute configuration.

Custom Attributes

Store exactly the data you need with text fields, rich text, dropdowns, toggles and more. No schema migrations required.

Variants

Sell products with multiple options like size, colour or material, each with independent pricing and stock.

Collections

Build hierarchical collection groups to organise products for navigation, promotions or seasonal campaigns.

Image Resizing

Define image conversions once and always have the right sizes available for thumbnails, listings and detail pages.

URLs

Assign multiple URLs to products and collections with automatic redirects and full internationalisation support.

Organisation

Channels & Availability

Publish products to specific channels and schedule exactly when they become available to customers.

Product Classification

Classify products by type, brand and tags for flexible filtering and faceted search.

Associations

Configure cross-sells, up-sells and alternatives to increase average order value.

Identifiers

SKU, GTIN, MPN, UPC/EAN — all built in and ready for marketplace and shopping feed integrations.

Orders & Customers

Orders

Full order lifecycle management — payments, statuses, refunds and customer notifications in one place.

Customers

Link orders to customer accounts, view purchase history and support B2B ordering with multiple users per account.

Customer Groups

Segment customers into groups for exclusive pricing, restricted products or tailored availability.

Commerce Engine

Pricing

Multi-currency support, tax rates and zones, tiered pricing and discount rules — all handled out of the box.

Shipping

Flexible shipping modifiers for custom rules, or use the built-in shipping rates table for simpler setups.

Inventory

Track stock levels, set backorder limits and control exactly when a product is available for purchase.

Lunar has proven to be the perfect platform on which to build e-commerce stores for our clients.

With well thought out, extendable models and an incredible admin hub its a great launch pad for any custom client requirements.

The ratio of flexibility and out of the box functionality that Lunar brought to our multi tenant e-commerce project is truly impressive! The database structure alone would take a significant amount of time to engineer, not to mention the ready models and pipelines you can wire up to your own business logic.

Lunar makes Laravel e-commerce effortless. The Livewire integration feels incredibly native, and the highly flexible admin panel easily adapts to complex, bespoke projects. Backed by a growing, rich add-on ecosystem and a genuinely supportive developer community, it is absolutely my go-to headless solution for modern stores.

Lunar was the perfect solution for our clients. Its robust framework and fully-featured admin panel gave us full freedom to craft a custom front-end with their headless design. The extensibility was a huge advantage for our team at Brightbulb, allowing us to meet unique client requirements effortlessly.

FAQ

Frequently Asked
Questions

Common questions from developers and store owners.

Yes. Lunar is MIT-licensed and completely free. We may offer premium add-ons in the future, but the core package will always be open source.

Lunar is a Laravel package, so your storefront can use whatever stack you prefer — Blade, Inertia, a React SPA, or a completely separate frontend.

Lunar lives inside your Laravel app, so you get full code ownership, no monthly fees and zero platform lock-in. You keep all the power of Laravel while gaining a complete e-commerce toolkit.

Lunar is headless — it provides the backend and admin panel, and you build the storefront however you like. Starter kits are available to help you hit the ground running.

Absolutely. Because Lunar is just a Laravel package, you can expose your own API routes and connect any iOS, Android or third-party frontend.

Ready to own your storefront?

Install Lunar into any Laravel app and start building a store you fully control.