Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Api Bundle Laravel Package

monofony/api-bundle

An API bundle for Monofony applications, providing configuration and integration for exposing store resources through a structured API. A small, low-adoption package best suited to projects already built on the Monofony stack, with limited documentation and community support available.

View on GitHub
Deep Wiki
Context7

Monofony API bundle.

Frequently asked questions about Api Bundle
Is monofony/api-bundle compatible with Laravel?
No. It is a Symfony bundle built for the Monofony distribution, a Sylius-derived e-commerce stack running on Symfony, Doctrine, and API Platform. It ships no Laravel service provider, no publishable config files, no facade, and no container bindings, and it registers through config/bundles.php rather than Laravel package discovery. Installing it in a Laravel app would mean transplanting Symfony, Doctrine, and API Platform into your project, which is far larger than the feature value it delivers.
How do I install monofony/api-bundle?
You install it with Composer and then register the bundle in your Symfony application's config/bundles.php. There is no Laravel auto-discovery step because the package was never designed for Laravel, and the repository documentation is thin enough that the source code is effectively the installation guide. Expect to resolve dependency constraints against monofony/core, Doctrine, and API Platform before anything boots.
Which Symfony and PHP versions does monofony/api-bundle support?
The repository does not clearly state supported versions, and the package appears pinned to an older generation of the stack, likely Symfony 4.4 or 5.x, PHP 7.4 or 8.0, and API Platform 2.x. You should read the composer.json constraints on php, symfony/*, api-platform/core, and doctrine/* before assuming it will install on a modern runtime. There is no Laravel version support in any form.
Can I use monofony/api-bundle without the full Monofony application?
Probably not in any practical sense. The bundle is explicitly designed to sit alongside the Monofony core packages and to be extended rather than replaced, and it depends on Monofony and Sylius domain conventions such as resource metadata, serialization groups, and state machines. Whether it can run standalone without the full application skeleton, fixtures, admin, and user model is unverified and worth confirming from composer.json before any spike.
What does monofony/api-bundle actually add over a plain API Platform resource declaration?
It provides preconfigured API Platform resource mappings and routing, predefined serialization groups for request and response payloads, consistent validation and error responses, and integration with Symfony Security for access control. In practice much of this is likely a thin convention layer over API Platform configuration you would write yourself in a Symfony app. The honest answer for a Laravel team is that none of this machinery is portable.
How does authentication and authorization work in monofony/api-bundle?
The description only mentions integration with Symfony Security for access control and does not document a shipped authentication mechanism, so it is unclear whether JWT, session, or API key authentication is included. That silence is itself a signal that auth is something you configure in your Symfony application rather than something the bundle hands you. If you need a Laravel equivalent, use Sanctum or Passport with policies and gates instead.
Is monofony/api-bundle actively maintained and safe for production?
The available signals are uniformly adverse: one star, zero dependents, no vendor backing, no evidenced production usage, and very limited documentation. Test coverage cannot be verified from outside the repository, and the package is likely pinned to an older Symfony and API Platform generation, which raises the risk of Composer conflicts and serializer drift. Treat it as dormant or abandoned unless the last commit date and open-issue count prove otherwise, and note that MIT licensing removes legal friction but not the maintenance burden.
What should Laravel developers use instead of monofony/api-bundle for a JSON API?
Use Laravel's own primitives: versioned route groups under /api/v1, API Resources for response shaping with explicit field allowlists, form requests for write validation, and policies or gates for authorization. Add Sanctum or Passport for authentication, and a consistent exception handler or response macro so error payloads stay uniform. If you want a specification-driven layer, evaluate Laravel JSON:API or the experimental API Platform Laravel integration carefully rather than adopting a Symfony bundle.
How do you test an API built with monofony/api-bundle?
In a Symfony context you would write functional tests with PHPUnit and the framework's kernel or web test case, asserting on JSON responses, and unit tests around your resource metadata and serialization groups. The bundle itself does not appear to ship dedicated test utilities, and its own coverage is unverifiable from outside. In Laravel the equivalent is HTTP tests using json assertions against your versioned routes, which is simpler to set up and maintain.
Can I reuse the design ideas from monofony/api-bundle in a Laravel application?
Yes, as a reference architecture rather than a dependency. The transferable pattern is versioned REST resources over catalog and order domain objects, explicit serialization contracts that map cleanly to Laravel API Resources with field allowlists, form requests for write validation, and a policy layer for authorization. What does not transfer is the code, since it is bound to API Platform resource metadata, Doctrine mappings, and the Symfony service container. Use it to estimate how much surface area an API-first commerce layer really implies, then build it with Laravel primitives.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core