Simple and scalable PHP with serverless
Simplify your infrastructure and scale with ease.
Bref is an open-source project that helps you go serverless on AWS with PHP.
serverless.yml
service: demo
provider:
name: aws
functions:
web:
runtime: php-82-fpm
handler: public/index.php
events:
- httpApi: '*'
requests, jobs, and messages handled with Bref in the last 30 days
We're in 2024. Applications should scale automatically. Hosting should be reliable and cost-efficient. Infrastructure should accelerate development, not consume our time.
Bref deploys PHP applications to AWS Lambda and sets up the rest of the infrastructure using serverless services.
serverless.yml
file. Then deploy to AWS with serverless deploy
. Bref integrates with the Serverless Framework for a great developer experience.$ serverless deploy
Deploying demo to stage dev (us-east-1)
✔ Service deployed to stack demo-dev (31s)
endpoint: https://yti4le2q5.lambda-url.us-east-1.on.aws/
functions:
web: demo-dev-web (750 KB)
cron: demo-dev-cron (750 KB)
worker: demo-dev-worker (750 KB)
Serverless means whatever you choose it to mean.
Run PHP as usual, like on any server. Except it scales (almost) infinitely and you don't maintain the infrastructure.
Lift-and-shift existing apps or build new ones with your favorite framework.
Or go the extreme opposite: build event-driven microservices with infinitely scalable cloud services like SQS and EventBridge.
Or anything in between, that works too.
Become a sponsor and help Bref be a sustainable open-source project.
Get started with Bref on your own, or get in touch for support and consulting.