From 8cb0f4e9d543ca208278eae1ad9cceda8d38fbcb Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Thu, 2 Jan 2025 22:49:16 +0000 Subject: [PATCH 1/3] Update phpdoc --- docs/css/template.css | 3 +++ docs/index.html | 2 +- docs/js/template.js | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/css/template.css b/docs/css/template.css index 3ade31a6..70382a53 100644 --- a/docs/css/template.css +++ b/docs/css/template.css @@ -273,3 +273,6 @@ .phpdocumentor-tag-link { margin-right: var(--spacing-sm); } +.phpdocumentor-uml-diagram svg { + cursor: zoom-in; +} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0de88ee0..02f06c89 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ BitPay PHP SDK - + diff --git a/docs/js/template.js b/docs/js/template.js index 49383291..83931d2e 100644 --- a/docs/js/template.js +++ b/docs/js/template.js @@ -15,3 +15,20 @@ observer.observe(el); }) })(); +function openSvg(svg) { + // convert to a valid XML source + const as_text = new XMLSerializer().serializeToString(svg); + // store in a Blob + const blob = new Blob([as_text], { type: "image/svg+xml" }); + // create an URI pointing to that blob + const url = URL.createObjectURL(blob); + const win = open(url); + // so the Garbage Collector can collect the blob + win.onload = (evt) => URL.revokeObjectURL(url); +}; + + +var svgs = document.querySelectorAll(".phpdocumentor-uml-diagram svg"); +for( var i=0,il = svgs.length; i< il; i ++ ) { + svgs[i].onclick = (evt) => openSvg(evt.target); +} \ No newline at end of file From d16cd58d12aeb50666bf80e8ffe393bd193d85d9 Mon Sep 17 00:00:00 2001 From: Robert Brodie Date: Thu, 2 Jan 2025 17:57:25 -0500 Subject: [PATCH 2/3] SP-1130 Upgrade PHP Key Utils to 2.0.5 --- composer.json | 2 +- composer.lock | 113 +++++++++++++++++++++--------------------- phpdoc.dist.xml | 2 +- src/BitPaySDK/Env.php | 2 +- 4 files changed, 60 insertions(+), 59 deletions(-) diff --git a/composer.json b/composer.json index 94148989..8abe1e4e 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php": "^8.1 || ^8.2 || ^8.3", "ext-json": "*", "ext-reflection": "*", - "bitpay/key-utils": "^1.1", + "bitpay/key-utils": "^2.0", "guzzlehttp/guzzle": "^7.0", "symfony/yaml": "^5.4 || ^6.0 || ^7.0", "netresearch/jsonmapper": "^4.1", diff --git a/composer.lock b/composer.lock index ed0d72f2..f9038869 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f909f5bbf62dc932b555af90c03df021", + "content-hash": "85a8f63fea9f82ef23028c3bfee37148", "packages": [ { "name": "bitpay/key-utils", - "version": "1.1.4", + "version": "2.0.5", "source": { "type": "git", "url": "https://github.com/bitpay/bitpay-php-keyutils.git", - "reference": "61cc4a58f25e79b7f61ff4631152139f6b084cb1" + "reference": "e4797688252d25943414b2bb909f7547bc969877" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bitpay/bitpay-php-keyutils/zipball/61cc4a58f25e79b7f61ff4631152139f6b084cb1", - "reference": "61cc4a58f25e79b7f61ff4631152139f6b084cb1", + "url": "https://api.github.com/repos/bitpay/bitpay-php-keyutils/zipball/e4797688252d25943414b2bb909f7547bc969877", + "reference": "e4797688252d25943414b2bb909f7547bc969877", "shasum": "" }, "require": { @@ -25,10 +25,11 @@ "ext-curl": "*", "ext-iconv": "*", "ext-json": "*", - "ext-openssl": "*" + "ext-openssl": "*", + "php": "^8.1 || ^8.2 || ^8.3" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^9.0" + "phpunit/phpunit": "10.5.38" }, "suggest": { "ext-gmp": "Required to use this package with GMP instead of BCMath" @@ -52,9 +53,9 @@ "description": "BitPay Utils pack for cryptography", "support": { "issues": "https://github.com/bitpay/bitpay-php-keyutils/issues", - "source": "https://github.com/bitpay/bitpay-php-keyutils/tree/1.1.4" + "source": "https://github.com/bitpay/bitpay-php-keyutils/tree/2.0.5" }, - "time": "2024-02-06T02:15:49+00:00" + "time": "2024-12-09T17:50:51+00:00" }, { "name": "guzzlehttp/guzzle", @@ -691,16 +692,16 @@ }, { "name": "symfony/console", - "version": "v6.4.15", + "version": "v6.4.17", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f1fc6f47283e27336e7cebb9e8946c8de7bff9bd" + "reference": "799445db3f15768ecc382ac5699e6da0520a0a04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f1fc6f47283e27336e7cebb9e8946c8de7bff9bd", - "reference": "f1fc6f47283e27336e7cebb9e8946c8de7bff9bd", + "url": "https://api.github.com/repos/symfony/console/zipball/799445db3f15768ecc382ac5699e6da0520a0a04", + "reference": "799445db3f15768ecc382ac5699e6da0520a0a04", "shasum": "" }, "require": { @@ -765,7 +766,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.15" + "source": "https://github.com/symfony/console/tree/v6.4.17" }, "funding": [ { @@ -781,20 +782,20 @@ "type": "tidelift" } ], - "time": "2024-11-06T14:19:14+00:00" + "time": "2024-12-07T12:07:30+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", "shasum": "" }, "require": { @@ -802,12 +803,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -832,7 +833,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" }, "funding": [ { @@ -848,7 +849,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/polyfill-ctype", @@ -876,8 +877,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -952,8 +953,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1030,8 +1031,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1114,8 +1115,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1170,16 +1171,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", "shasum": "" }, "require": { @@ -1192,12 +1193,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -1233,7 +1234,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" }, "funding": [ { @@ -1249,7 +1250,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/string", @@ -1473,16 +1474,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -1525,9 +1526,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-10-08T18:51:32+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "phar-io/manifest", @@ -1970,16 +1971,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.38", + "version": "10.5.40", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132" + "reference": "e6ddda95af52f69c1e0c7b4f977cccb58048798c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a86773b9e887a67bc53efa9da9ad6e3f2498c132", - "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e6ddda95af52f69c1e0c7b4f977cccb58048798c", + "reference": "e6ddda95af52f69c1e0c7b4f977cccb58048798c", "shasum": "" }, "require": { @@ -1989,7 +1990,7 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.0", + "myclabs/deep-copy": "^1.12.1", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.1", @@ -2051,7 +2052,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.38" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.40" }, "funding": [ { @@ -2067,7 +2068,7 @@ "type": "tidelift" } ], - "time": "2024-10-28T13:06:21+00:00" + "time": "2024-12-21T05:49:06+00:00" }, { "name": "sebastian/cli-parser", diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index 23a18ff2..0d1a80a4 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -10,7 +10,7 @@ docs - + src diff --git a/src/BitPaySDK/Env.php b/src/BitPaySDK/Env.php index a2ce5a30..7d9639b3 100644 --- a/src/BitPaySDK/Env.php +++ b/src/BitPaySDK/Env.php @@ -17,7 +17,7 @@ interface Env public const TEST_URL = "https://test.bitpay.com/"; public const PROD_URL = "https://bitpay.com/"; public const BITPAY_API_VERSION = "2.0.0"; - public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.3"; + public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.4"; public const BITPAY_API_FRAME = "std"; public const BITPAY_API_FRAME_VERSION = "1.0.0"; } From 5e1943f0852c90eccdf9c3fb9434d3f9b71faa97 Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Thu, 2 Jan 2025 22:57:52 +0000 Subject: [PATCH 3/3] Update phpdoc --- docs/classes/BitPaySDK-Env.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/classes/BitPaySDK-Env.html b/docs/classes/BitPaySDK-Env.html index df005cb2..de2c547c 100644 --- a/docs/classes/BitPaySDK-Env.html +++ b/docs/classes/BitPaySDK-Env.html @@ -216,7 +216,7 @@

BITPAY_PLUGIN_INFO -  = "BitPay_PHP_Client_v9.1.3" +  = "BitPay_PHP_Client_v9.1.4"
@@ -371,7 +371,7 @@

public mixed BITPAY_PLUGIN_INFO - = "BitPay_PHP_Client_v9.1.3" + = "BitPay_PHP_Client_v9.1.4"