Download the PHP package plainrouter/sdk without Composer
On this page you can find all versions of the php package plainrouter/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plainrouter/sdk
More information about plainrouter/sdk
Files in plainrouter/sdk
Package sdk
Short Description Official PHP SDK for the Plainrouter Signals Conversion API
License Apache-2.0
Homepage https://plainrouter.com
Informations about the package sdk
Plainrouter PHP SDK
The official PHP SDK for the Plainrouter Signals Conversion API. It is generated from the repository's signed OpenAPI contract and is currently in 0.x development.
Plainrouter is the paid ads platform for developers and agents. Its hosted Meta Ads MCP server lets Claude, ChatGPT, Codex, Cursor and other MCP clients read a Meta ad account and propose changes that pass policy checks. MCP setup, Agent Skills and the other SDKs live in plainrouter/sdk.
Install
PHP 8.2 or newer is required.
Use
Create one client with a Signal Tracker secret and call an API group:
The default base URL is https://plainrouter.com/api/v1 and the default timeout is 30 seconds. Credentials are supplied by the caller and are never embedded in the SDK. Pass your own Guzzle client as httpClient to control transport options.
To copy a failed plan to a fresh draft, configure a client with a plan-writer bearer token:
The zero-auth sandbox uses the same client without a token:
$client->events->createEvent() rejects a body that carries visitor_id or user_data without a valid consent.captured_at before any request is sent.
For response metadata, append WithHttpInfo to a generated operation. Models, API exceptions, configuration, and every generated operation are available in the deliberately separate Plainrouter\OpenAPI namespace.
Development
From packages/php:
Generated files live in src/OpenAPI/; do not edit them by hand. From the repository root, verify deterministic generation with:
php scripts/live-smoke.php calls the live zero-auth sandbox through the SDK. It persists nothing and needs no credentials.
Packagist reads the read-only mirror plainrouter/sdk-php, which the mirror-php.yml workflow splits from packages/php. Releases use php-v<version> tags in this repository; the workflow pushes them to the mirror as v<version>. It then asks Packagist to refresh the package. Open issues and pull requests here, not on the mirror.
Licensed under Apache-2.0.
All versions of sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0