Search by

rbaezc / hexagen-app

rbaezc

Application skeleton for the HexaGen PHP framework.

Package info

github.com/rbaezc/hexagen-app

Homepage

Issues

Documentation

Type:project

pkg:composer/rbaezc/hexagen-app

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

v1.2.0 2026-11-29 20:27 UTC

This package is auto-updated.

Last update: 2026-11-30 04:16:54 UTC


README

The application skeleton for HexaGen PHP: boot once, ship features as vertical slices.

Create a project

composer create-project rbaezc/hexagen-app my-app
cd my-app
php hexaphp server:start

create-project copies .env.example to .env and fills APP_KEY and JWT_SECRET with random values. The default database is SQLite (database/hexagen.sqlite), so the app runs with no extra services.

server:start runs FrankenPHP in worker mode. If FrankenPHP is not installed, it offers to download the official build into the project.

Requirements: PHP 8.3 or newer and Composer.

Add a feature

php hexaphp make:slice Flights

That creates src/Slices/Flights/ with a controller, a domain model, Routes.php, Services.php and its table. Slices are discovered at boot; there is no central route file to edit.

Layout

config/            Framework configuration (reads .env)
database/          Migrations, seeders and the SQLite file
lang/              Your translations; they override the framework's key by key
public/index.php   Entry point and FrankenPHP worker loop
resources/views/   Twig templates
src/Slices/        Your features, one folder each
storage/           Logs and uploaded files
tests/             PHPUnit tests (composer test)

Documentation

Everything else (routing, the ORM, queues, live components, configuration) is in the HexaGen PHP docs.

License

MIT. See LICENSE.