* Fixed Downloadable product issue where the product config was overwritten if the settings were saved. * Ran phpstan & cs-fixer * Added pdate function to fix products where possible * Fixed uploading new files when the config is broken. * Added fix to updater * Removed superfluous line * Bump Last Patch Level to Fix Live Tests * Clean up file download response headers and fix `json_decode` usage * Handle null config in saveProductConfig and sendProductFile * Apply suggestion from @Copilot Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com> * Fix file upload path and improve error handling * Refactor file update logic in Service class Replaces inline update of the servicedownloadable record with a call to updateProductFile, improving code organization and maintainability. * Update `last_patch` setting to version 48 Incremented the 'last_patch' value in the settings table from 47 to 48 to reflect the latest patch version. * Improve downloadable product filename recovery in patch Enhanced patch 48 in UpdatePatcher to more robustly recover missing filenames for downloadable products by checking both order configs and service_downloadable records, updating all related data sources, and cleaning up orphaned records. Added detailed statistics logging for the recovery process. Also removed an obsolete PHPStan ignore rule for polyfilled ctype functions. * Add required param validation to config_save method Introduced explicit required parameter validation for the 'id' field in the config_save method of the Admin API. This ensures that a missing product ID is caught early with a clear error message. * Refactor file handling and patch logic for downloadable products Simplifies and streamlines the patch logic for recovering lost filenames in downloadable products, removing verbose statistics and redundant comments. Refactors file upload error handling in Servicedownloadable Service to use a dedicated error message method and eliminates unnecessary try/catch blocks. Updates Admin API to use attribute-based required parameter validation for product file downloads. * Update src/modules/Servicedownloadable/Service.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Refactor Servicedownloadable Admin API param validation Removed redundant manual required param validation in Admin API methods in favor of attribute-based validation. Updated related tests to reflect this change and added more comprehensive tests for file sending scenarios. Also updated HTML form element IDs for clarity. * Remove redundant test for missing product ID in config save Deleted the testConfigSaveMissingId test from AdminTest.php as it is no longer needed. This streamlines the test suite by removing duplicate or unnecessary validation checks. --------- Co-authored-by: Chris Schläpfer <c.schlaepfer@datact.ch> Co-authored-by: Adam Daley <admdly@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Note
FOSSBilling is under active development and currently considered beta. Expect rough edges and limited support.
FOSSBilling is a free, open-source billing and client management system. It helps online service businesses automate invoicing, payments, and client communication. While it’s popular with web hosting providers, it also works well for software licensing, digital downloads, and subscription services.
Features
- Billing & Invoicing: automated invoices, reminders, and basic reporting.
- Client Management: a central place for client data and communication.
- Extensibility: extension-friendly architecture for integrations and custom features.
- Payments: support for multiple gateways.
- Translations: community-powered, multi-language interface.
- Responsive UI: usable on desktop and mobile.
- Security-focused: built with security best practices in mind.
Getting Started
Requirements
FOSSBilling runs on standard LAMP/LEMP stacks. For the latest system requirements (PHP version, extensions, database, etc.), see the official requirements.
Installation
Follow the step-by-step Getting Started guide.
Just exploring? Try the public demo.
Contributing
We welcome contributions from the community! We’re actively modernizing the codebase and there’s plenty to do.
- Read the contributor guide.
- Pick an item from the open issues.
- Open a PR when you’re ready.
If you prefer to start a conversation first, drop by the forum or say hello on Discord.
Star History
Not a developer? Starring the repository helps others discover the project.
License
FOSSBilling is released under the Apache 2.0 license. See LICENSE for details.
This project includes third-party work:
- Open Source Iconography by Pictogrammers under the Pictogrammers Free License.
Links
- Website: https://www.fossbilling.org/
- Documentation: https://fossbilling.org/docs
- Forum: https://forum.fossbilling.org
- Discord: https://fossbilling.org/discord
- Twitter/X: https://twitter.com/FOSSBilling
