2lenet/cruditplatform-bundle
CruditPlatformBundle is a Composer-installable PHP bundle that adds reusable CRUD (create, read, update, delete) scaffolding to platform applications, simplifying admin and data management. Install via composer require 2lenet/cruditplatform-bundle.
First, the reality check that determines everything else: 2lenet/cruditplatform-bundle is a Symfony bundle, not a Laravel package. It has no ServiceProvider, no extra.laravel.providers auto-discovery entry, and no Blade/Twig-optional views. composer require 2lenet/cruditplatform-bundle will succeed in a Laravel app (it's just PHP + Composer), but it will do nothing — Symfony bundles are only loaded through config/bundles.php and a Symfony kernel boot.
So the honest "minimal steps" for a Laravel developer are:
composer.json and confirm what it requires: symfony/framework-bundle, symfony/dependency-injection, and almost certainly 2le/crudit. If symfony/framework-bundle is a hard requirement, treat this as ineligible for a Laravel project and stop here.2le/crudit. Registration is:
// config/bundles.php
return [
// ...
TwoLE\CruditPlatformBundle\CruditPlatformBundle::class => ['all' => true],
];
CruditCredentialWarmup. Based on the entire release history (1.0.2 "Create workflow credential warmup", 1.0.4 fix, 1.0.6 "Fix warmup", 2.0.0 "Modify warmup for credential compatibility"), the bundle's functional surface is essentially a cache-warmup hook that prepares crudit workflow credentials/roles at container/cache warmup time. That is your first and probably only use case: making a crudit-based admin boot cleanly after a cache clear.bin/console cache:warmup -vvv (see Gotchas for what to look for in the output).If you are on Laravel and need CRUD admin scaffolding day-to-day, this package is the wrong tool — see the alternatives at the end of Implementation Patterns. The rest of this assessment assumes either a Symfony app or a deliberate, isolated bridge.
Pattern 1 — "Warmup as a deploy step" (the realistic day-to-day use).
If you run a 2le/crudit-based admin, the bundle's value shows up in CI/CD and deploy scripts, not in application code:
# deploy pipeline
- run: bin/console cache:clear --no-warmup
- run: bin/console cache:warmup -vvv # CruditCredentialWarmup runs here
The pattern that matters is warming after every credential/role change. Since 2.0.0 changed warmup "for credential compatibility", pin the bundle version in composer.json and re-run your warmup smoke test on every upgrade — this is the class of thing that silently breaks a login flow.
Pattern 2 — Treat it as a thin, replaceable warmup layer. Because the bundle is small, the safest integration is to not depend on it directly from your application code. Let it be a passive registered bundle; if you need custom behaviour, decorate the warmup service rather than editing vendor code:
# config/services.yaml
services:
App\Crudit\MyCredentialWarmup:
decorates: twole.crudit_platform.credential_warmup # verify the real service id with `debug:container`
arguments: ['@.inner']
Find the real service id with bin/console debug:container --show-private | grep -i warmup before writing the decorator — the README does not document it, so this is discovery work, not copy-paste.
Pattern 3 — Isolated bridge (Laravel app, only if you must). If someone insists on reusing the warmup logic from Laravel, do not try to boot the bundle. Extract the intent into a Laravel command and keep the Symfony bundle out of your dependency graph:
// app/Console/Commands/WarmupCredentials.php
class WarmupCredentials extends Command
{
protected $signature = 'crudit:warmup';
public function handle(): int { /* replicate the warmup logic against your own models */ }
}
Booting a Symfony Bundle inside Laravel requires hand-rolling an Extension/ContainerBuilder lifecycle — that is days of work to gain one warmup routine. Not worth it.
Pattern 4 — Choose the right tool for the actual job.
For day-to-day Laravel CRUD scaffolding, the community-standard choices are filamentphp/filament, backpack/crud, or laravel/nova. They ship Laravel ServiceProviders, Blade views, policies, and migrations. If a stakeholder has proposed this bundle for a Laravel admin panel, the correct technical recommendation is to decline and route to one of those.
vendor/ and every "it's installed but nothing happens" symptom traces back to this.vendor/2lenet/cruditplatform-bundle/ directly — the bundle is small enough that this is minutes, not hours, but plan for it.2le/crudit. If 2le/crudit isn't installed or is the wrong major, expect container compile errors, not runtime warnings. Check with composer why 2le/crudit and composer why-not 2le/crudit <version>.bin/console lint:container — catches service wiring faults at compile time.bin/console cache:warmup -vvv — the bundle only executes here; a silent failure looks like a missing role/credential later.bin/console debug:container CruditCredentialWarmup — confirm the service is registered and which class backs it.composer.json ("2lenet/cruditplatform-bundle": "2.0.*"), not a floating constraint. With no test suite and no community, an unattended composer update is an unmonitored production change.How can I help you explore Laravel packages today?