teleology / foundation-php
PHP Bindings for the Foundation API
v0.0.1
2024-08-23 06:42 UTC
Requires
- guzzlehttp/guzzle: ^7.9
- ratchet/pawl: ^0.4.1
- react/event-loop: ^1.5
- react/socket: ^1.16
Requires (Dev)
- phpunit/phpunit: ^10.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-19 14:16:30 UTC
README
The Foundation PHP Library is your gateway to effortless interaction with the Foundation API. Designed with simplicity and efficiency in mind, this library abstracts away the complexity of direct API calls, providing a clean and intuitive interface for developers.
Installation
composer require teleology/foundation-php
Usage Example:
use Foundation\Foundation; $foundation = new Foundation('https://foundation-api.teleology.io', '<your-api-key>', '<optional-global-uid>'); $foundation->subscribe(function (string $event, $data) { echo $event . ": " . json_encode($data) . "\n"; }); $env = $foundation->getEnvironment(); $config = $foundation->getConfiguration(); $variable = $foundation->getVariable('open_enrollment', '<uid-override>', '<fallback-value>');