Read from the package's own PHP files at the commit 30d743411871: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
LiberapayFactoryclassLiberapay, from its options:
4 options · 1 method
LiberapayProviderclassA Liberapay account's public profile (https://liberapay.com/<user>/public.json): the patrons counted, what it receives and its goal - both by the week, as Liberapay counts them; null when the account hides them. Liberapay shows no patron by name and has no tiers: this provider is a profile only.
5 methods · 1 constant
Omnifund\Liberapay
LiberapayFactory class
final class LiberapayFactory extends ProviderFactory LiberapayFactory.php:18
Liberapay, from its options:
account the username: "Liberapay" (required) language the summary's language, when the account wrote several (en; else the first one) base_url https://liberapay.com user_agent sent with every call
Options
| Option | Default | |
|---|---|---|
language | 'en' | |
base_url | LiberapayProvider::BASE_URL | |
user_agent | 'omnifund (+https://github.com/glitchr-omnisense/omnifund)' | |
account | required |
LiberapayFactory::__construct()
public function __construct(readonly HttpClientInterface $http)LiberapayProvider class
final class LiberapayProvider implements ProfileInterface LiberapayProvider.php:21
A Liberapay account's public profile (https://liberapay.com/<user>/public.json): the patrons counted, what it receives and its goal - both by the week, as Liberapay counts them; null when the account hides them. Liberapay shows no patron by name and has no tiers: this provider is a profile only.
const BASE_URL = 'https://liberapay.com'
LiberapayProvider::__construct()
public function __construct(readonly HttpClientInterface $http, readonly string $account, readonly string $language = 'en', readonly string $baseUrl = self::BASE_URL, readonly string $userAgent = 'omnifund (+https://github.com/glitchr-omnisense/omnifund)')LiberapayProvider::getName()
public function getName(): stringLiberapayProvider::getTitle()
public function getTitle(): stringLiberapayProvider::capabilities()
public function capabilities(): CapabilitiesLiberapayProvider::profile()
public function profile(?string $account = null): Profile