- Does mtarld/symbok-bundle work with Laravel?
- No. Symbok Bundle is a Symfony bundle that depends on Symfony's kernel, bundle registration, dependency injection container and Doctrine annotation reader. Laravel does not expose those extension points, so there is no supported integration path. Do not build a custom adapter; use Laravel's native container, attributes and model features instead.
- Can I install mtarld/symbok-bundle in a Laravel project?
- Composer may install the package because it is a PHP library, but installation is not integration. There is no Laravel service provider, no Eloquent support and no annotation metadata pipeline for Laravel classes. Making it work would require a bespoke bridge with no upstream support, which is not recommended.
- What Laravel versions are supported by Symbok Bundle?
- None officially. The package targets legacy Symfony 4 and 5 applications on PHP 7.x, and Laravel 10 or 11 is out of scope. There is no Laravel version compatibility matrix because the package was never designed for Laravel.
- Is mtarld/symbok-bundle still maintained?
- No, the repository is archived. That means no security patches, no compatibility work for current PHP or Symfony releases and no issue triage. Treat it as abandoned rather than as a dependency to evaluate for new projects.
- What is a Laravel alternative to Symbok annotations for getters and setters?
- Use PHP 8 constructor promotion, typed properties and readonly properties for DTOs, and Laravel accessors and mutators for Eloquent models. Laravel's container already resolves bindings and attributes natively, so a Lombok-style annotation bundle is unnecessary. IDE generation or well-maintained code generation tools can cover remaining boilerplate.
- Can Symbok generate methods for Eloquent models?
- No. Symbok works on plain PHP classes through Doctrine annotations and Symfony compiler passes at container compile time. Eloquent models rely on Laravel's own magic methods, accessors, mutators and casts. There is no supported way to apply Symbok generation to Eloquent models.
- How do I install and configure Symbok Bundle in Symfony?
- You register the bundle in bundles.php, enable the Doctrine annotation reader and annotate classes with @Getter, @Setter, @Constructor, @Adder or @Remover. That setup only fits legacy Symfony 4 or 5 projects on PHP 7.x. Because the package is archived, it is not suitable for new Symfony work either.
- Does Symbok Bundle support PHP 8 attributes?
- Symbok was built around doctrine/annotations and legacy Symfony versions, not native PHP attributes. Symfony 6.2 and later ship native attributes such as #[Route], #[Template] and #[IsGranted], which supersede this approach. The package has not been updated to provide a forward-compatible attribute path.
- What are the production risks of using an archived package like Symbok?
- Archived packages receive no security fixes, no dependency updates and no bug triage. Symbok also depends on doctrine/annotations, which the PHP ecosystem is actively retiring, and it has zero dependents and minimal production validation. A dependency policy that permits this package is too loose; if it is already present, schedule removal as technical debt.
- Is Symbok Bundle a good Lombok-style solution for Laravel DTOs?
- No. It is Symfony-only, annotation-driven and archived, so it does not fit Laravel DTOs or Eloquent entities. PHP 8 constructor promotion and readonly properties eliminate most DTO boilerplate without an extra dependency. For Laravel, prefer native language features and maintained packages over a custom Symfony bridge.