Bref is an open-source tool for running PHP applications on AWS Lambda. It is sometimes mentioned alongside Tyhp, but the two projects address entirely different concerns and are complementary rather than alternatives.
Bref provides PHP runtimes and tooling for deploying PHP applications as serverless functions on AWS Lambda. It handles the infrastructure layer — packaging PHP applications, providing Lambda-compatible PHP runtimes, integrating with API Gateway, SQS, and other AWS services, and managing deployment via the Serverless Framework or AWS SAM. Bref is a deployment and infrastructure tool, not a language or compiler.
Tyhp and Bref operate at completely different layers of the stack:
Because Tyhp compiles to standard PHP, using Tyhp with Bref is straightforward:
No special integration is required. Tyhp's compiled output is standard PHP, so any tool that runs PHP — including Bref — works without modification.