Changelog
All notable changes to this project are documented in this file. The format is based on Keep a Changelog, and this project follows Semantic Versioning.
Unreleased
Added
- The export of the demo can fail. A box under its start, "Let the worker give up half way", lets the export end at 1,200 of 2,400 orders, and the tool then shows
error()in place of the bar and offers no file. The tutorial on long tasks walks through those lines. The library itself is unchanged.
0.3.0 - 2026-11-29
Help for AI assistants: the whole library on one page that ships with the package, lines that tell an assistant where the page is, and a trial that counts what the help is worth. The code of the library is the same as in 0.2.0, so a tool that runs today runs as before.
Added
docs/on-one-page.md: the model, the rules, every function with its arguments and one whole tool, on one page. It ships with the package, for a person who wants the library at a glance and for an AI assistant that is asked to write a tool. The tests hold the page against the code: every function assrc/functions.phphas it, no function that is not there, and every example run as a tool.- An assistant is told that the page is there. The README has the lines for
AGENTS.mdorCLAUDE.md. Laravel Boost offers a few lines more withphp artisan boost:install(they are inresources/boost/guidelines/core.blade.php), and Symfony AI Mate writes the same text intomate/AGENT_INSTRUCTIONS.md(extra.ai-mateincomposer.jsonnames it). Tried with Boost 2.10 and AI Mate 0.15. - A trial that counts what this help is worth, in
e2e/assistants: ten tasks, a browser check for each, and a script that asks Claude Code for every tool without the help, with the page, and with the page and the lines. On 2026-11-28, 39 of 40 tools that were written with the help worked at the first try, and 18 of 20 without it. With the lines an assistant read a third of the tokens.e2e/assistants/README.mdhas the counts and what they cannot say.
0.2.0 - 2026-11-28
Tools run inside Symfony and Laravel, a tool can be closed to some users, a table reads its pages from a database, and a bar shows how far a long task is. Before you update from 0.1.0, read "Security" and "Changed": a few things behave differently, and a class of your own that implements Session needs one more method.
Added
progress()shows how far a task is: a label, the browser's own bar and a percentage, or your own words withtext:. Without a value the bar only says that work is going on. Withrefresh()on the same page it follows a task that a worker does somewhere else. There, good news of a button (success(),info()) next to a bar that is not full stays for ten seconds, and the page then goes on by itself. Bad news waits for the user, as on every page. The demo has a tool that exports orders this way.table()takes a function in place of the rows, for a table that is too long to pass in. The table asks it for one page at a time with aTableQuery(the search, the order, a limit and an offset), and the rows stay in the database.sortable:names the columns whose headers sort, andcount:says how many rows there are. Withoutcount:the table offers "Previous" and "Next" without a count. Ticks count for the page on the screen, and the table says so when a turned page leaves ticked rows behind.respond()hands the page back instead of sending it, for an application built on Symfony or Laravel: a controller makes the response of its framework from the status, the headers and the body.session:keeps what the tools keep in the session of the application. Tried inside Laravel 12 and 13 and Symfony 7.4 and 8.1.variables:inserve()gives every tool of a folder variables by name.user()and the log name a user object of Symfony or Laravel by its identifier (getUserIdentifier(),getAuthIdentifier()), when the login check returns one.- The list of tools says when the folder of tools lies in the web root, where a web server runs a tool file by its name and past the checks of
serve(). The note shows only where error details are shown. allow:inserve()andconfigure()says who may open which tool. It gets what the login check returned and the id of a tool. A tool that is not allowed is left out of the list and answers "Not allowed" before anything of it runs. Only a plaintrueopens a tool, and the question is asked on every request.
Security
- What the library keeps in a session belongs to the user the login check named. When another name shows up in the same session, as after a login without a logout before it, the saved inputs, the uploaded files, the waiting messages and the token of the forms are dropped. Before, they went to whoever used the session next. A session that an older version began has no owner yet, so it starts from nothing once as well.
Changed
- A user object that has
getUserIdentifier()orgetAuthIdentifier()goes by what that returns, also when the object is a text as well (__toString()). Before, the text was its name. - The
Sessioninterface has a new method,clear(). A class of your own that implements the interface needs it too. - A served tool that ends PHP with
exitgets its page sent at that moment, and no longer when PHP shuts down. - The list of tools is at the base as
base:is written. Withbase: '/admin/tools'the links to the list now lead to/admin/toolsand no longer to/admin/tools/. End the base with a slash to keep the old address.
Fixed
- After a fatal error in a served tool the page reports the failure also when another shutdown function raised a warning first. Before, that warning hid the error, and the half-drawn page was sent as if all was well.
0.1.0 - 2026-11-27
First version. Requires PHP 8.2+ with the mbstring and session extensions, and no other package.
Added
- A tool is one PHP script. It runs from top to bottom and runs again on every interaction.
- Text and messages:
title,heading,note,code,json,link,divider,metric,success,info,warning,error. - Inputs that return their current value:
text,textarea,number,select,checkbox,date_input. radioshows every option and takes one.multiselectshows a tick box for every option and returns the ticked ones as a list. Both take their options the wayselectdoes, lay them out in a column, in several columns or in a row (horizontal: true), and can be filled in by a link.tablewith sorting, pages (pageSize:), a search box (search: true) and rows you can tick on any page, one by one or a page at a time.chartwith bar and line charts drawn as SVG.buttonwith an optional question before it acts, pluscolumns,stopandrerun.expanderputs a part of the page under a line that opens and closes it, andtabsputs parts behind headers with one of them in view. What is out of sight still runs: the inputs inside keep working, and opening a part or changing the tab needs no run of the tool. The page remembers what was left open.refreshlets a page run again by itself every few seconds, for dashboards and queues. It waits while the user is in the middle of something, stops while the page is out of sight or nobody is there, waits longer after failures, and never presses a button or changes what the page remembers.field_errorsays under an input what is wrong with what it holds, andvalidtells whether anything was found wrong. After a pressed button the first wrong input gets the keyboard focus, and an expander or a tab that hides it comes into sight. Screen readers are told that the input is invalid and read the note with it. A file that a file field turns down is marked in the same way and counts forvalid. The log entry of a press says what was found wrong.file_inputtakes files from the user: one or several, with limits on size and kind. A file stays on the server between the runs of a tool, in a folder only PHP reads, and the page names it by a random handle.Uploadgives the toolname,size,path,contents(),saveTo()andforget(), androws()reads an uploaded CSV file as rows, whichever spreadsheet wrote it.uploads:sets the folder,clean_uploads()deletes what was left behind.downloadhands the user a file: rows as CSV or JSON, or any text.csvwrites rows as CSV with a choice of columns and separator. Cells that a spreadsheet would run as a formula are defused.serve()for a folder of tools with an index page,configure()for a script on its own, and thescript-ui servecommand for local use.- A login check and an audit log (
auth,log), protection against forged requests, a strict Content-Security-Policy, and local-only access while no login check is set. - The help text of an input is read out with the input by software that reads the page.
- Pages update in place with JavaScript and work as plain forms without it. A title in Arabic or Hebrew turns the page right to left.
- The library's own texts ("Yes", "Reset", "No rows.") in English, Arabic and German. A page follows the language of its title,
language:sets one language for every page, andtexts:replaces single texts or adds a language.