rbaezc / hexagen-app
Application skeleton for the HexaGen PHP framework.
Package info
Type:project
pkg:composer/rbaezc/hexagen-app
Requires
- php: >=8.3
- rbaezc/hexagenphp-framework: ^2.5
Requires (Dev)
- fakerphp/faker: ^1.23
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.