- Can I use baks-dev/drom-products in a Laravel project without Symfony dependencies?
- No, the package is a Symfony Bundle, so it relies on Symfony’s Container, HttpKernel, and Doctrine ORM. You’ll need to create Laravel-compatible adapters for dependency injection, routing, and Eloquent integration. The core functionality (product variants, SKUs, inventory) can still be used if you abstract the Symfony layer.
- What Laravel versions does this package support?
- The package explicitly requires PHP 8.4+ but does not document Laravel version support. Given its Symfony foundation, it may work with Laravel 10+ if you handle the architectural conflicts (e.g., Doctrine vs. Eloquent). Test thoroughly in your environment.
- How do I handle Doctrine entities in a Laravel app using Eloquent?
- You’ll need to map Doctrine entities to Eloquent models manually. Use traits or a library like `spatie/laravel-doctrine-orm` for hybrid support. Shared database schema can be managed via Doctrine migrations, but business logic should be rewritten for Eloquent’s query builder.
- What is baks-dev/core, and can I avoid it?
- `baks-dev/core` is an undocumented private dependency (version ≥7.4) critical to the package. Without access to its source, you risk hidden logic or breaking changes. Fork the package and stub/mock the core during a proof-of-concept to assess feasibility before full integration.
- Does this package include REST API endpoints for products?
- Yes, the package likely includes Symfony-based REST routes for CRUD operations. To integrate with Laravel, prefix routes (e.g., `/drom/products`) or replace them with Laravel controllers using the package’s services. Avoid conflicts with Laravel’s routing system.
- How do I test this package in a Laravel environment?
- Run the package’s tests with `php bin/phpunit --group=drom-products`, but note they may depend on `baks-dev/core`. For Laravel-specific testing, mock Symfony services (e.g., EventDispatcher) and adapt tests to Laravel’s testing helpers like `Http::fake()` or `assertDatabaseHas()`.
- Are there alternatives to baks-dev/drom-products for Laravel?
- For product variants/SKUs, consider `spatie/laravel-product-options` or `orchid/software`. For marketplace compliance, evaluate `webpatser/laravel-billing` or build custom logic. However, no package matches Drom.ru’s specific seller-driven model or batch/serial inventory tracking.
- Will this package work for non-Russian e-commerce platforms?
- The package is tailored for Drom.ru’s compliance rules (tax, payments, return policies), which may not generalize. Abstract compliance logic into strategy patterns or middleware to support future localization. Core features (inventory, variants) are platform-agnostic.
- How do I handle inventory updates with batch/serial numbers in Laravel?
- The package provides batch/serial tracking logic, but you’ll need to adapt it to Eloquent. Use Laravel’s database transactions for atomic updates and consider queueing inventory changes with `laravel-queue` for high-traffic scenarios. Test concurrent updates for race conditions.
- Is this package actively maintained? Should I fork it?
- The package has no stars, issues, or recent updates (last release in 2026, but repo appears new). Fork immediately to customize it for Laravel. Contribute fixes upstream to avoid long-term maintenance risks. Monitor for breaking changes in Symfony 7.x dependencies.