From effa62062aef6aa6ea4488b42f8e35a1f95200a2 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Fri, 19 May 2023 16:09:05 +0100 Subject: [PATCH 1/3] Build this library with Travis only for now, same as php-govtalk Configuration / credits should be sorted now and I've just been sorting out dependencies on the upstream lib, so this seems like the shortest path to working CI --- .circleci/config.yml | 33 --------------------------------- .travis.yml | 4 +++- 2 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 50d390f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2.1 - -jobs: - test: # Also lints first - docker: - - image: circleci/php:8.0 - auth: - username: $DOCKER_HUB_USERNAME - password: $DOCKER_HUB_ACCESS_TOKEN - - steps: - - checkout - - - restore_cache: - keys: - - composer-v1-{{ checksum "composer.json" }} - - - run: composer install --no-interaction - - - save_cache: - paths: - - vendor - key: composer-v1-{{ checksum "composer.json" }} - - - run: composer run lint:check - - run: composer run test - -workflows: - build: - jobs: - - test: - context: - - docker-hub-creds diff --git a/.travis.yml b/.travis.yml index 0fb37ed..29ec89d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ language: php +dist: focal # Ubuntu 20.04 LTS php: - - "7.4" - "8.0" - "8.1" + - "8.2" before_script: + - sudo apt-get install libonig5 # https://blog.futtta.be/2023/01/24/adding-php-8-2-in-travis-tests/ - composer self-update - composer --version - composer install -n --dev --prefer-source From 9ea70ba972759abc58e2a866c627ff2335f2d8b1 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Fri, 19 May 2023 16:09:21 +0100 Subject: [PATCH 2/3] Update minimum PHP to 8.0 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 938f631..ea15727 100644 --- a/composer.json +++ b/composer.json @@ -32,12 +32,12 @@ "config": { "optimize-autoloader": true, "platform": { - "php": "7.4.23" + "php": "8.0.28" }, "sort-packages": true }, "require": { - "php": "^7.4 || ^8.0", + "php": "^8.0", "ext-dom": "*", "ext-simplexml": "*", "ext-xmlwriter": "*", From 94b7d4ba7613a8043b6dae598d07ef6779800c70 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Fri, 19 May 2023 16:09:38 +0100 Subject: [PATCH 3/3] Add library background to readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8f416d2..5c6f8c6 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ Amateur Sports Clubs (CASCs) by allowing them to reclaim basic rate tax on a don 'HMRC Charity Repayment Claims' is a library for submitting Gift Aid claims to HMRC. +## Library background + +Big Give forked this library from [`JustinBusschau/hmrc-gift-aid`](https://github.com/JustinBusschau/hmrc-gift-aid) +along with the supporting `php-govtalk` counterpart in 2021, as those libraries are +[no longer maintained](https://github.com/JustinBusschau/php-govtalk/pull/3) for active versions of PHP. + +We don't offer support for the library, but plan to maintain it for the foreseeable future, with tests running against verions of PHP [still receiving security support](https://www.php.net/supported-versions.php). + +Charities running campaigns on our platform who are using our managed service to claim their Gift Aid can [get in touch here](https://community.biggive.org/s/contact-us). ## Installation