Examples
Less than 1 minute
Examples
What practical examples do you want to see?
Hazaar has been in development since 2012 and has been used in a number of projects, but our documentation is still a work in progress. We are working on a number of examples to help you get started with Hazaar and will be adding them to this page as they are completed.
If you have a specific example you would like to see, please let us know by opening an issue on our GitLab repository.
Examples
Getting Started
- Your First Application - Build a minimal app to learn project structure, config, and request flow.
Basic Concepts
- Routing - Define routes, parameters, and handlers to map URLs to controllers.
- Using Templates - Render views with layout and variable interpolation.
- Using Databases - Connect to a database and run basic queries.
- Controller Responses - Return HTML, JSON, redirects, and other response types.
Full Applications
- Creating a REST API - Build a versioned JSON API with controllers and routing.
- Creating a Web Application - Assemble a full web app with templates, assets, and routing.
- Creating a CLI Application - Create a console app with commands, options, and output.