canaltp/nmm-portal-bundle
Laravel bundle for building an NMM portal: provides prebuilt portal features, configuration, and integration helpers to accelerate development of a portal-style web app, including common modules, routing, and service setup.
HttpFoundation, SecurityBundle, Twig). Laravel’s equivalents (e.g., Illuminate\Http, Laravel Fortify) would need mapping or abstraction layers to avoid conflicts.YAML/XML) and middleware (EventDispatcher) differ from Laravel’s. A custom router integration or rewriting middleware may be needed.symfony/http-foundation for request/response handling).EventDispatcher with Laravel’s events/listeners or a custom bridge.{{ include('vendor/nmm-portal::template.twig') }} or compile Twig to Blade via a build step.asset() helper.portal directory) with its own composer.json.// app/Providers/NmmPortalServiceProvider.php
public function register() {
$this->app->singleton('nmm.portal.service', function ($app) {
return new \NmmPortalBundle\Service(); // Adapted for Laravel
});
}
routes/web.php:
Route::prefix('portal')->group(function () {
Route::get('/dashboard', [NmmPortalController::class, 'dashboard']);
});
NmmPortalAuthMiddleware).ContainerInterface vs. Laravel’s Container. Use a decorator pattern or service bridge.Router vs. Laravel’s Router. Rewrite routes or use a custom router service.FormComponent may need replacement with Laravel’s FormRequest or a custom wrapper.composer why-not to detect version conflicts.Cache::remember) to mitigate bundle-specific performance issues.How can I help you explore Laravel packages today?