← All news

PHPAML CLI 1.7 beta.35 simplifies reactive View code

A shorter AML View API, direct state binding, and verified installers for macOS, Windows, and Linux.

PHPAML CLI 1.7.0-beta.35 is available for macOS Apple Silicon, Windows x64, and Debian/Ubuntu x64. It creates new applications with PHPAML View 0.1.0-beta.7 and Engine 0.1.0-beta.4.

Less code for everyday interactions

View state can now be referenced directly from a page with `$this->state()`. Buttons expose concise actions such as `increments()`, `decrements()`, `sets()`, and `toggles()`. Form controls can bind to state through `model()`.

phpaml — zsh
return VStack(
    Text($this->state('count')),
    Button('Increment')->increments('count'),
    TextField('Your name')->model($this->state('name')),
);

The advanced `ClientAction`, `Actions`, and API primitives remain available for complex workflows, so existing applications continue to work.

Verified from the public package

The published macOS archive was downloaded again, validated against its SHA-256 checksum, and used to create both an empty and a complete View application. The generated projects installed View 0.1.0-beta.7 from Packagist and passed their tests. Linux, macOS, and Windows builds also completed successfully. Every installer and portable archive is accompanied by a checksum.