php-extended/php-tempmailaddress-com-api

This package is abandoned and no longer maintained. No replacement package was suggested.

A php API wrapper to connect to tempmailaddress.com API

5.1.8 2021-01-31 22:07 UTC

This package is auto-updated.

Last update: 2021-02-21 20:38:05 UTC


README

A php API wrapper to connect to tempmailaddress.com API

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-tempmailaddress-com-api": "^5",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

For the basic functions, use :


use PhpExtended\TempMailAddressComApi\TempMailAddressComApiEndpoint;

/* @var $client \Psr\Http\Client\ClientInterface */
/* @var $uriFactory \Psr\Http\Message\UriFactory */
/* @var $requestFactory \Psr\Http\Message\RequestFactory */

$endpoint = new TempMailAddressComApiEndpoint($client, $uriFactory, $requestFactory);

$endpoint->getEmailMetadatas('<username>', 1); // returns an JsonCollection of TempMailAddressComApiEmailMetadata
$endpoint->getEmail($metadata);	                // returns a \Psr\Http\Message\ResponseInterface 

For the packages that are useful at getting http requests (HttpProcessor), see the require-dev of the composer.json file.

License

MIT (See license file).