Compare commits
52 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f4744d10fd | ||
![]() |
1171642992 | ||
![]() |
c9d8e4ad61 | ||
![]() |
674be0f7fc | ||
![]() |
6128e82393 | ||
![]() |
17c53f7e7b | ||
![]() |
9bd1144042 | ||
![]() |
bfdab54f92 | ||
![]() |
a65579ee42 | ||
![]() |
3e8ab8ed1b | ||
![]() |
3c5b7d4bc3 | ||
![]() |
a251147362 | ||
![]() |
398e96c475 | ||
![]() |
98fa8b4c50 | ||
![]() |
d7d25e7a2e | ||
![]() |
2f7b1a7e57 | ||
![]() |
c136026ef8 | ||
![]() |
92e696cbe9 | ||
![]() |
6e34fe92ff | ||
![]() |
392e17d6f9 | ||
![]() |
c6728e4148 | ||
![]() |
203c6b01bb | ||
![]() |
e61399564d | ||
![]() |
687ad9c2e3 | ||
![]() |
e4b45c9365 | ||
![]() |
59c7525150 | ||
![]() |
784268b94e | ||
![]() |
78faf324ad | ||
![]() |
69f8584a0f | ||
![]() |
92d5d03f8d | ||
![]() |
b4fb05808b | ||
![]() |
4bc32e6b37 | ||
![]() |
766233bb98 | ||
![]() |
21ee8316b4 | ||
![]() |
3202472ab7 | ||
![]() |
62be53aee1 | ||
![]() |
ca882f9c9c | ||
![]() |
123122c1de | ||
![]() |
36f137bb3c | ||
![]() |
0f755ac9bd | ||
![]() |
815dd8cf26 | ||
![]() |
eb14651691 | ||
![]() |
75934fbdd5 | ||
![]() |
fc6441fb61 | ||
![]() |
de84caa616 | ||
![]() |
9fc277db03 | ||
![]() |
4889cb4cbf | ||
![]() |
7b73aac0d3 | ||
![]() |
dd63e1c076 | ||
![]() |
af75f8ba6f | ||
![]() |
acccaad40d | ||
![]() |
4367f97d78 |
6 changed files with 833 additions and 69 deletions
7
.github/dependabot.yml
vendored
Normal file
7
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: composer
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
open-pull-requests-limit: 10
|
14
.github/workflows/automerge.yml
vendored
Normal file
14
.github/workflows/automerge.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: Dependabot auto-merge minor/patch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
repository-projects: write
|
||||
|
||||
jobs:
|
||||
dependabot:
|
||||
uses: ShaneMcC/.github/.github/workflows/automergeMinorOrPatch.yml@master
|
||||
secrets: inherit
|
10
README.md
10
README.md
|
@ -5,11 +5,13 @@ At the moment this is a very simple library, will composerise this in future and
|
|||
|
||||
This implements version 1.0 of the API as documented at https://api.mydnshost.co.uk/1.0/docs/
|
||||
|
||||
Installation is via `composer require mydnshost/mydnshost-php-api`
|
||||
|
||||
Example usage, listing domains:
|
||||
|
||||
```php
|
||||
require_once(dirname(__FILE__) . '/MyDNSHostAPI.php');
|
||||
$api = new MyDNSHostAPI('https://api.mydnshost.co.uk/');
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
$api = new MyDNSHostAPI($config['api']);
|
||||
$api->setAuthUserKey('admin@example.org', 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE');
|
||||
|
||||
$domains = $api->getDomains();
|
||||
|
@ -18,6 +20,10 @@ Example usage, listing domains:
|
|||
|
||||
Example usage, importing zone files:
|
||||
```php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
$api = new MyDNSHostAPI($config['api']);
|
||||
$api->setAuthUserKey('admin@example.org', 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE');
|
||||
|
||||
$domain = 'test.com';
|
||||
$zonedata = file_get_contents('test.com.db');
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.0",
|
||||
"rmccue/requests": "^1.7"
|
||||
"php": ">=7.1",
|
||||
"rmccue/requests": "^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
|
|
74
composer.lock
generated
74
composer.lock
generated
|
@ -1,37 +1,57 @@
|
|||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "2225d0ea176758d08334df05129c0fd4",
|
||||
"content-hash": "f7c596d81d496d28405b795b98ad7976",
|
||||
"content-hash": "55d65ecd209ff9bb30f393746ff9b81d",
|
||||
"packages": [
|
||||
{
|
||||
"name": "rmccue/requests",
|
||||
"version": "v1.7.0",
|
||||
"version": "v2.0.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/rmccue/Requests.git",
|
||||
"reference": "87932f52ffad70504d93f04f15690cf16a089546"
|
||||
"url": "https://github.com/WordPress/Requests.git",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/rmccue/Requests/zipball/87932f52ffad70504d93f04f15690cf16a089546",
|
||||
"reference": "87932f52ffad70504d93f04f15690cf16a089546",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.2"
|
||||
"ext-json": "*",
|
||||
"php": ">=5.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"requests/test-server": "dev-master"
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
||||
"php-parallel-lint/php-console-highlighter": "^0.5.0",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.3.1",
|
||||
"phpcompatibility/php-compatibility": "^9.0",
|
||||
"requests/test-server": "dev-main",
|
||||
"roave/security-advisories": "dev-latest",
|
||||
"squizlabs/php_codesniffer": "^3.6",
|
||||
"wp-coding-standards/wpcs": "^2.0",
|
||||
"yoast/phpunit-polyfills": "^1.0.0"
|
||||
},
|
||||
"suggest": {
|
||||
"art4/requests-psr18-adapter": "For using Requests as a PSR-18 HTTP Client",
|
||||
"ext-curl": "For improved performance",
|
||||
"ext-openssl": "For secure transport support",
|
||||
"ext-zlib": "For improved performance when decompressing encoded streams"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Requests": "library/"
|
||||
}
|
||||
"files": [
|
||||
"library/Deprecated.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"WpOrg\\Requests\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"library/Requests.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
|
@ -40,11 +60,23 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Ryan McCue",
|
||||
"homepage": "http://ryanmccue.info"
|
||||
"homepage": "https://rmccue.io/"
|
||||
},
|
||||
{
|
||||
"name": "Alain Schlesser",
|
||||
"homepage": "https://github.com/schlessera"
|
||||
},
|
||||
{
|
||||
"name": "Juliette Reinders Folmer",
|
||||
"homepage": "https://github.com/jrfnl"
|
||||
},
|
||||
{
|
||||
"name": "Contributors",
|
||||
"homepage": "https://github.com/WordPress/Requests/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "A HTTP library written in PHP, for human beings.",
|
||||
"homepage": "http://github.com/rmccue/Requests",
|
||||
"homepage": "https://requests.ryanmccue.info/",
|
||||
"keywords": [
|
||||
"curl",
|
||||
"fsockopen",
|
||||
|
@ -54,7 +86,12 @@
|
|||
"iri",
|
||||
"sockets"
|
||||
],
|
||||
"time": "2016-10-13 00:11:37"
|
||||
"support": {
|
||||
"docs": "https://requests.ryanmccue.info/",
|
||||
"issues": "https://github.com/WordPress/Requests/issues",
|
||||
"source": "https://github.com/WordPress/Requests"
|
||||
},
|
||||
"time": "2024-12-11T09:46:32+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -64,7 +101,8 @@
|
|||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": ">=7.0"
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"platform-dev": []
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue