Aller au contenu

omnifund/liberapay Référence de l’API

Étage
Fournisseur · Omnifund
Version
1.x
Suite de conformité
non branchée
Vérifié en réel
Vérifié en réel
Licence
MIT
composer require omnifund/liberapay:1.x-dev

Lue dans les fichiers PHP du paquet au commit 30d743411871 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.

Omnifund\Liberapay

  • LiberapayFactory class

    Liberapay, from its options:

    4 options · 1 method

  • LiberapayProvider class

    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.

    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

OptionDefault
language'en'
base_urlLiberapayProvider::BASE_URL
user_agent'omnifund (+https://github.com/glitchr-omnisense/omnifund)'
accountrequired

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(): string

LiberapayProvider::getTitle()

public function getTitle(): string

LiberapayProvider::capabilities()

public function capabilities(): Capabilities

LiberapayProvider::profile()

public function profile(?string $account = null): Profile