tourze/diy-page-bundle
A Symfony/PHP bundle for building custom DIY pages dynamically, giving developers a flexible foundation to compose and manage page content. Integrates into existing PHP applications, though documentation and community adoption are currently limited.
composer require tourze/diy-page-bundle. This is a 0.0.1 release, so expect a very early, unstable API.Tourze\DiyPageBundle\DiyPageBundleServiceProvider::class (verify exact namespace in composer.json / src/) to config/app.php.php artisan vendor:publish --provider="Tourze\DiyPageBundle\DiyPageBundleServiceProvider". Inspect the published files before running migrations—table names and columns are not yet documented.php artisan migrate and check the created tables. The bundle likely provides entities/models for pages, blocks, or templates, but no admin UI.Page, Block) to store structured content, then expose via API resources or Inertia/Livewire components. Keep rendering logic in your app, not in the bundle.PageController@show, resolve a page by slug, eager-load any block relations, and return a view. Cache the rendered HTML with Cache::remember keyed by page ID and updated_at.src/ for tagged services.slug column, use Route::get('/{page:slug}', ...) for clean URLs. Add a fallback 404 handler.composer.json and avoid using in production until a stable release.-bundle, suggesting Symfony conventions. Check composer.json for symfony/* dependencies—some may conflict with Laravel’s own Symfony components. Test installation in a fresh Laravel app first.src/, config/, migrations/) to understand available models and services. Use php artisan list to see if any custom commands are registered.updated_at caching.%kernel.debug%) that are invalid in Laravel. Replace with env() calls or Laravel config values.PageRendered, BlockCreated) or interfaces you can implement. If none exist, consider forking or wrapping the bundle’s services in your own decorators.How can I help you explore Laravel packages today?