baks-dev/avito-orders
Laravel/PHP модуль заказов Avito (FBS/DBS): добавляет тип профиля, оплату и доставку для заказов Avito. Установка через Composer, настройка через консольные команды (baks:*), есть тесты PHPUnit. PHP 8.4+.
spatie/laravel-symfony) or custom abstraction to integrate with Laravel’s ecosystem. Native Laravel compatibility is untested, introducing architectural friction.baks:users-profile-type, baks:delivery) suggest extensibility, but Laravel’s service container and Artisan CLI may conflict with Symfony’s Console component without refactoring.laravel/framework).baks-dev/core:^7.4 risks vendor lock-in. Evaluate if this core library is maintainable or if its features can be replaced with Laravel alternatives (e.g., spatie/laravel-activitylog for profile tracking).avito_orders, delivery_methods). Migration conflicts with Laravel’s Eloquent or Doctrine are probable without schema validation.App\Console\Kernel, which may require custom command resolvers or middleware.HttpFoundation) breaking Laravel’s request lifecycle.baks-dev/core be replaced with Laravel-native packages (e.g., spatie/laravel-permission for profile types)?baks-dev/core updates? Will Laravel’s deprecations (e.g., Facade changes) break the bundle?avito/marketplace-sdk) or generic e-commerce packages (e.g., bagisto, saleable) that reduce Symfony dependency?Laravel Compatibility Options:
spatie/laravel-symfony to embed the bundle.HttpKernel).PHP Version:
illuminate/support).baks-dev/core dependencies for Laravel conflicts (e.g., symfony/console vs. illuminate/console).Illuminate\Queue for delivery jobs, Illuminate\Events for webhooks).AvitoOrderUpdated event).baks-dev/core schemas.Illuminate\Database\Migrations\Migration to include Avito tables:
Schema::create('avito_orders', function (Blueprint $table) {
$table->id();
$table->string('avito_order_id');
$table->foreignId('user_id')->constrained();
// ...
});
App\Console\Kernel:
protected $commands = [
\BaksDev\AvitoOrders\Command\AvitoFbsCommand::class,
\BaksDev\AvitoOrders\Command\AvitoDbsCommand::class,
];
$this->app->bind(
\BaksDev\Core\Avito\Service::class,
fn($app) => new \BaksDev\Core\Avito\Service(
$app->make(\Illuminate\Support\Facades\DB::class)
)
);
baks-dev/core and baks-dev/avito-orders to composer.json.php artisan optimize.php artisan migrate --path=vendor/baks-dev/core/database/migrations
profile_types and delivery_methods via Laravel’s seeder.// Example: Restrict FBS orders to specific users
public function handle(Request $request, Closure $next) {
if ($request->user()->profile_type !== 'avito-fbs') {
abort(403);
}
return $next($request);
}
ProcessAvitoOrder::dispatch($order)->onQueue('avito');
phpunit --group=avito-orders in a Laravel-compatible environment.baks-dev/core updates may require manual patches. Monitor for breaking changes (e.g., Symfony 7.x deprecations).replace to isolate dependencies:
"replace": {
"baks-dev/core": "self.version"
}
How can I help you explore Laravel packages today?