Getting started
Requirements
- PHP 8.1 or newer with
pdo_sqlite,json,mbstringandgd - A web server, or PHP's built-in server for local use
- No Composer, npm or build step
Check what you have:
php -v
php -m
gd is needed for plan images and for the figures embedded in the PDF report. Everything else works without it.
Install
php bin/migrate.php # create the database and schema
php bin/seed.php --demo # load reference data and three tutorial projects
The database is a single file at data/lumina.sqlite. Back it up by copying that file.
To start again from scratch:
php bin/migrate.php --fresh
php bin/seed.php --demo
Run
For local use:
php -S 127.0.0.1:8000 -t public
Then open http://127.0.0.1:8000.
On Apache, point the document root at public/. The supplied .htaccess handles the front controller rewrite, sets security headers and denies access to the database file.
On IIS, point the site at public/ and use the supplied web.config. IIS ignores .htaccess completely and needs a few extra steps, including write permission on data/ for the application pool: see Deploying on IIS. Run php bin/doctor.php to check the environment.
On nginx:
root /path/to/lumina/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /data/ { deny all; }
If the application is served from a sub-directory, this is normally detected from SCRIPT_NAME and needs no configuration. To set it explicitly, use LUMINA_BASE_PATH=/lumina in the environment or create config/local.php returning ['app' => ['base_path' => '/lumina']].
Your first design in about ten minutes
- Open the wizard. Give the project a name and pick the activity the space is used for. That
choice sets the illuminance, uniformity, glare and colour rendering criteria the design will be judged against, so it matters more than any other single input.
- Enter the geometry. Length, width, ceiling height and working plane height. Then the surface
reflectances: use one of the presets if you are not sure. Reflectance drives the interreflected component, which is typically a fifth to a third of the total, so a light room genuinely needs fewer luminaires than a dark one.
- Set the maintenance factor. 0.80 suits a clean interior on a regular cleaning cycle. Use 0.67
to 0.70 for dusty industrial spaces. Standards state their illuminance requirements as maintained values, so this factor is applied before anything is compared against them.
- Choose a starting fixture. Leave the grid counts blank and the wizard estimates them from the
lumen method, then squares the grid up so the spacing-to-mounting-height ratio keeps uniformity reasonable. The estimate is shown before you commit.
- Create and calculate. You land in the design workspace with a calculated result.
- Adjust. Drag luminaires on the plan, or change a reflectance in the side panel. Every edit
recalculates on the server within a few hundred milliseconds. Nothing is approximated in the browser: the numbers on screen come from the same engine that writes the report.
- Read the compliance panel. Anything failing comes with a quantified correction, for example
"add 5 luminaires" rather than "increase the illuminance".
- Save the layout, then export the PDF report.
The workspace
- Plan — false-colour illuminance with iso-illuminance contours. Drag to move a luminaire,
shift-click to select several, arrow keys to nudge (hold shift for a larger step), Delete to remove. Turn on Place on click to add luminaires by clicking.
- 3D — the room with the working plane shaded by the same scale. Drag to orbit, scroll to zoom.
- Results — every computed quantity, the compliance table and the method notes.
- Daylight — glazing and control zones, with the daylight factor plan.
- Grid values — the numbers as a table, which is also the screen-reader accessible view of the plan.
Simplified and advanced modes
Simplified mode exposes the parameters that change the answer for most designs and keeps sensible defaults for the rest. Advanced mode adds grid control, the glare observer height, per-luminaire aiming and the individual light loss factors. Switch in the project settings at any time; the mode changes what is shown, never what is calculated.
Keyboard and accessibility
- Every control is reachable by keyboard, with visible focus.
- The plan canvas is focusable: arrow keys nudge the selection, Delete removes it.
- The Grid values tab is the accessible equivalent of the plan, as a proper data table with row and
column headers.
- Holding shift while using the arrow keys in any numeric field steps ten times as far.
- Colour is never the only carrier of meaning: compliance verdicts are labelled as well as coloured,
and a perceptually uniform colour scale is available for the plan.