46 Commits
Author SHA1 Message Date
Adam Daley b1195d4b5d Remove legacy class header template (#3937)
* Remove legacy class header template

* Remove unused legacy class header template

* Revert "Remove unused legacy class header template"

This reverts commit 41c5bd9454.
2026-07-07 08:15:40 +01:00
Adam Daley dd3dcbfd52 Enhance type safety, authentication checks, and testing framework (#3701)
* Improve type safety, auth checks and PHPStan fixes (#3250)

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Remove redundant @phpstan-ignore comment

* Improve code robustness and reliability (#3248)

* Harden code against null/undefined values

* Update dependency lockfiles

* Sanitize ticket input and use IDs in email list

* Restructure tests and add test utilities

* Move E2E tests to `Library\E2E` namespace

* Update `php-build` action ref in workflows

* Switch tests to Pest and add test scaffolding

* Refactor E2E tests to Pest-style tests

m

Skip E2E tests when env not configured

* Refactor Unit tests and update test config

Add test datasets and refine test helpers

* Add DEBUG guard, fix API JSON decode, update tests

* Refactor tests: add types and Mockery expectations

* Adjust tests, phpstan config, and composer script

* Instantiate test APIs locally, remove beforeEach

* Refactor runtime checks, types & logging

* Apply PHP Code Styling Changes

m

* Add PHPStan ignores, test renames & small fixes

* Enable Pest tests in CI workflow

* Remove legacy tests; add new unit tests/config

* Avoid undefined index in fingerprint comparison

* Ignore properties absent in both fingerprints

* Remove public_ticket_create API method

* Add Fingerprint unit tests

* Remove em dash from fingerprint test name

* Switch to Pest; assorted bug fixes & refactors

* Prefer getDi() and guard DEBUG define

* Refactor tests: DBAL, Antispam rename, helpers

* Refactor email tests to use Doctrine entities

* Update tests, use DBAL mocks & improve Formbuilder admin

* Validate plan_id and update unit tests

* Replace error_log with DI logger and update tests

* Expect db->store in Invoice Service test

* Use DI logger instead of error_log; fix tests

* Fix typo in Hook Service test

* Fix Staff test spelling fixture

* Complete Pest test migration

* Fix Product test spelling fixtures

* Fix Product test spelling fixtures

* Run live tests with Pest and load helpers

* Migrate tests to ApiClient; remove legacy APIHelper

* Fix Email test spelling

* Remove unused PHPUnit bridge

* Organize Cypress end-to-end tests

* Document Pest test directory root

* Remove noisy Pest comments
2026-06-02 07:43:01 +01:00
Adam Daley 77c34394d6 General Cleanup/Refactoring (#2955)
* Add symlink for Copilot instructions

* Add duplicate IPN detection for transactions

* Update class header files for legacy and current versions

* Remove BoxBilling copyright and fix SPDX headers

Removed legacy BoxBilling copyright lines and standardised SPDX-License-Identifier headers to 'Apache-2.0' across FOSSBilling library files for consistency and clarity.
2025-10-08 00:22:59 +01:00
Belle Aerni 368f8cd6ad Bump the year (#2581) 2025-01-23 15:11:53 -08:00
Belle Aerni d771457efc Bump the year (#2167)
* Bump the year

* And fix the spelling
2024-02-25 02:45:38 -08:00
Adam Daley cf835b9691 Cleanup outdated and unmaintained files (#1936) 2023-12-08 05:45:20 +00:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Adam Daley b08fc53d72 Update rewrite rules, improve error handling, and some related cleanup (#1075)
* Rename htaccess to be applied automatically

Rename the htaccess file, improve handling when .htaccess is missing, and remove from .gitignore so that rules are automatically applied on supported web servers.

* Clean up .gitignore file

* Update .htaccess to improve security

Update .htaccess file to improve general security, handle missing mod_rewrite, and to simplify the required rules.

* Improve HTTP and generic error handling

Improve handling of HTTP errors, and make the error handling code more generic to permit catching more errors.

* Remove outdated example web server config files

Remove the outdated and unmaintained example web server configuration files in favour of FOSSBilling/config-generator.

* Remove support for non-search engine friendly URLs

Remove support for non-search engine friendly URLs as these are depreciated.

* Revert "Remove support for non-search engine friendly URLs"

This reverts commit 724b1eb274.

* Update config migration backup handling
2023-04-06 21:59:25 +02:00
Jaap Marcus f420d7330b Remove docker and other old build files
That shouldn't been used any more.
- Testing have been replaced by Github Actions and I don't know if it is smart 5 year old docker images
- We don't use travis anymore 
- docker-compose has been replaced by a new one 
- data/phpfpm.conf we should consider removing it. But at least udpdate to a php8 as PHP5 is EOL
2023-01-16 10:34:50 +01:00
Belle Aerni 44c7f6f405 Create an alias for bb-ipn (#605)
* Create an alias for bb-ipn

* Slight tweak

* Updated docker config
2022-12-19 12:05:30 -08:00
Belle Aerni ee676ca33a Update file references 2022-11-28 17:22:50 +03:00
Yağızhan 57a868c7c8 Jaap's suggestions and tweaks 2022-10-29 16:52:04 +03:00
Yağızhan f6c2e11594 Blocked access to bb-uploads/*.php and bb-data/* 2022-10-29 16:50:44 +03:00
Yağızhan 641b0f9ecf Jaap's suggestions for the Docker config 2022-10-29 16:39:56 +03:00
Yağızhan 1784da55ab Update docker-nginx.conf 2022-10-27 23:26:54 +03:00
Yağızhan 3e677f79dc Block access to sensitive files on nginx 2022-10-27 23:26:39 +03:00
Yağızhan bbf7aac33d phtml -> twig 2022-10-27 23:01:49 +03:00
Yağızhan 66081d2954 Fixed custom pages not working in nginx (#390)
* Fixed custom pages not working in nginx

* Custom pages fix for the bundled nginx configuration

* Update nginx.conf

* Moved the example back
2022-10-27 21:39:46 +02:00
Yağızhan d5a59ef6fe --no-install-recommends 2022-10-26 20:25:38 +03:00
evrifaessa b88353be55 Added dependency 2022-10-26 20:17:47 +03:00
evrifaessa 5e484aaecc +intl 2022-10-26 20:10:46 +03:00
Jaap Marcus 53fd0f5c3e Improve nginx example config (#326)
Add extra comment regarding

Removed as it does nothing
         proxy_no_cache 1;
         proxy_cache_bypass 1;
2022-10-10 03:33:05 -07:00
Yağızhan Burak Yakar f8a797b4d6 Let the sysadmin set up cron jobs instead 2022-06-10 19:48:52 +03:00
Yağızhan Burak Yakar d6e64d014d Missing newline before EOF 2022-06-10 14:15:39 +03:00
Yağızhan Burak Yakar 7bc1c0a57a No need to fetch twice 2022-06-10 14:13:11 +03:00
Yağızhan Burak Yakar f5f87f785f Cron jobs 2022-06-10 14:11:56 +03:00
Yağızhan Burak Yakar 1f95066c90 Use a separate container to run Composer 2022-06-10 13:31:35 +03:00
Yağızhan Burak Yakar f0c0b6145a Revert 2022-06-10 11:10:46 +03:00
Yağızhan Burak Yakar c9986c206e Import Composer 2022-06-10 11:02:56 +03:00
Yağızhan Burak Yakar 67dffda31a APT tuning 2022-06-10 11:01:08 +03:00
Yağızhan Burak Yakar 72390b9782 Build Gulp too 2022-06-10 00:22:10 +03:00
Yağızhan Burak Yakar 23297e7879 server_name 2022-06-09 22:21:00 +03:00
Yağızhan 7f1c708770 Migrate to the official PHP image 2022-06-09 19:08:59 +00:00
Yağızhan 4d30386532 Merge branch 'main' into docker 2022-06-09 00:06:50 +03:00
Yağızhan Burak Yakar 348a4f2897 Merge remote-tracking branch 'origin/main' into docker 2022-05-31 17:53:49 +03:00
S4 Hosting b5427fdd46 Copyright and license notices changed to correctly comply with Apache 2.0 2022-05-31 14:51:44 +03:00
Dzung DoandBenjamin Aerni 59f709d78c simply update brandname (#106)
Co-authored-by: Benjamin Aerni <aernibenjamin@gmail.com>
2022-05-29 20:24:42 -07:00
CatFlip™ 1dea204c0c Literal and link references
All literal ("BoxBilling") references and link ("www.boxbilling.org") were replaced. Also replaced all fossbiling.org "http://" by "https://"
2022-05-26 17:55:34 -05:00
Yağızhan Burak Yakar f6afa937ff Rewriting the whole Docker thing 2022-05-08 09:43:04 +03:00
Yağızhan 97fc3f3079 boxbilling.com -> boxbilling.org 2021-10-16 13:08:49 +03:00
Istiak Ferdous 4db2c20e58 Update lighttpd.conf 2021-10-13 14:40:52 +06:00
istiak101 e962e71852 Create lighttpd.conf 2021-10-11 13:52:59 +06:00
Xabier de Zuazo d63f6a79ac Nginx template: Disable PHP inside bb-uploads and bb-data. 2015-02-24 10:04:58 +01:00
fordnox 5af4cc20d9 Initial release 2014-11-03 09:00:47 +02:00