Getting started
Atom Starter gives you a working application with page discovery, a shared layout, and SQLite configuration. Start it once before adding your own page. That gives you a working baseline and a place to put the examples in this guide.
Choose a starter checkout
To use the standalone Atom Starter distribution, clone it into a new project directory.
git clone https://github.com/atom-fm/starter.git my-atom-app
cd my-atom-app
If you are working from an Atom framework source checkout, run cd packages/starter from the checkout root instead. That starter's Composer configuration points to the sibling packages/framework directory, so it uses the framework source in the same checkout.
Install and start the app
Use PHP 8.4 or newer with PDO SQLite enabled and Composer installed. From the starter directory, run:
composer install
cp .env.example .env
php atom docs:index
php atom migrate
php atom serve
composer install installs the PHP dependencies. The .env file gives the starter its local settings, including the SQLite database path. docs:index prepares the starter's Markdown documentation, and migrate applies its database migrations. If you already have an .env file, keep your settings and skip the copy.
Open the URL printed by php atom serve. Check that the homepage and /docs both load. The homepage's PHP class and adjacent template live in app/Pages. Build your first page shows how to add new files there and open the result in the same app.
For a tour of what runs between startup and the first request, see Framework overview.
The HTTP examples use native curl. In Windows PowerShell 5.1, use curl.exe wherever an example says curl, because curl can be an alias for Invoke-WebRequest.