Download the PHP package automattic/domain-services-client without Composer
On this page you can find all versions of the php package automattic/domain-services-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download automattic/domain-services-client
More information about automattic/domain-services-client
Files in automattic/domain-services-client
Package domain-services-client
Short Description Client library for Automattic's Domain Services API.
License GPL-2.0-or-later
Informations about the package domain-services-client
Client
Client code for Automattic's Domain Services.
Purpose
This library is used to connect a php client to Automattic's domain management service. It is currently only intended for use by applications hosted by Automattic and will not work for other use cases.
Installation & Usage
Requirements
- PHP 7.4 and later. (Should also work with PHP 8.0.)
- Also requires an Http client compatible with PSR-18's ClientInterface implementation.
Adding the library to your code
As mentioned in the requirements above, the package expects a PSR-18 compatible HTTP client. There is a list of available HTTP clients with that implementation available here. Below are instructions for both Guzzle 7 as an example.
Guzzle 7
- Guzzle 7 implements both
PSR-18
andPSR-17
standards. This makes it ready to work with the client library directly. -
To require this library and Guzzle 7 (if it's not already), the full command should look something like that:
- Once this is done, make sure to require the composer autoload file
vendor/autoload.php
in your code if it's not already. - You can see an example of the code here
Guzzle 6
- Guzzle 6 does not implement PSR-18
ClientInterface
, therefore you will need to use an adapter for it. One of the most common adapters for that is php-http/guzzle6-adapter package. - Guzzle 6 also does implement PSR-17 HTTP Factories. There are many packages to choose from, but for this example, we will be using http-interop/http-factory-guzzle
-
The full command should look something like that:
- Once this is done, make sure to require the composer autoload file
vendor/autoload.php
in your code if it's not already. - You can see an example of the code here
Getting Started
Please follow the installation procedure and then run the following:
Run the unit tests
Install the dependencies via composer
by following the instructions above
Then run the unit tests
License
The Automattic Domain Services Client is licensed under GNU General Public License v2 (or later).
All versions of domain-services-client with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0
psr/http-factory Version ^1.0
psr/http-client-implementation Version ^1.0