yidas/yii2-composer-bower-skip
Composer helper for Yii2 that lets you install/update yiisoft/yii2 without Bower asset packages or fxp/composer-asset-plugin. Skips bower-asset dependencies to avoid “no matching package found” errors; keep existing vendor assets or none at all.
yiisoft/yii2-asset), creating version conflicts with Laravel’s Composer autoloader and PSR-4 standards. Laravel’s ecosystem expects standalone Composer packages (e.g., laravel-mix, filp/whoops), not framework-agnostic asset managers.npm install).yiisoft/yii2-base), which could clash with Laravel’s service providers or PSR-4 autoloading. Laravel’s composer.json is optimized for flat, framework-specific dependencies, not monolithic frameworks like Yii2.yiisoft/yii2-base may override Laravel’s classes (e.g., Yii namespace collisions with Laravel’s Yii facade stubs).Why Bower?
Dependency Isolation
autoload-dev?)replace or conflict directives to mitigate risks?Long-Term Viability
spatie/laravel-frontend-presets) that achieve similar goals without legacy tech?Team Skillset
Poor Fit for Laravel:
Asset facade support, no Mix/Vite compatibility).Potential Niche Use Cases:
Assess Dependency Overlap
composer.json for conflicting packages (e.g., yiisoft/yii2-* vs. Laravel’s illuminate/*).composer why-not yiisoft/yii2-base to check for autoloader clashes.Isolation Strategy
composer install --no-dev to avoid Yii2 classes in production.npm run dev with a custom script that runs Bower instead of npm (e.g., composer exec bower install).mix-manifest.json won’t generate).Frontend Workflow Hack
@mix directives with manual Bower paths in Blade templates (e.g., <link href="{{ asset('bower_components/bootstrap/dist/css/bootstrap.css') }}">).composer.json expects PSR-4 autoloading. Yii2’s yiisoft/yii2-base uses PSR-0, which can cause:
Yii facade vs. Yii2’s Yii class).php artisan yidas:skip-bower).composer require yidas/yii2-composer-bower-skip --ignore-platform-reqs
composer dump-autoload and check for Yii2 class collisions.php artisan optimize to ensure no caching issues.npm install with Bower in package.json scripts (if attempting a hybrid approach).rm -rf vendor/yidas/*).High Maintenance Burden:
Dependency Management:
bower install could pull inconsistent versions.composer.lock may reject Yii2 dependencies, requiring --no-update flags.AssetManager usage)."yidas yii2-composer-bower-skip laravel" return no results.@mix or Vite’s HMR would require custom workarounds.How can I help you explore Laravel packages today?