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
Rest Api Bundle

Rest Api Bundle Laravel Package

mediamonks/rest-api-bundle

Symfony bundle for quickly building REST APIs with annotation-driven routing, automatic request/response serialization, validation, and consistent error handling, cutting boilerplate for controllers and DTOs.

View on GitHub
Deep Wiki
Context7

Integrates the MediaMonks REST API Spec in Symfony

Frequently asked questions about Rest Api Bundle
Does mediamonks/rest-api-bundle work with Laravel?
No. It is a Symfony bundle whose delivery contract is a Bundle subclass registered in a Symfony kernel plus a DI extension, and Laravel does not implement the FrameworkBundle/Kernel/bundle-extension model. Composer will install it, but there is no way to boot it inside a Laravel application. For Laravel you should use native API Resources, exception renderable hooks, the api middleware group, and Sanctum or Passport instead.
What does the MediaMonks REST API Bundle actually do?
It is a Symfony bundle for quickly building REST APIs with annotation-driven routing, automatic request and response serialization, validation, and a consistent error-handling contract. The goal is to cut boilerplate in controllers and DTOs by centralizing the HTTP plumbing. All of that is delivered through Symfony's bundle and dependency-injection mechanisms, not as a framework-agnostic library.
How do I install mediamonks/rest-api-bundle?
You would add it with Composer and register the bundle in config/bundles.php in a Symfony application, which is where its service configuration and routing hooks take effect. There is no Laravel service provider or facade, so installation alone gives you nothing in a Laravel app. Before any spike, check the composer.json for PHP and Symfony version constraints.
Which PHP and Symfony versions does this bundle support?
The package metadata does not spell this out clearly in the evaluation, and bundles of this vintage commonly pin Symfony 3.x or 4.x era constraints. Read the composer.json require and require-dev blocks before assuming it will install on a current Symfony release. The constraints also matter if you are comparing them against your Laravel version's PHP requirements.
What is the Laravel equivalent of this package?
Laravel's native primitives cover the same ground almost one-to-one: API Resources for response shape, App\Exceptions\Handler with renderable closures for a uniform error contract, versioned route files in the api middleware group, and Sanctum or Passport for auth. If you need a standardized payload envelope, packages such as spatie/laravel-fractal or response-style wrappers fill that gap. Building on these is strictly cheaper than adopting a Symfony bundle.
Can I reuse parts of the bundle in a Laravel codebase?
Only the plain PHP classes that have no container dependency are candidates, and for a package whose purpose is HTTP and API plumbing, that is unlikely to be the interesting part. The MIT license permits extraction with attribution, so you can copy conventions and small pieces into your own code. The practical approach is to harvest the response envelope, error catalog, status mapping, and versioning header rules rather than install the package.
Is mediamonks/rest-api-bundle actively maintained?
The evaluation flags 15 stars, zero dependents, and no visible downstream validation, which usually suggests an experiment that was open-sourced and left behind. Check whether the repository is archived and whether there has been any release in the last 24 months. Treat it as a reference implementation, not a dependency you can rely on for support.
What hidden dependencies does the bundle assume?
Bundles of this era typically delegate the real work to siblings such as FOSRestBundle, NelmioApiDoc, JMS Serializer, and SensioFrameworkExtraBundle, each of which becomes another unsupported dependency. Confirm exactly what the composer.json requires and which services the DI extension wires up. Silent coupling to other bundles is the main reason a partial extraction rarely works cleanly.
What are the production risks of depending on this package?
API plumbing sits directly on the request, response, and error path, so an abandoned dependency there means you own the security review of content negotiation, deserialization, and error-detail leakage yourself. Those are exactly the places where mistakes are externally visible to clients. The legal risk is low because MIT is permissive with attribution and no copyleft exposure, but the lifespan and coupling risks are high.
Can I run the bundle as a separate Symfony service next to Laravel?
Yes, but that is an architectural fork rather than an integration: you would run a parallel Symfony application that owns those endpoints while Laravel handles the rest. That only makes sense if a Symfony service already exists in your estate and the bundle is scoped to it. If the decision is Laravel-first, the bundle should be read as a reference for API conventions and nothing more.
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