atom-fm / framework
Atom Framework
Requires
- php: ^8.4
- atom-fm/console: ^0.1
- atom-fm/di: ^0.1
- atom-fm/mail: ^0.1
- atom-fm/profiler: ^0.1
- atom-fm/validation: ^0.1
- atom-fm/view: ^0.1
- dragonmantank/cron-expression: ^3.6
Requires (Dev)
- atom-fm/database: ^0.1
- atom-fm/orm: ^0.1
- atom-fm/sql: ^0.1
- phpbench/phpbench: ~1.4.0
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^11.0
Suggests
- atom-fm/database: Enables Atom database services and migrations. Installs ORM and SQL.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-26 19:27:53 UTC
README
Core framework package for Atom applications.
The public distribution is generated at atom-fm/framework. Changes belong in atom-fm/atom.
The package is developed in the Atom monorepo. Its public API includes Pages, the .atom.html template engine, routing, dependency injection, HTTP foundations, database support, and optional feature modules.
Install
Add the stable framework to a PHP 8.4 or later project.
composer require atom-fm/framework
Composer also installs atom-fm/sql and atom-fm/orm. For a complete application, create a project with Atom Starter.
composer create-project atom-fm/starter my-app
Follow the Getting started guide to configure and run your app.
Develop in the monorepo
Run these commands from packages/framework in the Atom monorepo.
composer install composer check
Benchmarks
From packages/framework in the monorepo, run the PHPBench suite after composer install.
php vendor/bin/phpbench run
The fixture is a catalogue page with 12 items, interpolated attributes, and conditional markup. The suite measures parsing the template source, rendering the parsed template, and handling a GET through an initialized application with a warm template cache. The request benchmark runs in process and excludes the web server and network.
Compare measurements on the same machine with the same PHP version and settings. Each benchmark runs in batches across multiple samples. Check the variation before drawing conclusions from small timing differences.
Repository-wide documentation and runnable applications live at the monorepo root.