liberu-eccommerce / ecommerce-laravel
The skeleton application for the Laravel framework.
Fund package maintenance!
liberusoftware
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 156
Watchers: 8
Forks: 59
Open Issues: 20
Type:project
pkg:composer/liberu-eccommerce/ecommerce-laravel
Requires
- php: ^8.5
- bezhansalleh/filament-shield: ^4.0
- filament/filament: ^5.0
- filament/spatie-laravel-settings-plugin: ^5.0
- guzzlehttp/guzzle: ^7.8
- joelbutcher/socialstream: ^6.0
- laravel/framework: ^12
- laravel/jetstream: ^5.1
- laravel/octane: ^2.3
- laravel/sanctum: ^4.0
- laravel/tinker: ^2.9
- livewire/livewire: ^4.0
- orangehill/iseed: ^3.0
- spatie/laravel-menu: ^4.2
- spatie/laravel-query-builder: ^6.0
- stripe/stripe-php: ^10.0
Requires (Dev)
- fakerphp/faker: ^1.23
- filament/upgrade: ^5.0
- laravel/pail: ^1.2.2
- laravel/pint: ^1.13
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^12.0
- spatie/laravel-ignition: ^2.4
- dev-main
- dev-dependabot/github_actions/docker/build-push-action-6.19.0
- dev-dependabot/github_actions/docker/metadata-action-5.10.0
- dev-dependabot/npm_and_yarn/vite-7.1.12
- dev-dependabot/npm_and_yarn/tailwindcss/postcss-4.1.16
- dev-dependabot/npm_and_yarn/tailwindcss-4.1.16
- dev-dependabot/composer/laravel/octane-2.13.1
- dev-dependabot/composer/laravel/framework-12.36.1
- dev-dependabot/npm_and_yarn/tailwindcss/vite-4.1.16
- dev-dependabot/composer/filament/spatie-laravel-settings-plugin-4.1.10
- dev-dependabot/composer/filament/upgrade-4.1.10
- dev-dependabot/composer/spatie/laravel-query-builder-6.3.6
- dev-dependabot/npm_and_yarn/vite-plugin-static-copy-3.1.4
- dev-dependabot/github_actions/actions/setup-node-6
- dev-sweep/Refactor-Order-History-Routes-and-Update-Wishlist-Functionality
- dev-sweep/Enhance-Product-Page-and-Home-Layout-with-Improved-UI/UX
- dev-sweep/Add-Dropshipping-API-Integration
- dev-sweep/Enhance-Checkout-Process-with-Drop-Shipping-and-Payment-Options
- dev-sweep/Enhance-Shopping-Cart-Functionality-and-Inventory-Management
- dev-sweep/Fix-Downloadable-Product-Download-Button-Visibility-Condition
- dev-sweep/Implement-Shopping-Cart-Functionality
- dev-sweep/Enhance-Home-Navigation-and-Layout-with-Responsive-Design-and-Cart-Integration
- dev-sweep/Add-Cart-Count-Functionality-to-E-commerce-Application
- dev-sweep/Enhance-E-commerce-Platform-Cart-Integration-and-Menu-Improvements
- dev-sweep/Enhance-E-commerce-Checkout-and-Cart-Functionality
- dev-sweep/Enhance-Product-Pricing-Flexibility-with-Free-and-Donation-Based-Options
- dev-sweep/Implement-Downloadable-Product-Feature-with-Secure-Download-Mechanism
- dev-sweep/Enhance-Checkout-Process-with-Guest-Checkout-and-Comprehensive-Order-Flow
- dev-sweep/Implement-SEO-friendly-features-and-sitemap-generation
- dev-sweep/Implement-Payment-Gateway-Integration
- dev-sweep/Implement-Shipping-Service-and-Checkout-Enhancements
- dev-sweep/Add-product-comparison-functionality
- dev-sweep/Add-Order-History-Feature
- dev-sweep/Implement-Low-Stock-Tracking-and-Inventory-Management
- dev-sweep/Implement-Product-Reviews-and-Ratings
- dev-sweep/Implement-Product-Search-Functionality
- dev-sweep/Implement-Coupon-Management-and-Discount-Functionality
- dev-sweep/Enhance-Shopping-Cart-Functionality
- dev-sweep/Streamline-Checkout-Process-and-Add-Shipping-Management
- dev-sweep/Implement-Product-Management-in-Filament-Admin
- dev-sweep/Implement-Wishlist-Feature
- dev-sweep/Implement-Product-Recommendation-System
- dev-sweep/Enhance-Home-Page-with-Featured-and-Latest-Products
- dev-sweep/Update-the-main-menu-structure-for-the-ecommerce-website
- dev-sweep/hard_to_install_many_errors_e8750
- dev-sweep/hard_to_install_many_errors
- dev-sweep/docstrings-and-headers
- dev-sweep/docstrings-file-headers_5e285
- dev-sweep/refactor-payment-subscription-services
- dev-sweep/refactor-invoice-test-function
- dev-sweep/add-paypal-unit-tests
- dev-sweep/unit-tests-inventory-log
- dev-sweep/add-unit-tests-rating-review
- dev-sweep/refactor-view-functions
- dev-sweep/add-unit-tests-for-business-logic
- dev-sweep/add-unit-tests-site-setting-controller
- dev-sweep/unit-tests-homecontroller-route
- dev-sweep/docstrings-addition
- dev-sweep/checkout-controller-tests
- dev-sweep/invoices
- dev-sweep/implement_downloadable_products_function
- dev-sweep/inventory_management
- dev-sweep/docstrings-file-headers
- dev-sweep/reviews_and_ratings
- dev-sweep/paypal
- dev-sweep/store_information
- dev-sweep/docstrings-addition_4248e
- dev-sweep/add-unit-tests
- dev-sweep/product-controller-tests
- dev-sweep/cart
- dev-sweep/checkout
- dev-sweep/public_home_page
- dev-sweep/payment_methods
- dev-sweep/stripe
- dev-sweep/products
- dev-sweep/add-sweep-config
This package is not auto-updated.
Last update: 2026-02-12 01:53:11 UTC
README
A modular, production-ready e-commerce platform built with Laravel, Livewire and Filament. Designed for extensibility and fast developer onboarding.
- PHP · Laravel · Livewire · Filament
Quick start (local)
Requirements: PHP 8.3+, Composer, a database (MySQL / MariaDB / Postgres). Docker is optional.
-
Clone and install
git clone https://github.com/liberu-ecommerce/ecommerce-laravel.git cd ecommerce-laravel composer install cp .env.example .env php artisan key:generate -
Configure
.env- Update database settings.
- Add payment and dropshipping keys (example below for Stripe and DropXL):
STRIPE_KEY=pk_test_xxx STRIPE_SECRET=sk_test_xxx STRIPE_WEBHOOK_SECRET=whsec_xxx DROPXL_API_KEY=Bearer xxx DROPXL_API_URL=https://api.dropxl.com -
Migrate and seed
php artisan migrate --seed
-
Serve locally
php -S 127.0.0.1:8000 -t public # or use Sail/Docker if you prefer # ./vendor/bin/sail up -d
Stripe setup and testing
This project uses a server-side Stripe integration via stripe/stripe-php. To enable:
- Add keys to
.env(see above). - Use Stripe test cards in checkout (example):
- Card number: 4242 4242 4242 4242
- Any future expiry, any CVC, any ZIP
- Webhooks: if you use a local webhook helper (stripe CLI) set
STRIPE_WEBHOOK_SECRETand configure webhooks to point to/stripe/webhookif enabled.
Dropshipping (DropXL)
DropXL integration is configurable via config/dropshipping.php and expects DROPXL_API_KEY and DROPXL_API_URL in .env.
On checkout, check "Ship directly to recipient (Drop shipping)" to select a supplier (DropXL is available out of the box). Supplier order placement happens after a successful payment and orders will include supplier_id and supplier_reference.
For local testing, point DROPXL_API_URL to a mock endpoint and return a success JSON to avoid hitting production APIs.
Additional setup notes
- After pulling the latest changes, run
composer installto install new dependencies (including Stripe PHP SDK):
composer install
- If you rely on queued supplier placement (recommended), run a queue worker locally:
php artisan queue:work --tries=3
(or use php artisan queue:listen / Horizon if configured)
Quick smoke-tests
Stripe (checkout flow)
- Ensure
.envcontains STRIPE_KEY and STRIPE_SECRET. - Start the app and queue worker (if using queued supplier placement).
- Add a product to cart and go through the normal checkout flow (use the full checkout page in the app).
- Choose Stripe as payment method and enter test card: 4242 4242 4242 4242. Complete checkout.
- Expected: payment succeeds, order status becomes
paid, supplier job queued if dropshipping selected.
DropXL (dropshipping)
- Set
DROPXL_API_URLto a mock endpoint (or real DropXL credentials if available). - For local mocks, return successful JSON:
{ "success": true, "data": { "id": "dropxl-123", "reference": "DLX-123" } }
- Complete a checkout using the Drop shipping option. Ensure
orders.supplier_idandorders.supplier_referenceare set after the queued job runs.
Troubleshooting
- If orders are stuck with
supplier_queued, verify the queue worker is running and checkstorage/logs/laravel.logfor job errors. - If Stripe charges fail: validate
STRIPE_SECRETin.env, confirm the publishable key is present inconfig/services.php, and check the logs for Stripe API errors.
What’s included
- Livewire cart & checkout components
- Shipping methods with server-side calculation and drop-shipping premium
- Payment gateway factory with Stripe and PayPal implementations
- Dropshipping service with supplier transformation for DropXL
- Order persistence and order item creation
Related projects
| Project | Repository |
|---|---|
| Accounting | https://github.com/liberu-accounting/accounting-laravel |
| Automation | https://github.com/liberu-automation/automation-laravel |
| Billing | https://github.com/liberu-billing/billing-laravel |
| Boilerplate | https://github.com/liberusoftware/boilerplate |
| CMS | https://github.com/liberu-cms/cms-laravel |
| Control Panel | https://github.com/liberu-control-panel/control-panel-laravel |
| CRM | https://github.com/liberu-crm/crm-laravel |
| Ecommerce | https://github.com/liberu-ecommerce/ecommerce-laravel |
| Social Network | https://github.com/liberu-social-network/social-network-laravel |
Contributing
Fork → create a focused branch → open a PR against main. Include tests for new behavior. CI runs on push; ensure install and tests workflows pass.
License
MIT — see the LICENSE file.
If you'd like CLI commands, tests, or example API payloads added to the README, tell me which sections to expand.