PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.


Keywords
framework, php, hleb, phphleb, hleb2
License
MIT

Documentation

HLEB2

HLEB LOGO

PHP Framework

version Total Downloads License: MIT PHP build

A distinctive feature of the framework HLEB2 is the minimalism of the code and the speed of work. The choice of this framework allows you to launch a full-fledged product with minimal time costs and appeals to documentation; it is easy, simple and fast. At the same time, it solves typical tasks, such as routing, shifting actions to controllers, model support, so, the basic MVC implementation. This is the very minimum you need to quickly launch an application.

Supports PHP 8.2+

Basic features of the framework:

  • Standard use or asynchronous (RoadRunner, Swoole)
  • MVC(ADR) or modular development
  • PSR support
  • Original router
  • Service container
  • Events
  • Logging
  • Dependency injection
  • Caching
  • Console commands
  • Class autoloader (optional)
  • Twig template engine (optional)
  • Debug panel
  • Creating an API
  • Registration module
  • Mutexes
  • Admin panel

The framework code has been thoroughly tested.

Installation

To start the framework HLEB2

  1. Download the folder with the project from its original location.

Using Composer:

$ composer create-project phphleb/hleb
  1. Assign the address of the resource to the "public" subdirectory.
  2. Establish the rights to allow changes for web server for the "storage" folder and all folders and files within it.

Customization

Files with project settings are located in the config folder of the installed project.

Attention! Initially in the file /config/common.php (in the absence of /config/common-local.php) the debug setting is set to true. This means that debug mode is active, which needs to be disabled for a public project.

Greetings

Project routes are assigned by the developer in the file “/routes/map.php”.

Route::get('/', 'Hello, world!');

Instructions for use

Link to documentation

The documentation site was created using the HLEB2 framework.


Tweet Telegram