Read from the package's own PHP files at the commit 70f4f8d8c334: 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.
OpenCollectiveFactoryclassOpen Collective, from its options:
4 options · 1 method
OpenCollectiveProviderclassA collective through Open Collective's GraphQL API v2: its profile (the backers counted, the yearly budget Open Collective estimates as its income), its tiers, its backers - public data, which the API gives without a key.
7 methods · 1 constant
Omnifund\OpenCollective
OpenCollectiveFactory class
final class OpenCollectiveFactory extends ProviderFactory OpenCollectiveFactory.php:19
Open Collective, from its options:
account the collective's slug: "webpack" (required) token a personal token, optional: public data is read without one, at 10 calls a minute; a token (sent as Personal-Token) raises the limit endpoint https://api.opencollective.com/graphql/v2 user_agent sent with every call
Options
| Option | Default | |
|---|---|---|
token | '' | |
endpoint | OpenCollectiveProvider::ENDPOINT | |
user_agent | 'omnifund (+https://github.com/glitchr-omnisense/omnifund)' | |
account | required |
OpenCollectiveFactory::__construct()
public function __construct(readonly HttpClientInterface $http)OpenCollectiveProvider class
final class OpenCollectiveProvider implements ProfileInterface, SponsorsInterface, TiersInterface OpenCollectiveProvider.php:25
A collective through Open Collective's GraphQL API v2: its profile (the backers counted, the yearly budget Open Collective estimates as its income), its tiers, its backers - public data, which the API gives without a key.
const ENDPOINT = 'https://api.opencollective.com/graphql/v2'
OpenCollectiveProvider::__construct()
public function __construct(readonly HttpClientInterface $http, readonly string $account, readonly ?string $token = null, readonly string $endpoint = self::ENDPOINT, readonly string $userAgent = 'omnifund (+https://github.com/glitchr-omnisense/omnifund)')OpenCollectiveProvider::getName()
public function getName(): stringOpenCollectiveProvider::getTitle()
public function getTitle(): stringOpenCollectiveProvider::capabilities()
public function capabilities(): CapabilitiesOpenCollectiveProvider::profile()
public function profile(?string $account = null): ProfileOpenCollectiveProvider::sponsors()
public function sponsors(?string $account = null, ?int $limit = null): arrayOpenCollectiveProvider::tiers()
public function tiers(?string $account = null): array