Compare commits
No commits in common. "master" and "0.1" have entirely different histories.
6 changed files with 69 additions and 833 deletions
7
.github/dependabot.yml
vendored
7
.github/dependabot.yml
vendored
|
@ -1,7 +0,0 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: composer
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
open-pull-requests-limit: 10
|
14
.github/workflows/automerge.yml
vendored
14
.github/workflows/automerge.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
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,13 +5,11 @@ 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(__DIR__ . '/vendor/autoload.php');
|
||||
$api = new MyDNSHostAPI($config['api']);
|
||||
require_once(dirname(__FILE__) . '/MyDNSHostAPI.php');
|
||||
$api = new MyDNSHostAPI('https://api.mydnshost.co.uk/');
|
||||
$api->setAuthUserKey('admin@example.org', 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE');
|
||||
|
||||
$domains = $api->getDomains();
|
||||
|
@ -20,10 +18,6 @@ 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.1",
|
||||
"rmccue/requests": "^2.0"
|
||||
"php": ">=7.0",
|
||||
"rmccue/requests": "^1.7"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
|
|
74
composer.lock
generated
74
composer.lock
generated
|
@ -1,57 +1,37 @@
|
|||
{
|
||||
"_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#installing-dependencies",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "55d65ecd209ff9bb30f393746ff9b81d",
|
||||
"hash": "2225d0ea176758d08334df05129c0fd4",
|
||||
"content-hash": "f7c596d81d496d28405b795b98ad7976",
|
||||
"packages": [
|
||||
{
|
||||
"name": "rmccue/requests",
|
||||
"version": "v2.0.14",
|
||||
"version": "v1.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/WordPress/Requests.git",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1"
|
||||
"url": "https://github.com/rmccue/Requests.git",
|
||||
"reference": "87932f52ffad70504d93f04f15690cf16a089546"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"url": "https://api.github.com/repos/rmccue/Requests/zipball/87932f52ffad70504d93f04f15690cf16a089546",
|
||||
"reference": "87932f52ffad70504d93f04f15690cf16a089546",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": ">=5.6"
|
||||
"php": ">=5.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"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"
|
||||
"requests/test-server": "dev-master"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"library/Deprecated.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"WpOrg\\Requests\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"library/Requests.php"
|
||||
]
|
||||
"psr-0": {
|
||||
"Requests": "library/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
|
@ -60,23 +40,11 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Ryan McCue",
|
||||
"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"
|
||||
"homepage": "http://ryanmccue.info"
|
||||
}
|
||||
],
|
||||
"description": "A HTTP library written in PHP, for human beings.",
|
||||
"homepage": "https://requests.ryanmccue.info/",
|
||||
"homepage": "http://github.com/rmccue/Requests",
|
||||
"keywords": [
|
||||
"curl",
|
||||
"fsockopen",
|
||||
|
@ -86,12 +54,7 @@
|
|||
"iri",
|
||||
"sockets"
|
||||
],
|
||||
"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"
|
||||
"time": "2016-10-13 00:11:37"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -101,8 +64,7 @@
|
|||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": ">=7.1"
|
||||
"php": ">=7.0"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
"platform-dev": []
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue