From c09a9acf05168a75be27d01ace62601e13296a5c Mon Sep 17 00:00:00 2001 From: Mark Tearle <mtearle@ucc.asn.au> Date: Sun, 7 Feb 2021 12:13:27 +0800 Subject: [PATCH] Initial working version of update_desec_txt() using Guzzle directly --- composer.json | 3 +- composer.lock | 954 +++++++++++++++++++++++++++++++++--------- quovadis/quovadis.php | 60 ++- 3 files changed, 800 insertions(+), 217 deletions(-) diff --git a/composer.json b/composer.json index a11d9ac..daec86e 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "require": { "leafs/leaf": "^2.4", "ramsey/uuid": "^4.1", - "abhilashpujari/php-restservice": "dev-master" + "abhilashpujari/php-restservice": "dev-master", + "guzzlehttp/guzzle": "^7.0" } } diff --git a/composer.lock b/composer.lock index 4e6a13d..50d7576 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c5bf39c68ae3974d33d04497d5a664c5", + "content-hash": "7a250215a88065189d17512fceab45dd", "packages": [ { "name": "abhilashpujari/php-restservice", @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/abhilashpujari/php-restservice.git", - "reference": "2f19197141e92a5b11f8448cf7b119f03cba1273" + "reference": "eee32be47c5ee6ffe1ee5eac889b8b7bef9c04f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/abhilashpujari/php-restservice/zipball/2f19197141e92a5b11f8448cf7b119f03cba1273", - "reference": "2f19197141e92a5b11f8448cf7b119f03cba1273", + "url": "https://api.github.com/repos/abhilashpujari/php-restservice/zipball/eee32be47c5ee6ffe1ee5eac889b8b7bef9c04f8", + "reference": "eee32be47c5ee6ffe1ee5eac889b8b7bef9c04f8", "shasum": "" }, "require": { @@ -52,30 +52,30 @@ "php", "rest" ], - "time": "2020-12-07T17:45:56+00:00" + "time": "2021-01-22T05:49:21+00:00" }, { "name": "brick/math", - "version": "0.9.1", + "version": "0.9.2", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "283a40c901101e66de7061bd359252c013dcc43c" + "reference": "dff976c2f3487d42c1db75a3b180e2b9f0e72ce0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/283a40c901101e66de7061bd359252c013dcc43c", - "reference": "283a40c901101e66de7061bd359252c013dcc43c", + "url": "https://api.github.com/repos/brick/math/zipball/dff976c2f3487d42c1db75a3b180e2b9f0e72ce0", + "reference": "dff976c2f3487d42c1db75a3b180e2b9f0e72ce0", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.1|^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^7.5.15|^8.5", - "vimeo/psalm": "^3.5" + "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", + "vimeo/psalm": "4.3.2" }, "type": "library", "autoload": { @@ -98,7 +98,7 @@ "brick", "math" ], - "time": "2020-08-18T23:57:15+00:00" + "time": "2021-01-20T22:51:39+00:00" }, { "name": "doctrine/inflector", @@ -379,29 +379,131 @@ ], "time": "2020-09-30T07:37:11+00:00" }, + { + "name": "illuminate/bus", + "version": "v8.26.1", + "source": { + "type": "git", + "url": "https://github.com/illuminate/bus.git", + "reference": "18b3d810cfe52a4fa040994e68da4f356a498e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/bus/zipball/18b3d810cfe52a4fa040994e68da4f356a498e8a", + "reference": "18b3d810cfe52a4fa040994e68da4f356a498e8a", + "shasum": "" + }, + "require": { + "illuminate/collections": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/pipeline": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0" + }, + "suggest": { + "illuminate/queue": "Required to use closures when chaining jobs (^7.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Bus\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Bus package.", + "homepage": "https://laravel.com", + "time": "2021-01-30T19:50:02+00:00" + }, + { + "name": "illuminate/collections", + "version": "v8.26.1", + "source": { + "type": "git", + "url": "https://github.com/illuminate/collections.git", + "reference": "904b28a184a8e3570e5312e6d0438d7df4b641ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/collections/zipball/904b28a184a8e3570e5312e6d0438d7df4b641ce", + "reference": "904b28a184a8e3570e5312e6d0438d7df4b641ce", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", + "php": "^7.3|^8.0" + }, + "suggest": { + "symfony/var-dumper": "Required to use the dump method (^5.1.4)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Support\\": "" + }, + "files": [ + "helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Collections package.", + "homepage": "https://laravel.com", + "time": "2021-01-30T19:50:02+00:00" + }, { "name": "illuminate/container", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", - "reference": "aa6e7030cba7458bbeeddfb1ddb54b3c2f7ba113" + "reference": "657cac2aa601aa0223afe0ed8627d0cb443f6a22" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/container/zipball/aa6e7030cba7458bbeeddfb1ddb54b3c2f7ba113", - "reference": "aa6e7030cba7458bbeeddfb1ddb54b3c2f7ba113", + "url": "https://api.github.com/repos/illuminate/container/zipball/657cac2aa601aa0223afe0ed8627d0cb443f6a22", + "reference": "657cac2aa601aa0223afe0ed8627d0cb443f6a22", "shasum": "" }, "require": { - "illuminate/contracts": "^6.0", - "php": "^7.2.5|^8.0", + "illuminate/contracts": "^8.0", + "php": "^7.3|^8.0", "psr/container": "^1.0" }, + "provide": { + "psr/container-implementation": "1.0" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -421,31 +523,31 @@ ], "description": "The Illuminate Container package.", "homepage": "https://laravel.com", - "time": "2020-10-27T16:13:38+00:00" + "time": "2020-12-01T14:31:29+00:00" }, { "name": "illuminate/contracts", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "89dc8d7ac32cdfa254461cdd4da5d692b44169a4" + "reference": "b91459a9a0bd0de204c3cae6859ebd02dbcee6c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/89dc8d7ac32cdfa254461cdd4da5d692b44169a4", - "reference": "89dc8d7ac32cdfa254461cdd4da5d692b44169a4", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/b91459a9a0bd0de204c3cae6859ebd02dbcee6c6", + "reference": "b91459a9a0bd0de204c3cae6859ebd02dbcee6c6", "shasum": "" }, "require": { - "php": "^7.2.5|^8.0", + "php": "^7.3|^8.0", "psr/container": "^1.0", "psr/simple-cache": "^1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -465,42 +567,45 @@ ], "description": "The Illuminate Contracts package.", "homepage": "https://laravel.com", - "time": "2020-12-18T14:12:37+00:00" + "time": "2021-01-20T14:18:13+00:00" }, { "name": "illuminate/database", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/database.git", - "reference": "49563a8b1676c13207b3c3bd516f1b7a8c343887" + "reference": "4f7a92b9c59175f2f204366b957851029cb8b0c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/database/zipball/49563a8b1676c13207b3c3bd516f1b7a8c343887", - "reference": "49563a8b1676c13207b3c3bd516f1b7a8c343887", + "url": "https://api.github.com/repos/illuminate/database/zipball/4f7a92b9c59175f2f204366b957851029cb8b0c0", + "reference": "4f7a92b9c59175f2f204366b957851029cb8b0c0", "shasum": "" }, "require": { "ext-json": "*", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", - "php": "^7.2.5|^8.0" + "illuminate/collections": "^8.0", + "illuminate/container": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0", + "symfony/console": "^5.1.4" }, "suggest": { - "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).", "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", - "illuminate/console": "Required to use the database commands (^6.0).", - "illuminate/events": "Required to use the observers with Eloquent (^6.0).", - "illuminate/filesystem": "Required to use the migrations (^6.0).", - "illuminate/pagination": "Required to paginate the result set (^6.0).", - "symfony/finder": "Required to use Eloquent model factories (^4.3.4)." + "illuminate/console": "Required to use the database commands (^8.0).", + "illuminate/events": "Required to use the observers with Eloquent (^8.0).", + "illuminate/filesystem": "Required to use the migrations (^8.0).", + "illuminate/pagination": "Required to paginate the result set (^8.0).", + "symfony/finder": "Required to use Eloquent model factories (^5.1.4)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -526,38 +631,44 @@ "orm", "sql" ], - "time": "2021-01-13T13:35:45+00:00" + "time": "2021-02-02T13:42:30+00:00" }, { "name": "illuminate/events", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/events.git", - "reference": "668581e3c31f9d499dc6919fe873003969a88e6c" + "reference": "676787d8c54988465e7e7d95f15a7d1a23c2643b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/events/zipball/668581e3c31f9d499dc6919fe873003969a88e6c", - "reference": "668581e3c31f9d499dc6919fe873003969a88e6c", + "url": "https://api.github.com/repos/illuminate/events/zipball/676787d8c54988465e7e7d95f15a7d1a23c2643b", + "reference": "676787d8c54988465e7e7d95f15a7d1a23c2643b", "shasum": "" }, "require": { - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", - "php": "^7.2.5|^8.0" + "illuminate/bus": "^8.0", + "illuminate/collections": "^8.0", + "illuminate/container": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { "psr-4": { "Illuminate\\Events\\": "" - } + }, + "files": [ + "functions.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -571,40 +682,45 @@ ], "description": "The Illuminate Events package.", "homepage": "https://laravel.com", - "time": "2020-10-27T15:05:51+00:00" + "time": "2021-02-02T13:42:30+00:00" }, { "name": "illuminate/filesystem", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", - "reference": "5355953da41db06aac064a3d08dfa1f9bafffd24" + "reference": "5b71c60764b64e78b943a87691e4465cd7a53698" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/filesystem/zipball/5355953da41db06aac064a3d08dfa1f9bafffd24", - "reference": "5355953da41db06aac064a3d08dfa1f9bafffd24", + "url": "https://api.github.com/repos/illuminate/filesystem/zipball/5b71c60764b64e78b943a87691e4465cd7a53698", + "reference": "5b71c60764b64e78b943a87691e4465cd7a53698", "shasum": "" }, "require": { - "illuminate/contracts": "^6.0", - "illuminate/support": "^6.0", - "php": "^7.2.5|^8.0", - "symfony/finder": "^4.3.4" + "illuminate/collections": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0", + "symfony/finder": "^5.1.4" }, "suggest": { "ext-ftp": "Required to use the Flysystem FTP driver.", + "illuminate/http": "Required for handling uploaded files (^7.0).", "league/flysystem": "Required to use the Flysystem local and FTP drivers (^1.1).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", - "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0)." + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^5.1.4).", + "symfony/mime": "Required to enable support for guessing extensions (^5.1.4)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -624,45 +740,133 @@ ], "description": "The Illuminate Filesystem package.", "homepage": "https://laravel.com", - "time": "2020-10-27T15:05:51+00:00" + "time": "2021-02-02T13:47:20+00:00" + }, + { + "name": "illuminate/macroable", + "version": "v8.26.1", + "source": { + "type": "git", + "url": "https://github.com/illuminate/macroable.git", + "reference": "300aa13c086f25116b5f3cde3ca54ff5c822fb05" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/macroable/zipball/300aa13c086f25116b5f3cde3ca54ff5c822fb05", + "reference": "300aa13c086f25116b5f3cde3ca54ff5c822fb05", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Support\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Macroable package.", + "homepage": "https://laravel.com", + "time": "2020-10-27T15:20:30+00:00" + }, + { + "name": "illuminate/pipeline", + "version": "v8.26.1", + "source": { + "type": "git", + "url": "https://github.com/illuminate/pipeline.git", + "reference": "d406237ea39f6c655569551a8bfb2d00ace6e43d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/illuminate/pipeline/zipball/d406237ea39f6c655569551a8bfb2d00ace6e43d", + "reference": "d406237ea39f6c655569551a8bfb2d00ace6e43d", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Pipeline\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Illuminate Pipeline package.", + "homepage": "https://laravel.com", + "time": "2020-10-27T15:20:30+00:00" }, { "name": "illuminate/support", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "338777190c1169087e1d8f61a0fb7b1255310c74" + "reference": "26e0aa4ed8616f5e1366d1ef9d6f1434fccaf63e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/338777190c1169087e1d8f61a0fb7b1255310c74", - "reference": "338777190c1169087e1d8f61a0fb7b1255310c74", + "url": "https://api.github.com/repos/illuminate/support/zipball/26e0aa4ed8616f5e1366d1ef9d6f1434fccaf63e", + "reference": "26e0aa4ed8616f5e1366d1ef9d6f1434fccaf63e", "shasum": "" }, "require": { "doctrine/inflector": "^1.4|^2.0", "ext-json": "*", "ext-mbstring": "*", - "illuminate/contracts": "^6.0", + "illuminate/collections": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/macroable": "^8.0", "nesbot/carbon": "^2.31", - "php": "^7.2.5|^8.0" + "php": "^7.3|^8.0", + "voku/portable-ascii": "^1.4.8" }, "conflict": { "tightenco/collect": "<5.5.33" }, "suggest": { - "illuminate/filesystem": "Required to use the composer class (^6.0).", - "moontoast/math": "Required to use ordered UUIDs (^1.1).", - "ramsey/uuid": "Required to use Str::uuid() (^3.7).", - "symfony/process": "Required to use the composer class (^4.3.4).", - "symfony/var-dumper": "Required to use the dd function (^4.3.4).", - "vlucas/phpdotenv": "Required to use the Env class and env helper (^3.3)." + "illuminate/filesystem": "Required to use the composer class (^8.0).", + "ramsey/uuid": "Required to use Str::uuid() (^4.0).", + "symfony/process": "Required to use the composer class (^5.1.4).", + "symfony/var-dumper": "Required to use the dd function (^5.1.4).", + "vlucas/phpdotenv": "Required to use the Env class and env helper (^5.2)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -685,36 +889,37 @@ ], "description": "The Illuminate Support package.", "homepage": "https://laravel.com", - "time": "2020-12-21T22:30:16+00:00" + "time": "2021-02-02T13:46:31+00:00" }, { "name": "illuminate/view", - "version": "v6.20.12", + "version": "v8.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/view.git", - "reference": "ef8ca562fb42957b76b00dc21a9c08df5798f572" + "reference": "696a1d6d2213be192429e97245a3d2bb4d6d1849" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/view/zipball/ef8ca562fb42957b76b00dc21a9c08df5798f572", - "reference": "ef8ca562fb42957b76b00dc21a9c08df5798f572", + "url": "https://api.github.com/repos/illuminate/view/zipball/696a1d6d2213be192429e97245a3d2bb4d6d1849", + "reference": "696a1d6d2213be192429e97245a3d2bb4d6d1849", "shasum": "" }, "require": { "ext-json": "*", - "illuminate/container": "^6.0", - "illuminate/contracts": "^6.0", - "illuminate/events": "^6.0", - "illuminate/filesystem": "^6.0", - "illuminate/support": "^6.0", - "php": "^7.2.5|^8.0", - "symfony/debug": "^4.3.4" + "illuminate/collections": "^8.0", + "illuminate/container": "^8.0", + "illuminate/contracts": "^8.0", + "illuminate/events": "^8.0", + "illuminate/filesystem": "^8.0", + "illuminate/macroable": "^8.0", + "illuminate/support": "^8.0", + "php": "^7.3|^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -734,24 +939,24 @@ ], "description": "The Illuminate View package.", "homepage": "https://laravel.com", - "time": "2020-10-27T15:05:51+00:00" + "time": "2020-11-02T14:01:41+00:00" }, { "name": "leafs/blade", - "version": "v1.2.3", + "version": "v1.2.4", "source": { "type": "git", "url": "https://github.com/leafsphp/blade.git", - "reference": "b0c331a56a4ace099dddf203d2b6b537256e12f1" + "reference": "4daec543d0aae91de03369cb90c742e95cb111ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/leafsphp/blade/zipball/b0c331a56a4ace099dddf203d2b6b537256e12f1", - "reference": "b0c331a56a4ace099dddf203d2b6b537256e12f1", + "url": "https://api.github.com/repos/leafsphp/blade/zipball/4daec543d0aae91de03369cb90c742e95cb111ac", + "reference": "4daec543d0aae91de03369cb90c742e95cb111ac", "shasum": "" }, "require": { - "illuminate/view": "^5.5|^6.0", + "illuminate/view": "^5.5|^6.0|^7.0|^8.0", "php": ">=7.0" }, "require-dev": { @@ -777,7 +982,6 @@ } ], "description": "Leaf PHP Framework adaptation of jenssegers/blade package", - "homepage": "https://leaf-docs.netlify.com/v2.0/views/blade.html", "keywords": [ "blade", "laravel", @@ -787,29 +991,29 @@ "template", "view" ], - "time": "2020-03-07T19:41:17+00:00" + "time": "2021-01-20T17:21:52+00:00" }, { "name": "leafs/leaf", - "version": "v2.4.1", + "version": "v2.4.2", "source": { "type": "git", "url": "https://github.com/leafsphp/leaf.git", - "reference": "9ce616128c9155b7cfbaff6ec2939b43ae08502e" + "reference": "ad78e4711dcafb03600f7cb057425a5282f50bef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/leafsphp/leaf/zipball/9ce616128c9155b7cfbaff6ec2939b43ae08502e", - "reference": "9ce616128c9155b7cfbaff6ec2939b43ae08502e", + "url": "https://api.github.com/repos/leafsphp/leaf/zipball/ad78e4711dcafb03600f7cb057425a5282f50bef", + "reference": "ad78e4711dcafb03600f7cb057425a5282f50bef", "shasum": "" }, "require": { - "illuminate/container": "^6.0", - "illuminate/database": "^6.0", - "illuminate/events": "^6.0", - "illuminate/view": "^6.8.0", - "leafs/blade": "^1.2.3", - "phpmailer/phpmailer": "^6.1" + "illuminate/container": "^8.0", + "illuminate/database": "^8.0", + "illuminate/events": "^8.0", + "illuminate/view": "^8.0", + "leafs/blade": "^1.2", + "phpmailer/phpmailer": "^6.2" }, "type": "library", "autoload": { @@ -839,20 +1043,20 @@ "rest", "router" ], - "time": "2021-01-12T18:14:49+00:00" + "time": "2021-02-03T11:47:53+00:00" }, { "name": "nesbot/carbon", - "version": "2.43.0", + "version": "2.44.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "d32c57d8389113742f4a88725a170236470012e2" + "reference": "e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/d32c57d8389113742f4a88725a170236470012e2", - "reference": "d32c57d8389113742f4a88725a170236470012e2", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd", + "reference": "e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd", "shasum": "" }, "require": { @@ -868,7 +1072,7 @@ "phpmd/phpmd": "^2.9", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.12.54", - "phpunit/phpunit": "^7.5 || ^8.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.14", "squizlabs/php_codesniffer": "^3.4" }, "bin": [ @@ -918,7 +1122,7 @@ "datetime", "time" ], - "time": "2020-12-17T20:55:32+00:00" + "time": "2021-01-26T20:46:41+00:00" }, { "name": "phpmailer/phpmailer", @@ -1134,53 +1338,6 @@ ], "time": "2016-08-06T14:39:51+00:00" }, - { - "name": "psr/log", - "version": "1.1.3", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2020-03-23T09:12:05+00:00" - }, { "name": "psr/simple-cache", "version": "1.0.1", @@ -1271,16 +1428,16 @@ }, { "name": "ramsey/collection", - "version": "1.1.1", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/ramsey/collection.git", - "reference": "24d93aefb2cd786b7edd9f45b554aea20b28b9b1" + "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/collection/zipball/24d93aefb2cd786b7edd9f45b554aea20b28b9b1", - "reference": "24d93aefb2cd786b7edd9f45b554aea20b28b9b1", + "url": "https://api.github.com/repos/ramsey/collection/zipball/28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1", + "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1", "shasum": "" }, "require": { @@ -1290,19 +1447,19 @@ "captainhook/captainhook": "^5.3", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "ergebnis/composer-normalize": "^2.6", - "fzaninotto/faker": "^1.5", + "fakerphp/faker": "^1.5", "hamcrest/hamcrest-php": "^2", - "jangregor/phpstan-prophecy": "^0.6", + "jangregor/phpstan-prophecy": "^0.8", "mockery/mockery": "^1.3", "phpstan/extension-installer": "^1", "phpstan/phpstan": "^0.12.32", "phpstan/phpstan-mockery": "^0.12.5", "phpstan/phpstan-phpunit": "^0.12.11", - "phpunit/phpunit": "^8.5", + "phpunit/phpunit": "^8.5 || ^9", "psy/psysh": "^0.10.4", "slevomat/coding-standard": "^6.3", "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^3.12.2" + "vimeo/psalm": "^4.4" }, "type": "library", "autoload": { @@ -1330,7 +1487,7 @@ "queue", "set" ], - "time": "2020-09-10T20:58:17+00:00" + "time": "2021-01-21T17:40:04+00:00" }, { "name": "ramsey/uuid", @@ -1414,34 +1571,56 @@ "time": "2020-08-18T17:17:46+00:00" }, { - "name": "symfony/debug", - "version": "v4.4.18", + "name": "symfony/console", + "version": "v5.2.3", "source": { "type": "git", - "url": "https://github.com/symfony/debug.git", - "reference": "5dfc7825f3bfe9bb74b23d8b8ce0e0894e32b544" + "url": "https://github.com/symfony/console.git", + "reference": "89d4b176d12a2946a1ae4e34906a025b7b6b135a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/5dfc7825f3bfe9bb74b23d8b8ce0e0894e32b544", - "reference": "5dfc7825f3bfe9bb74b23d8b8ce0e0894e32b544", + "url": "https://api.github.com/repos/symfony/console/zipball/89d4b176d12a2946a1ae4e34906a025b7b6b135a", + "reference": "89d4b176d12a2946a1ae4e34906a025b7b6b135a", "shasum": "" }, "require": { - "php": ">=7.1.3", - "psr/log": "~1.0", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.2.5", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.8", + "symfony/polyfill-php80": "^1.15", + "symfony/service-contracts": "^1.1|^2", + "symfony/string": "^5.1" }, "conflict": { - "symfony/http-kernel": "<3.4" + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" + }, + "provide": { + "psr/log-implementation": "1.0" }, "require-dev": { - "symfony/http-kernel": "^3.4|^4.0|^5.0" + "psr/log": "~1.0", + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/event-dispatcher": "^4.4|^5.0", + "symfony/lock": "^4.4|^5.0", + "symfony/process": "^4.4|^5.0", + "symfony/var-dumper": "^4.4|^5.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" }, "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Debug\\": "" + "Symfony\\Component\\Console\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -1461,26 +1640,32 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Debug Component", + "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", - "time": "2020-12-10T16:34:26+00:00" + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "time": "2021-01-28T22:06:19+00:00" }, { "name": "symfony/finder", - "version": "v4.4.18", + "version": "v5.2.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ebd0965f2dc2d4e0f11487c16fbb041e50b5c09b" + "reference": "4adc8d172d602008c204c2e16956f99257248e03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ebd0965f2dc2d4e0f11487c16fbb041e50b5c09b", - "reference": "ebd0965f2dc2d4e0f11487c16fbb041e50b5c09b", + "url": "https://api.github.com/repos/symfony/finder/zipball/4adc8d172d602008c204c2e16956f99257248e03", + "reference": "4adc8d172d602008c204c2e16956f99257248e03", "shasum": "" }, "require": { - "php": ">=7.1.3" + "php": ">=7.2.5" }, "type": "library", "autoload": { @@ -1505,9 +1690,9 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Finder Component", + "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", - "time": "2020-12-08T16:59:59+00:00" + "time": "2021-01-28T22:06:19+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1571,6 +1756,137 @@ ], "time": "2021-01-07T16:49:33+00:00" }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.22.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "267a9adeb8ecb8071040a740930e077cdfb987af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/267a9adeb8ecb8071040a740930e077cdfb987af", + "reference": "267a9adeb8ecb8071040a740930e077cdfb987af", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "time": "2021-01-07T16:49:33+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.22.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "6e971c891537eb617a00bb07a43d182a6915faba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/6e971c891537eb617a00bb07a43d182a6915faba", + "reference": "6e971c891537eb617a00bb07a43d182a6915faba", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "time": "2021-01-07T17:09:11+00:00" + }, { "name": "symfony/polyfill-mbstring", "version": "v1.22.0", @@ -1634,6 +1950,68 @@ ], "time": "2021-01-07T16:49:33+00:00" }, + { + "name": "symfony/polyfill-php73", + "version": "v1.22.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2", + "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2021-01-07T16:49:33+00:00" + }, { "name": "symfony/polyfill-php80", "version": "v1.22.0", @@ -1700,18 +2078,146 @@ ], "time": "2021-01-07T16:49:33+00:00" }, + { + "name": "symfony/service-contracts", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d15da7ba4957ffb8f1747218be9e1a121fd298a1", + "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.0" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2020-09-07T11:33:47+00:00" + }, + { + "name": "symfony/string", + "version": "v5.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "c95468897f408dd0aca2ff582074423dd0455122" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/c95468897f408dd0aca2ff582074423dd0455122", + "reference": "c95468897f408dd0aca2ff582074423dd0455122", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0", + "symfony/http-client": "^4.4|^5.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "files": [ + "Resources/functions.php" + ], + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "time": "2021-01-25T15:14:59+00:00" + }, { "name": "symfony/translation", - "version": "v5.2.1", + "version": "v5.2.3", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "a04209ba0d1391c828e5b2373181dac63c52ee70" + "reference": "c021864d4354ee55160ddcfd31dc477a1bc77949" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/a04209ba0d1391c828e5b2373181dac63c52ee70", - "reference": "a04209ba0d1391c828e5b2373181dac63c52ee70", + "url": "https://api.github.com/repos/symfony/translation/zipball/c021864d4354ee55160ddcfd31dc477a1bc77949", + "reference": "c021864d4354ee55160ddcfd31dc477a1bc77949", "shasum": "" }, "require": { @@ -1772,9 +2278,9 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Translation Component", + "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", - "time": "2020-12-08T17:03:37+00:00" + "time": "2021-01-27T10:15:41+00:00" }, { "name": "symfony/translation-contracts", @@ -1836,6 +2342,54 @@ "standards" ], "time": "2020-09-28T13:05:58+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "1.5.6", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "80953678b19901e5165c56752d087fc11526017c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/80953678b19901e5165c56752d087fc11526017c", + "reference": "80953678b19901e5165c56752d087fc11526017c", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "time": "2020-11-12T00:07:28+00:00" } ], "packages-dev": [], diff --git a/quovadis/quovadis.php b/quovadis/quovadis.php index 225fba3..665a208 100644 --- a/quovadis/quovadis.php +++ b/quovadis/quovadis.php @@ -7,6 +7,7 @@ error_reporting(E_ALL); require_once('config.php'); use Ramsey\Uuid\Uuid; use RestService\RestService; +use GuzzleHttp\Client; function check_username($username) { // returns true if we get some info about the username @@ -69,23 +70,49 @@ function check_challenge($challenge) { // EOF // -function update_desec_txt($name, $txt) { +function update_desec_txt($config, $name, $txt) { + $path = "/api/v1/domains/" . $config['QV_DOMAIN'] . "/rrsets/" . $name . "/TXT/"; + $auth_string = "Token ". $config['QV_DESEC_API']; + $headers = [ + 'Authorization' => $auth_string, + 'Content-Type' => "application/json" - $restService = new RestService(); + ]; -// $response = $restService -// ->setEndpoint('https://jsonplaceholder.typicode.com') -// ->get('/posts/1'); - -// $restService -// ->setEndpoint('https://jsonplaceholder.typicode.com') -// ->put('/posts/1', -// [ -// 'id' => 1, -// 'text' => 'Test' -// ] -// ); - + + + $val = [ + 'subname' => $name, + 'type' => 'TXT', + 'ttl' => 3600, + 'records' => ['"'. $txt . '"',], + ]; + + $body = json_encode($val); + + + $client = new GuzzleHttp\Client([ + 'base_uri' => 'https://desec.io', + 'timeout' => 2, + 'debug' => true + ]); + + try { + $response = $client->request('PUT', $path, [ 'headers'=>$headers, 'body'=>$body ]); + } catch (ClientException $e) { + throw new Exception($e->getResponse()->getReasonPhrase(), $e->getResponse()->getStatusCode()); + } catch (BadResponseException $e) { + throw new Exception($e->getResponse()->getReasonPhrase(), $e->getResponse()->getStatusCode()); + } catch (Exception $e) { + throw new Exception($e->getMessage(), $e->getCode()); + } + + $result = json_decode($response->getBody(), true); + if (array_key_exists('records', $result)) { + return stripQuotes($result['records'][0]); + } else { + return ""; + } } // Instantiate Leaf @@ -94,9 +121,10 @@ $leaf = new Leaf\App; // Add routes $leaf->get('/', function () use($leaf) { $config=get_config(); + $s = update_desec_txt($config, "mtearle-test", "test flight"); $r = get_desec_txt($config, "mtearle-test"); // since the response object is directly tied to the leaf instance - $html = '<h5>My first Leaf app</h5>' . $r; + $html = '<h5>My first Leaf app</h5>' . $r . " --- ". $s; $leaf->response()->markup($html); }); -- GitLab