coaladmin/four-tiles-with-text-bundle
coaladmin/four-tiles-with-text-bundle is a Symfony/CoalAdmin UI component for rendering four clickable tiles with text, icons, and optional actions (e.g., links, buttons). It is not a core Laravel package but can be integrated into Laravel via Symfony’s Bridge or standalone usage.symfony/bridge).twig/bridge).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Twig Dependency | High | Use twig/bridge or rewrite in Blade. |
| Symfony Container | Medium | Abstract via Laravel’s DI or manual binding. |
| CSS/JS Isolation | Low | Bundle with Laravel Mix/Vite. |
| CoalAdmin-Specific Code | High | Refactor or replace CoalAdmin dependencies. |
| Long-Term Maintenance | Medium | Document workarounds; avoid tight coupling. |
livewire/livewire, spatie/laravel-view-components) that achieve similar results with lower integration risk?twig/bridge).CoalAdmin\BaseBundle).vendor/laravel-four-tiles)./resources/views/vendor/tiles/
- tile.blade.php (main template)
- tile-item.blade.php (partial)
// config/app.php
'aliases' => [
'TileManager' => App\Services\TileManager::class,
];
resources/js/tiles.js and resources/css/tiles.css.composer require symfony/bridge
AppServiceProvider to register the bundle:
public function register()
{
if (file_exists($path = __DIR__.'/../../vendor/coaladmin/four-tiles-with-text-bundle')) {
require $path.'/Resources/config/services.php';
}
}
twig/bridge and configure in config/app.php.$twig = Twig::createLoader()->getTwig();
return $twig->render('FourTilesWithTextBundle:default/index.html.twig', $data);
@component('tiles.tile', ['title' => 'Revenue', 'value' => '$10K', 'icon' => '📈'])
@endcomponent
| Component | Laravel Compatibility | Workaround |
|---|---|---|
| Twig Templates | ❌ No | Rewrite in Blade or use twig/bridge |
| Symfony Services | ❌ No | Abstract or replace with Laravel DI |
| CoalAdmin Base | ❌ No | Refactor or avoid usage |
| CSS/JS | ✅ Yes (with Mix/Vite) | Bundle assets manually |
coaladmin/four-tiles-with-text-bundle for changes.twig/bridge, expect ~10-20% slower rendering than Blade.| Scenario | Impact | Mitigation |
|---|---|---|
| Symfony Bundle Breaks Laravel | ❌ App crashes or partial renders |
How can I help you explore Laravel packages today?