Build Amazing Online Stores in Stores in Laravel
An open-source package that brings the power of modern headless e-commerce functionality to Laravel.
Storefront Flexibility
Freedom to build what you needLunar’s headless approach to e-commerce gives you the freedom to build the best user experience for your customers.
Based around Laravel Eloquent models, the e-commerce core provides all the functionality you need to create an online store.
Manage your catalogue, customers and orders in our modern and extendable admin area, built in Laravel Livewire.
Power your JavaScript storefront or mobile app via Lunar's RESTful JSON:API.
Coming SoonLunar 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.
Installation
Only a few simple steps...And you will have a powerful e-commerce system ready to build upon.
composer require lunarphp/lunar
php artisan lunar:install
Read the documentation for full installation instructions.
Coding
Develop with familiarityLunar is built around Laravel Eloquent models. As a Laravel developer you will be at home creating storefront functionality.
$url = Url::whereElementType($type)
->whereSlug($slug)
->with($eagerLoad)
->first();
$product = $url->element;
if ($product->status !== 'published') {
return abort(404);
}
Read the reference to learn more about Lunar models and managers.
Features
Lunar is jam-packed with all the e-commerces functionality you need to maintain your product catalogue and process orders.