baks-dev/wildberries-package
Модуль baks-dev/wildberries-package для PHP 8.4+ и Composer: установка и упаковка заказов Wildberries. Включает установку конфигурации/ресурсов, миграции Doctrine и тесты PHPUnit (группа wildberries-package).
Order, Shipment). The TPM should assess whether the package’s entity structure (e.g., WildberriesOrder, WildberriesShipment) can coexist with or extend existing models without namespace collisions or data duplication.WildberriesServiceProvider) doesn’t conflict with existing providers.baks:assets:install) align with team workflows.php artisan doctrine:migrations:diff to identify new tables/columns (e.g., wildberries_orders, wildberries_shipments).orders or shipments tables.config/wildberries.php with previous versions to identify new/renamed settings (e.g., api_timeout → request_timeout).resources/views/ for new templates (e.g., packaging dashboards) and merge them into the existing codebase./v1/orders → /v2/orders).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Undocumented Breaking Changes | High | Test in isolation using a Dockerized Laravel instance with the package’s latest release. Use git diff to compare config/migrations pre/post-install. |
| Wildberries API Deprecations | High | Implement an adapter pattern to abstract API calls (e.g., WildberriesApiClient interface). Monitor Wildberries’ API changelog for deprecations. |
| PHP 8.4+ Strict Typing | Medium | Enable PHPStan in CI/CD to catch type-related issues early. Use strict_types=1 in the package’s config. |
| Lack of Migration Docs | Medium | Document internal migration steps in a MIGRATION_GUIDE.md. Use Doctrine’s schema diff tool to generate SQL scripts for data transformations. |
| Community Inactivity | Low | Fork the repo and contribute fixes upstream. Monitor Wildberries’ official SDK for alternatives or open issues in the package. |
| Namespace Collisions | Medium | Prefix package classes (e.g., BaksDev\Wildberries\Order) or use aliases in config/app.php. |
WildberriesOrder::createLegacy()) that require refactoring in the codebase?.env, config/wildberries.php) break without manual updates?WILDBERRIES_WEBHOOK_SECRET) or updated .env.example templates?.env values, temporary tokens)?guzzlehttp/guzzle, monolog/monolog) that introduce vulnerabilities? Use composer audit to check.test('order packaging generates correct barcode')).envoy@staging run baks:assets:install).monolog channel for wildberries.errors).composer require baks-dev/wildberries-package:7.4.27 in a separate branch and resolve conflicts.phpstan:level-7 and psalm to catchHow can I help you explore Laravel packages today?