avtonom/sms-streamtelecom-bundle
KPhoenSmsSenderBundle), allowing easy swapping of SMS providers if needed.avtonom/sms-sender-bundle (not widely adopted), increasing vendor lock-in.originators validation) may not hold.avtonom_sms.logger?KPhoenSmsSenderBundle into Laravel’s container.laravel-notification-channels/twilio, nesbot/carbon for scheduling).use GuzzleHttp\Client;
$client = new Client();
$response = $client->post('https://api.stream-telecom.ru/sms/send', [
'auth' => ['login', 'password'],
'json' => ['phone' => '0642424242', 'text' => 'Test SMS']
]);
KPhoenSmsSenderBundle as a Laravel binding.// app/Providers/SmsServiceProvider.php
public function register()
{
$this->app->singleton('sms.sender', function ($app) {
// Initialize KPhoen bundle manually
$container = new \Symfony\Component\DependencyInjection\ContainerBuilder();
// ... (complex setup)
return $container->get('sms.sender');
});
}
spatie/laravel-sms-notifications).| Component | Compatibility Risk | Mitigation |
|---|---|---|
| Symfony DI | Laravel uses PHP-DI, not Symfony DI. | Use Symfony DI as a service or rewrite. |
| Monolog Logger | Bundle expects Symfony’s Monolog setup. | Bind to Laravel’s Log facade. |
| cURL/Buzz | Buzz is deprecated; cURL may lack modern features. | Replace with Guzzle. |
| PHP 5.3+ | Laravel 9+ requires PHP 8.0+. | Upgrade bundle or fork. |
spatie/laravel-queue-retries).avtonom/sms-sender-bundle, KPhoenSmsSenderBundle) increases technical debt.
.env for credentials and PHP config arrays for provider settings.avtonom_sms.logger) may clutter Laravel’s Monolog.
sms channel in config/logging.php).How can I help you explore Laravel packages today?