Purple PHP SDK 0.1.0 Introduces Composer-Based AI Tools for PHP Applications
Purple PHP SDK 0.1.0 introduces a Composer-first framework for adding AI capabilities to existing PHP applications, according to the project’s GitHub repository. The SDK targets teams maintaining PHP-based CMS, ecommerce, administrative, support, catalogue, and workflow systems that want to add auditable AI behaviour without rewriting existing applications.
The release includes typed smart functions for repeatable AI tasks, stateful chat sessions, schema-validated tool contracts, and looping agents that can call tools under limits, policy controls, audit logging, retries, replay logs, and approval steps. It also provides runtime hooks around provider requests, tool calls, and agent lifecycle events, along with a purple command-line tool for diagnostics, demos, provider checks, sidecar resume prototyping, and audit inspection.
The project’s enterprise-oriented features include tenancy and data-residency policy metadata, personally identifiable information redaction, secret-resolution mechanisms, observability export, and workflow ports for content, catalogue, order, support, approval, and audit processes. Provider credentials are handled through SecretResolver implementations, while SecretValue is designed to redact itself when converted to a string.
Purple PHP also separates some runtime and provider work from the default SDK path. AWS Bedrock support lives in the optional purple-php/provider-bedrock package, and the main purple-php/sdk installation does not require Bedrock dependencies, native extensions, sidecar services, cloud SDKs, or live network services. The README says current Bedrock validation uses injectable transports and fixtures, while real AWS signing, credential discovery, AWS SDK integrations, and live Bedrock calls remain future opt-in work.
The release includes prototypes for sidecar runtime continuation and native extension compatibility, but the project documentation keeps Composer mode as the baseline for local development, tests, examples, and package adoption.
Developers can run examples through Composer and validate the project with composer check, which runs PHPUnit, PHPStan, and php-cs-fixer in dry-run mode.
Purple PHP is developed by Lynn Cole, an AI developer and independent researcher associated with Kinetic Actor LLC. Her GitHub profile describes her work as exploring intelligent systems, and the Purple PHP repository currently lists Lynn as the project’s sole contributor.
Purple PHP is licensed under the MIT license. The repository describes the project principles as Composer-first, provider-neutral, secure by default, auditable by default, policy-driven, CMS-agnostic, ecommerce-aware, and optional-native rather than native-required.
