as3/modlr-bundle
AS3 Modlr Bundle provides a modular foundation for Laravel/PHP applications, helping you organize code into reusable modules and manage configuration and bootstrapping. Ideal for teams building maintainable, scalable, package-driven projects.
as3/modlr-bundle is a Symfony bundle (2.x/3.x era) wrapping the standalone as3/modlr REST ODM. It has 2 stars and 0 dependents. If you are in Laravel, the realistic "getting started" is: install the core as3/modlr library (not the bundle) and wire it by hand — see Implementation Patterns.composer require as3/modlr-bundle. If you are on a Symfony app, register As3\ModlrBundle\As3ModlrBundle in AppKernel (or bundles.php on later Symfony versions).DependencyInjection/As3ModlrExtension.php and Resources/config/services.yml — this is the authoritative list of services, aliases, and config keys. Trust the extension over the README.as3/modlr README for the ODM concepts (Manager, Connection, Adapter, metadata drivers, persisters) — the bundle is mostly DI glue around these.as3_modlr: — verify keys against the extension, since they shift between versions):
as3_modlr:
connections:
default:
base_url: "%modlr_api_url%"
adapter: { type: guzzle, ... } # whatever adapters the bundle registers
managers:
default:
connection: default
mappings:
AppBundle: { type: annotation, dir: Entity }
Product), map its metadata to the REST payload, inject the Modlr manager into a Symfony controller/service, and call find() / findAll() against the remote API. Do this before attempting persistence; reads are where this package is least surprising.doctrine/annotations, or a driver configured in mappings). Keep entities dumb, keep transport concerns in the connection/adapter.ProductRepository service that depends on the Modlr manager/repository and exposes domain methods (activeProducts(), bySku()). Do not let controllers talk to the manager directly — you want a seam to swap it out later.composer require as3/modlr (core library only).ModlrServiceProvider that constructs the Manager/Connection/adapter yourself, using Laravel config and a Guzzle client bound in the container.as3_modlr config schema is not documented well; read As3ModlrExtension and any Configuration.php. Copying examples from old blog posts will silently fail or throw InvalidConfigurationException.doctrine/annotations and correct PSR-4 paths in mappings. If entities hydrate as empty objects, the metadata driver is almost certainly not finding your classes — check the bundle's mapping compiler pass output.null fields rather than exceptions. Add explicit response-status assertions in the adapter (or a logging middleware) so 4xx/5xx are loud.findAll() paginates. Inspect the returned collection type; iterate pages explicitly and guard against unbounded loops.base_url/auth tokens belong in environment variables and Symfony secrets, not config.yml. The bundle has no credential redaction in error logs — verify before shipping.How can I help you explore Laravel packages today?