josbeir / cakephp-interact
Reactive server-rendered PHP islands for CakePHP.
Package info
github.com/josbeir/cakephp-interact
Type:cakephp-plugin
pkg:composer/josbeir/cakephp-interact
Requires
- php: ^8.5
- cakephp/cakephp: ^5.4
Requires (Dev)
- cakephp/mago-rules: dev-main
- carthage-software/mago: ^1.47
- josbeir/cakephp-mercure: ^0.3.1
- phpunit/phpunit: ^12.5
- rector/rector: ^2.7
- symfony/process: ^8.0
Suggests
- josbeir/cakephp-mercure: Mercure 1.x publishing and subscription authorization with the CakePHP 5 compatible package.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-09 16:39:29 UTC
README
Interactive CakePHP pages with Alpine and server-rendered PHP islands.
Compatibility warning:
0.2.0introduces CakePHP 5.4+ support and targets CakePHP 5 only. If you use CakePHP 6 with Interact0.1.x, switch todev-cake6to retain CakePHP 6 compatibility.
Build live search, inline editors, and conditional fields with native CakePHP templates and explicit PHP actions. Interact updates the owning region while preserving local drafts, focus, and independent nested islands.
Use Alpine for local state, events, bindings, and transitions. Interact adds PHP
state, actions, and HTML updates through Alpine expressions and x-interact:*
directives. CakePHP owns queries, validation, authorization, and saving.
Website · Read the documentation →
- Why Interact?
- Install the plugin
- Configuration
- Build your first island
- Use Alpine with Interact
- Island conventions
- Explore the demo
- Look up the PHP API
- Look up browser bindings and actions
Available on Packagist
as josbeir/cakephp-interact. The API is experimental.
| Release / branch | CakePHP compatibility | Composer version |
|---|---|---|
0.2.x |
5.4 or later in the 5.x series | ^0.2 |
main |
5.4 or later in the 5.x series | dev-main |
cake6 |
6 development builds | dev-cake6 |
Published documentation follows the latest main release. CakePHP 6-specific
setup is maintained in the cake6 branch documentation
until that line is released.
Both branches require PHP 8.5 and modern browsers. See the installation guide for setup and compatibility requirements. The standard Composer package includes the browser runtime; Node and npm are not required.
Contributor commands, quality gates, and documentation-site setup are in the contributing guide.