Official documentation
Understand PHPAML.
Build without guessing.
Practical guides and reference for the autonomous AML 1.2.x environment.
Create an application
AML downloads the official template, verifies its checksum, and installs the engine in an isolated environment.
aml create my-project
cd my-project
aml install
aml doctor
aml serveThe site is available at http://localhost:8000. Changes trigger an automatic browser refresh.
Project architecture
my-project/
├── app/
│ ├── Controllers/
│ ├── Models/
│ ├── public/{css,js,img}/
│ └── views/partials/
├── configs/app.php
├── database/migrations/
├── tests/
├── aml_env/
└── index.phpWork in app, configs, database, and tests. The aml_env contains the engine and its dependencies.
Essential commands
aml create .Create in the current folderaml installInstall engine and dependenciesaml doctorDiagnose the environment and projectaml routesList routesaml testRun testsaml updateInstall the latest versionRoutes and controllers
'GET /users/{id}' => [
'handler' => [UserController::class, 'show'],
'middleware' => [AuthMiddleware::class],
'name' => 'users.show',
],Views and public files
The template provides header.php, footer.php, css/index.css, js/main.js, and img/favicon.svg.
Before production
aml install --production
aml doctor --json
aml routes
aml testNote
aml serve is for development only. In production, use HTTPS and APP_DEBUG=false.
Ready to try it?Choose your installer →