Skip to content

FOSSBilling/extension-directory

Repository files navigation

FOSSBilling extension directory

image

This is the FOSSBilling extension directory. It is a collection of extensions for FOSSBilling. It is still under ongoing development, but we have a few extensions available for download right now.

You can find the extension directory at https://extensions.fossbilling.org.

How to install an extension

Automatically (recommended)

  1. Log into your FOSSBilling admin panel
  2. Go to the Extensions page
  3. Click on the "Install" button next to the extension you want to install

Manually

  1. Download the extension archive from the extension directory
  2. Create a folder named the ID of the extension in the modules folder of your FOSSBilling installation
  3. Extract the archive there
  4. Go to the Extensions page in your FOSSBilling admin panel and enable the extension

How to submit an extension

Currently, the backend doesn't rely on a database, so you can't submit extensions through the website. You can submit extensions by creating a pull request on GitHub. We keep a list of extensions in the data/extensions.ts file, and extension authors in the data/author.ts file. You can add your extension to the list by adding new Extension object to the arrays.

The badge API

We provide an API that renders badges for your extension. You can use these badges on your README or on your website.

The API is available at https://extensions.fossbilling.org/api/extension/:id/badges/:type. The :id parameter is the ID of your extension. The :type parameter is the type of badge you want to render. Currently, we support the following types:

Type Description Example
version Renders the latest version of your extension badge
min_fossbilling_version Renders the minimum version of FOSSBilling your extension supports badge
license Renders the license of your extension badge

Optionally, you can add a ?color= parameter to the URL to change the color of the badge. The parameter also accepts a three or six-character hex color code.

Example: https://extensions.fossbilling.org/api/extension/Example/badges/version?color=orange

badge

How to contribute

If you want to contribute to the extension directory, you can do so by creating a pull request on GitHub. You can also create an issue if you have any questions or suggestions.

You also might want to join our Discord server if you want to get in touch with us.

Running a local development server

Running the extension directory locally is fairly easy.

Install the dependencies

npm i

Start the development server

npm run dev

Most of your changes will be reflected instantly without needing to restart the development server.

License

Each module is licensed under the terms set by the author. Please see the LICENSE file in each module for more information. The extension directory website is licensed under the Apache 2.0 license. See the LICENSE file for more information.