Skip to content

Repository files navigation

Framework

A PHP Framework, built for building fast: routes, models, listeners and settings are found by their attributes, turned into typed classes by a build step, and driven from a single ./framework CLI.

Read the documentation →

Requirements

PHP 8.1 or newer with the mysqli, curl, zip, gd and mbstring extensions, and a MySQL database.

Installation

Add the repository to the repositories:

"repositories": [
{
"type": "git",
"url": "https://github.com/FrameworkDevAR/Framework.git"
}
]

Add the require using the corresponding version:

"require": {
"frameworkdevar/framework": "dev-main#v0.17.0"
}

Execute the installer:

./vendor/bin/framework install

See Getting Started for the entry point, the .env files and the first build.

The CLI

CommandDoes
installInstalls the console command and the phpcs config into the app.
buildGenerates the typed code into src/System from the discovered attributes.
destroyRemoves the generated code.
watchRebuilds whenever a source file changes.
migrateApplies the schema and data migrations.
migrationCreates a new data migration with the given title.
ensurePathsCreates the configured file paths.
iconsGenerates the stylesheet and preview page of every icon set.
versionPrints the installed version.

Run ./framework with no arguments to list them with their parameters.

About

A PHP Framework, built for building fast.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages