fresh/common-api-bundle
A Symfony bundle that provides shared building blocks for building APIs, bundling common utilities, configuration, and reusable components to speed up development across projects.
Architecture fit — critical mismatch. Despite being catalogued alongside Laravel/PHP packages, fresh/common-api-bundle is explicitly a Symfony bundle ("RESTful API services based on Symfony"). Symfony bundles are not consumable by Laravel: they rely on Symfony's Kernel, DependencyInjection container compiler passes, EventDispatcher, and bundle registration in AppKernel/bundles.php. Laravel uses service providers, its own container, and a middleware/HTTP kernel pipeline. There is no native bridge. Any "leverage" in a Laravel codebase is therefore a port or extract exercise, not an composer require.
Integration feasibility — low as-is, moderate as a reference. Realistic options, in order of cost:
spatie/laravel-fractal, league/fractal, Laravel API Resources, symfony/serializer standalone).Technical risk — high. Signals are uniformly negative: 0 stars, 0 dependents, score 0, hosted on Bitbucket (lower ecosystem visibility than GitHub/Packagist mirroring), and a namespace (fre5h) and naming convention that suggest a Symfony 2/3-era codebase. Unverified: PHP version compatibility (likely pre-PHP 7.4 strictness), Symfony version constraints, license terms, security posture, and whether the repo is archived or has moved. A 0-dependent package is an unvetted dependency; supply-chain and abandonment risk dominate.
Key questions for the owning engineer before any commitment:
composer.json pin? Does it install cleanly on PHP 8.x?Stack fit — poor. Our stack is Laravel/PHP; this artifact is Symfony/PHP. The language is shared, the framework contracts are not. Treat the bundle as a design reference, not a dependency.
Migration path. Two credible lanes:
Compatibility. Before any prototype, verify against a pinned matrix: PHP version, Symfony major, PSR compliance, and transitive dependency conflicts with the Laravel app's composer.lock. Given the abandonment signals, expect to pin or patch transitive deps. Do not allow it to force a PHP downgrade in the main app — that is a hard stop.
Sequencing.
The default recommendation is drop and extract; every alternative must justify the added maintenance surface against a 0-dependent, 0-star artifact.
Maintenance. Zero external maintainers expected. Bitbucket hosting, no dependents, and a 0 score imply no active community. We would own the code outright from day one — including any security patches to the inherited HTTP/serialization logic. Budget this as our maintenance cost, not a vendor's.
Support. No vendor support, no issue-tracker activity to rely on, no documented upgrade path. Internal runbooks must be authored; there is no upstream to escalate to.
Scaling. The bundle's feature set (REST conveniences) is generally low-throughput overhead, so raw scaling is unlikely to be the constraint. The real scaling risk is organizational: a second framework runtime (if sidecar) fragments the platform team's expertise and on-call model.
Failure modes.
Ramp-up. If we go the sidecar route, the team must ramp on Symfony bundle conventions (kernel, DI compiler passes, event subscribers) on top of Laravel. That is a real onboarding cost for a team whose center of gravity is Laravel. The extraction route avoids most of this — the ramp-up cost is one-off during the audit, followed by ordinary Laravel-native work.
Bottom line for the TPM: this package is a reference artifact, not a dependency. Recommend a time-boxed audit to extract feature requirements, then build them Laravel-native. Do not plan integration work, budget, or delivery milestones around consuming the Symfony bundle directly.
How can I help you explore Laravel packages today?