shopper/core
Shopper Core is the foundation package for the Shopper e-commerce platform in Laravel. It provides shared core services, utilities, and framework integrations used by Shopper modules to build and run a modular, extensible store backend.
Product, Order) are decoupled enough to integrate without tight coupling to the package’s internal logic.Shopper\Contracts\OrderRepository) that allow customization. If the package uses concrete implementations only, extending functionality (e.g., adding a loyalty points system) may require forking or deep monkey-patching.spatie/laravel-permission, laravel-cashier). Audit composer.json for:
^9.0 vs. project’s ^10.0).gd for image processing, intl for localization).monolog/monolog)./api/v1/orders).Shopper\Order) may complicate future migrations. Evaluate:
Order) be queried directly via Eloquent?Product, Cart, Order)? Are they interfaces or concrete classes?Order → OrderItem)? Are they Eloquent relationships or custom logic?pending → shipped)? Via database states or a state machine?product_variant) be added without forking?config/shopper.php)?ServiceProvider. Override bindings if needed (e.g., Shopper\Services\OrderService → App\Services\CustomOrderService).Shopper\Events\OrderCreated to trigger analytics).auth:api for admin endpoints).php artisan package:discover to auto-load the package if it uses Laravel’s package auto-discovery.HttpTests, FeatureTests) to verify package behavior.Shopper\Log::error()) and monitoring tools (e.g., Sentry).| Current Feature | Package Equivalent | Gap |
|---|---|---|
| Custom Cart Service | Shopper\Cart |
Needs validation |
orders table → shopper_orders).vendor/ (or via composer require).php artisan vendor:publish --tag=shopper-config).config/caching to stub package settings during testing.php artisan migrate --path=database/migrations/shopper).How can I help you explore Laravel packages today?