bref/cli
Command-line tooling from the Bref project for deploying and managing serverless PHP applications on AWS Lambda. bref/cli helps scaffold, build, and ship PHP functions with simple commands, complementing Bref's runtime and deployment layers.
bref/cli is the piece that decides between maintaining bespoke deploy scripts (raw CloudFormation, Serverless Framework configs, custom Makefiles) and adopting an opinionated vendor/bin/bref deploy path. It is the concrete artifact behind the "serverless Laravel" bet, so it belongs in any build/buy/assemble evaluation.bref deploy --param lets a single pipeline inject per-environment values (stage names, account IDs, feature-flagged resources) into serverless.yml without maintaining per-environment config forks — a real reduction in the cost of standing up a staging environment alongside production.Adopt when:
--param in 1.3.4).Look elsewhere when:
Signal caveat worth stating plainly: 4 stars and 0 recorded dependents are weak adoption signals, but they are an artifact of the CLI being recently split out of the main bref/bref repository rather than evidence of an unproven tool. Do not read them as maturity; do read them as a reason to require a two-week proof of concept and to pin the version explicitly before committing.
Release cadence note: 1.3.4 is a single small, additive feature (--param) with no breaking changes or deprecations, which is consistent with a young but actively maintained 1.x line. That is a green light for a spike, not yet a green light for treating the CLI as a stable platform dependency without pinning.
To executives: This is open-source deployment tooling for running our Laravel application on AWS Lambda — no license fee, no per-application SaaS subscription, and we pay AWS only for what we actually consume. It removes a category of operational work (server patching, capacity planning, idle worker fleets) and lets us ship scheduled jobs and background processing without standing up new infrastructure. Because it generates standard AWS infrastructure under the hood, our exit cost is low and we are not locked into a proprietary platform. The latest release adds deploy-time parameters, which means one pipeline can promote the same build across staging and production instead of us maintaining separate configuration copies.
To engineering: composer require bref/cli --dev gives us a single deploy command that provisions functions, queues, cron schedules, and HTTP endpoints declaratively, works from any CI runner, and keeps environment configuration in version control. bref deploy --param (new in 1.3.4) covers serverless.yml-based apps, so per-environment values are injected at deploy time rather than committed as separate files. It is a small, isolated dependency we can pin, evaluate in a spike, and back out of without touching application code. The known constraints — cold starts, 15-minute execution limit, ephemeral disk, connection pooling via RDS Proxy — are documented and bounded, and we should validate them against our heaviest endpoints before rollout.
How can I help you explore Laravel packages today?