Build FOSSBilling from source when you want to contribute code, test changes locally, or package a customized version.
Prerequisites
Section titled “Prerequisites”Build Steps
Section titled “Build Steps”Clone the repository
Terminal window git clone https://github.com/FOSSBilling/FOSSBilling.gitcd FOSSBillingInstall PHP dependencies
Terminal window composer installInstall Node dependencies
Terminal window npm installBuild front-end assets
Terminal window npm run buildAdd translations (optional)
Download the latest translations and extract to
src/locale/, overwriting existing files.
After these steps, your checkout is ready for local development or for packaging into a deployment build.
Development Mode
Section titled “Development Mode”For active development:
npm run devThis watches files and rebuilds automatically when you make changes.
Running Locally
Section titled “Running Locally”You can use PHP's built-in server for quick testing:
cd srcphp -S localhost:8000Then visit http://localhost:8000 in your browser.