← All news

PHPAML CLI 1.7 beta.39 makes reactive PHP feel natural

Direct PHP state, local stylesheet imports, and verified installers for macOS, Windows, and Linux.

PHPAML CLI 1.7.0-beta.39 is available for macOS Apple Silicon, Windows x64, and Debian/Ubuntu x64. New View applications install PHPAML View 0.1.0-beta.11 and Engine 0.1.0-beta.6.

State written as ordinary PHP

Properties marked with `#[State]` can now be displayed, bound to a field, and modified directly. The advanced state and action APIs remain available, but common interactions no longer require learning a separate action vocabulary.

phpaml — zsh
#[State] private int $counter = 0;
#[State] private string $name = '';

return VStack(
    Text($this->counter),
    Input()->value($this->name),
    Button('Increment')->onClick(fn () => $this->counter++),
);

Styles attached to their View source

A page or component can declare its local stylesheet before the class with `import('pages/home.css')`. Imports are validated, deduplicated, and restricted to the application's stylesheet directory.

The published artifacts were produced successfully for all three supported platforms. Every installer and portable archive includes a SHA-256 checksum.