ekipower/symfony-helper
Lightweight helper package for Symfony projects by Ekipower. Provides utilities to streamline common tasks and reduce boilerplate. Minimal public docs; check source for available helpers, usage patterns, and licensing details.
HttpFoundation, DependencyInjection) clash with Laravel’s equivalents (e.g., Illuminate\Http, Illuminate/Container).EventDispatcher vs. Laravel’s Events facade.Request/Response wrappers, form components) require rewrites or abstractions.Validator, Request class) or mature packages (e.g., spatie/laravel-validation, laravelcollective/html).psr/http-message). Solutions:
replace to substitute Symfony classes with Laravel equivalents:
"replace": {
"symfony/http-foundation": "illuminate/http"
}
ParameterBag) must be mocked or adapted.Symfony\Component\HttpFoundation\Request with a decorator:
class LaravelRequestAdapter implements RequestInterface {
public function __construct(private Illuminate\Http\Request $request) {}
public function get($key) { return $this->request->input($key); }
}
Router and Request objects are incompatible with Laravel’s Route and Request. Workarounds:
SymfonyRequestFacade).EventDispatcher) may surface late.spatie/laravel-activitylog).EventDispatcher, HttpKernel)?
Validator instead of Symfony’s Validator.Symfony\Component\HttpFoundation\Request with Illuminate\Http\Request.Symfony\Component\Validator\Validator with Laravel’s Validator.Macroable Trait: Extend native classes (e.g., Str::macro('symfonySlug', ...)).HttpFoundation, DependencyInjection).SymfonyRequestAdapter for Request objects.replace to avoid conflicts:
"replace": {
"symfony/http-foundation": "illuminate/http"
}
class_exists() to fall back to Laravel equivalents:
if (class_exists('Symfony\Component\HttpFoundation\Request')) {
return new SymfonyRequestAdapter();
}
return new IlluminateRequestAdapter();
ParameterBag → Illuminate\Support\Arr).HttpTestCase.Validator instead of Symfony’s Validator).RequestInterface) to decouple from Symfony.spatie/laravel-profiling to identify bottlenecks.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Symfony dependency |
How can I help you explore Laravel packages today?