Berlioz Framework

website·Indexed 32 days ago

https://getberlioz.com/docs/

A slim, lightweight PHP framework for building websites, intranets, APIs, CLI tools, and web applications.

Tokens
477
Snippets
1
Records
3
Agent score
7%

What's inside Berlioz

  1. Overview of Berlioz Framework

    Berlioz is a slim, lightweight, open-source PHP framework (MIT license) designed for building websites, intranets, APIs, CLI tools, and web applications. It is compatible with PHP 8.2 to 8.5+ and adheres to multiple PSR standards, including PSR-4, PSR-7, PSR-11, PSR-12, PSR-14, PSR-15, PSR-16, PSR-17, and PSR-18. Key architectural features include a service container with auto-wiring, attribute-based routing, a PSR-15 middleware pipeline, and a modular package system where components can be used independently.
  2. Initialize a new Berlioz project

    Use the berlioz/website-skeleton project to quickly start a new website project using Composer.
    composer create-project berlioz/website-skeleton my-project --remove-vcs
  3. Berlioz Framework core packages reference

    Berlioz is composed of modular packages that can be used independently. Key packages include:

    • berlioz/core: Framework kernel, configuration, and service container management.
    • berlioz/router: HTTP routing with PHP 8 attribute-based definitions and regex parameters.
    • berlioz/http-core: PSR-15 middleware pipeline and controller handling.
    • berlioz/http-message: PSR-7/PSR-17 HTTP messages and factories.
    • berlioz/http-client: PSR-18 HTTP client with cURL/stream adapters and session support.
    • berlioz/config: Multi-source configuration (JSON, YAML, INI) with dynamic interpolation.
    • berlioz/service-container: PSR-11 DI container with auto-wiring.
    • berlioz/event-manager: PSR-14 event dispatcher.
    • berlioz/mailer: SMTP or PHP mail transport.
    • berlioz/form: HTML form handling with validation, hydration, and PSR-7 integration.
    • berlioz/queue-manager: Background job processing (AMQP, Redis, SQS, database, memory).
    • berlioz/cli-core: CLI application framework with attribute-based argument declaration.
    • berlioz/twig-package: Twig template engine integration.
    • berlioz/hector-package: Hector ORM integration.
    • berlioz/flash-bag: Session-backed flash messages.