Routing & middleware
Define expressive routes, work with HTTP methods and named URLs, and protect endpoints with middleware.
A thoughtful PHP framework
Zap gives you a clean foundation for modern PHP applications: practical tools, expressive workflows, and just enough structure to stay focused on what matters.
Routing · data · security · interactive UI
The toolkit
The documentation walks through the essentials and the batteries included, with focused guides for each part of your stack.
Define expressive routes, work with HTTP methods and named URLs, and protect endpoints with middleware.
Connect to your database and build common data workflows with the framework's database tools.
Learn the available security utilities and validate incoming data with clear, reusable rules.
Build reactive experiences with Litewire's component and request workflow.
Manage registered CSS and JavaScript assets, or use Vite for modern frontend entrypoints.
Explore the command line, sessions, files, hashing, flash messages, and other built-in helpers.
A clear path forward
Begin with setup and configuration, then follow the guides into routing, core utilities, and the framework's built-in batteries.
Browse all documentation