teleology/foundation-php

PHP Bindings for the Foundation API

Maintainers

Package info

github.com/teleology-io/foundation-php

pkg:composer/teleology/foundation-php

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.1 2024-08-23 06:42 UTC

This package is not auto-updated.

Last update: 2026-04-04 12:23:03 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>');