Install via Composer:
composer require vendor/package-name
The package now requires PHP 8.4+ and is fully compatible with Symfony 5.4, 6.4, and 7.4. For Laravel users, ensure your project meets these requirements before installation.
First, publish the config file (if applicable) using:
php artisan vendor:publish --provider="Vendor\PackageName\PackageServiceProvider" --tag="config"
Verify compatibility with your Laravel version (tested on Laravel 10.x+ due to PHP 8.4 dependency).
app()->make(Vendor\PackageName\Service::class)).Illuminate\Contracts\Queue\Factory) for seamless integration.$response = app(Vendor\PackageName\Client::class)->get('/endpoint');
Event::dispatch(new Vendor\PackageName\Events\CustomEvent())).app/Http/Kernel.php if applicable.For projects using Symfony components (e.g., HTTP client, messenger), the package now aligns with Symfony 7.4 standards. Example:
use Symfony\Component\HttpClient\HttpClient;
$client = HttpClient::create(); // Package may use this under the hood.
error_reporting(E_ALL & ~E_DEPRECATED);
\Log::debug()) to trace package interactions.$this->app->bind(
Vendor\PackageName\Contracts\ServiceInterface::class,
App\Services\CustomService::class
);
'package_name' => [
'custom_key' => env('CUSTOM_VALUE', 'default'),
],
cache()->remember()) for consistency.How can I help you explore Laravel packages today?