chaplean/social-buttons-bundle
Pros:
config/ structure.Cons:
bootstrap-social.css and font-awesome may conflict with modern asset pipelines (Vite, Laravel Mix).symfony/bundle or laravel/symfony-bundle).config/app.php or via a custom provider.{% render %}) may need wrappers for Laravel’s @include or @component.public/ or integrated via Laravel Mix/Vite (risk of version conflicts).urlencode()) may need sanitization for XSS.php artisan config:clear).node_modules for CSS/JS to avoid global conflicts.spatie/share-buttons) with better support?config/social.php for consistency?laravel/symfony-bundle or manually register the bundle in AppServiceProvider::boot().{% render %} with a custom Blade directive or @component:
// app/Providers/AppServiceProvider.php
Blade::directive('socialButtons', function ($expr) {
return "<?php echo \\Chaplean\\SocialButtonsBundle\\SocialButtons::render($expr); ?>";
});
public/css/ or use Laravel Mix to process them.mix.copy('vendor/chaplean/social-buttons-bundle/libs/bootstrap-social/bootstrap-social.css', 'public/css');
composer require chaplean/social-buttons-bundle).config('chaplean_social_buttons')).// app/Services/SocialShareService.php
class SocialShareService {
public function render(string $platform, array $config): string
{
// Adapt bundle output to Laravel context
}
}
Cache::remember).url: null → url: 'null').config/chaplean_social_buttons.php.symfony/yaml and twig/twig (if using Twig) are installed.config/chaplean_social_buttons.php → Test rendering → Validate URLs → Deploy.composer why-not chaplean/social-buttons-bundle to track dependency conflicts.& in messages).Str::of($url)->limit(200)->toString() wrapper.via parameter deprecation).How can I help you explore Laravel packages today?