Breaking Changes
- SharedStore replaces stdClass — All
run(),prep(),post()now expectPocketFlow\SharedStoreinstead ofstdClass - Async methods renamed to camelCase —
run_async()→runAsync(),prep_async()→prepAsync(), etc. - Namespaces — All classes now in
PocketFlow\namespace. Adduse PocketFlow\Node;etc. - PSR-4 structure — 14 files instead of the old single
PocketFlow.php
Added
SharedStoreclass with#[AllowDynamicProperties]for PHP 8.2+AsyncRunnableinterface for mixing sync/async nodes in flowsAsyncLogicTraitfor reusable async retry logic- Agent Skills package (
.agents/skills/pocketflow-php/) for AI coding tools - New tests for edge cases
Changed
$maxRetriesand$waitare now readonly constructor properties- Exceptions instead of
trigger_error()calls - Improved PHPDoc documentation on all methods
New Template
Start building instantly: pocketflow-php-template