Download the PHP package fof/open-collective without Composer

On this page you can find all versions of the php package fof/open-collective. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package open-collective

Open Collective by FriendsOfFlarum

License Latest Stable Version OpenCollective Donate

A Flarum extension that automatically synchronizes your Open Collective backers with Flarum user groups.

Features

How It Works

This extension connects your Open Collective account with your Flarum forum by:

  1. Fetching Backers: Queries Open Collective's GraphQL API to retrieve your current backers (active recurring, cancelled recurring, and one-time contributors)
  2. Categorizing Backers: Separates backers into two groups:
    • Recurring backers: Users with active monthly or yearly subscriptions
    • One-time backers: Users who made one-time contributions or whose recurring subscription has ended
  3. Matching Users: Identifies Flarum users by matching email addresses from Open Collective backers with Flarum user emails
  4. Managing Groups: Automatically adds backers to designated Flarum groups and removes users who are no longer backers
  5. Handling Transitions: When a recurring backer's subscription ends, they are automatically moved to the one-time backers group
  6. Tracking Changes: Logs all additions, removals, and transitions to help you monitor the process

Installation

Install with composer:

Required: Flarum Scheduler

This extension requires Flarum's scheduler to be set up and running. The extension will automatically check for backer updates every hour.

Add this cron job to your server:

Configuration

After installation, configure the extension in your Flarum admin panel:

1. Create an Open Collective Personal Token

  1. Go to Open Collective Applications
  2. Create a new Personal Token
  3. Copy the token (you won't be able to see it again)

Legacy API Keys: If you have an existing legacy API key, you can continue using it by enabling "Use Legacy Application API Key" in the settings. However, it's recommended to migrate to a Personal Token.

2. Configure the Extension

In your Flarum admin panel, navigate to the Open Collective extension settings:

Note: If you only configure the recurring backers group, all backers (both recurring and one-time) will be added to that single group. If you configure both groups, the extension will automatically categorize backers based on their subscription status.

Save the settings, and the extension will start syncing on the next scheduled run.

Usage

Once configured, the extension runs automatically every hour. You can also manually trigger an update:

Command Options

Dry-Run Mode

Preview what changes would be made without actually applying them:

This is useful for testing your configuration before letting the extension make real changes to your groups.

Verbose Output

Get detailed information about the synchronization process:

Verbose mode shows:

Combine both options for detailed preview:

Viewing Logs

Check the synchronization logs:

Log output includes:

How User Matching Works

The extension matches Open Collective backers to Flarum users by comparing email addresses. For a backer to be matched:

Important Notes

For Developers: Event System

This extension dispatches events when backers are added or removed, allowing other extensions to react to these changes.

Available Events

FoF\OpenCollective\Event\BackerAdded

Dispatched when a user is added to the backers group.

Properties:

Example listener:

FoF\OpenCollective\Event\BackerRemoved

Dispatched when a user is removed from the backers group (backing ended).

Properties:

Example listener:

Notes on Events

Troubleshooting

No backers are being synced

Some backers aren't being matched

Authentication errors

Updating

Links

OpenCollective GitHub

An extension by FriendsOfFlarum.


All versions of open-collective with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0.0
guzzlehttp/guzzle Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fof/open-collective contains the following files

Loading the files please wait ...