benconstable/phpspec-laravel
phpspec-laravel adds Laravel-aware testing to phpspec, bootstrapping your app and providing matchers and helpers for Eloquent models, routes, views, and more so you can write expressive specs for Laravel code.
composer require vendor/package:^4.0.1. Version 4.0.1 fixes a broken vendor path introduced by the switch to PSR-4 autoloading, so avoid 4.0.0 in new installs and CI.config/app.php (Laravel 10 and below) or bootstrap/providers.php (Laravel 11+).php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider". Check the package README for specific tags such as --tag=config or --tag=migrations.composer dump-autoload and clear caches: php artisan config:clear && php artisan cache:clear && php artisan package:discover.AppServiceProvider using $this->app->bind() or $this->app->singleton(). This keeps package usage swappable and testable.env() only inside config files, then use config('package.key') throughout application code.composer dump-autoload -o. If you still see path errors or “class not found,” remove vendor/composer/autoload_* and reinstall dependencies.use statements and remove any hard-coded vendor paths in your code or deployment scripts.php artisan config:cache.php artisan package:discover and inspect bootstrap/cache/packages.php if the provider is missing.vendor/. The PSR-4 path fix means overrides should go through published config, container bindings, or documented extension points.^4.0.1 in composer.json to avoid reintroducing the 4.0.0 path bug. Use composer update vendor/package --with-dependencies when moving existing projects onto the patch release.How can I help you explore Laravel packages today?