Compare commits
No commits in common. "rel_1.x" and "1.3.0" have entirely different histories.
54
CHANGELOG.md
54
CHANGELOG.md
@ -1,55 +1,41 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
---
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
## [Unreleased](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.3.2...rel_1.x)
|
## 1.3.0.0 (2022-07-18)
|
||||||
|
|
||||||
## [1.3.2](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.3.1...1.3.2) - 2022-07-28
|
|
||||||
### Changed
|
|
||||||
- add support note
|
|
||||||
- adjust readme
|
|
||||||
|
|
||||||
## [1.3.1](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.3.0...1.3.1) - 2022-07-28
|
|
||||||
### Changed
|
|
||||||
- improve code quality
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- wrong return type of LoggerHandler::getInstance
|
|
||||||
|
|
||||||
## [1.3.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.2.1...1.3.0) - 2022-07-18
|
|
||||||
### Added
|
|
||||||
- tests added
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
- tests use generated example phone numbers
|
- tests use generated example phone numbers
|
||||||
- move recipient checks from list to recipient itself
|
- move recipient checks from list to recipient itself
|
||||||
|
- tests added
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1.2.1.0 (2022-07-15)
|
||||||
|
|
||||||
## [1.2.1](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.2.0...1.2.1) - 2022-07-15
|
|
||||||
### Changed
|
|
||||||
- extend log messages
|
- extend log messages
|
||||||
- sanitize special phone number format before request
|
- sanitize special phone number format before request
|
||||||
|
|
||||||
## [1.2.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.1.0...1.2.0) - 2022-07-14
|
---
|
||||||
### Added
|
|
||||||
- collect exception messages in a class
|
## 1.2.0.0 (2022-07-14)
|
||||||
- collect URI parts in a class
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
- make sender number optional
|
- make sender number optional
|
||||||
- assign sender address type only if sender is set
|
- assign sender address type only if sender is set
|
||||||
|
- collect exception messages in a class
|
||||||
|
- collect URI parts in a class
|
||||||
- extract logger handler from client
|
- extract logger handler from client
|
||||||
|
|
||||||
## [1.1.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.0.0...1.1.0) - 2022-07-13
|
---
|
||||||
### Added
|
|
||||||
- make installable in PHP 8
|
|
||||||
|
|
||||||
### Removed
|
## 1.1.0.0 (2022-07-13)
|
||||||
|
|
||||||
|
- make installable in PHP 8
|
||||||
- remove unused dependency
|
- remove unused dependency
|
||||||
|
|
||||||
## [1.0.0](https://git.d3data.de/D3Private/linkmobility-php-client/releases/tag/1.0.0) - 2022-07-13
|
---
|
||||||
### Added
|
|
||||||
|
## 1.0.0.0 (2022-07-13)
|
||||||
|
|
||||||
- initial implementation
|
- initial implementation
|
||||||
- SMS requests (text or binary)
|
- SMS requests (text or binary)
|
||||||
- SMS responses
|
- SMS responses
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md)
|
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md)
|
||||||
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
|
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
|
||||||
|
|
||||||
# LINK Mobility PHP API Client
|
# LINK Mobility Austria PHP API Client
|
||||||
|
|
||||||
[LINK Mobility](https://www.linkmobility.de/) provides a service for sending mobile messages (SMS, Whatsapp, RCS, Chatbot, ...).
|
[LINK Mobility](https://www.linkmobility.de/) provides a service for sending mobile messages (SMS, Whatsapp, RCS, Chatbot, ...).
|
||||||
|
|
||||||
@ -39,12 +39,6 @@ If you have a suggestion that would make this better, please fork the repo and c
|
|||||||
- Push to the Branch (git push origin feature/AmazingFeature)
|
- Push to the Branch (git push origin feature/AmazingFeature)
|
||||||
- Open a Pull Request
|
- Open a Pull Request
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
If you have any questions about the *messaging service* and its *contracts*, please contact the [LINK Mobility Team](https://www.linkmobility.de/kontakt).
|
|
||||||
|
|
||||||
For *technical inquiries* you will find the contact options in the [composer.json](composer.json).
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
(status: 2022-07-13)
|
(status: 2022-07-13)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md)
|
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md)
|
||||||
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
|
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
|
||||||
|
|
||||||
# LINK Mobility PHP API Client
|
# LINK Mobility Austria PHP API Client
|
||||||
|
|
||||||
[LINK Mobility](https://www.linkmobility.de/) stellt einen Service zum Versenden von mobilen Nachrichten (SMS, Whatsapp, RCS, Chatbot, ...) zur VerfĂĽgung.
|
[LINK Mobility](https://www.linkmobility.de/) stellt einen Service zum Versenden von mobilen Nachrichten (SMS, Whatsapp, RCS, Chatbot, ...) zur VerfĂĽgung.
|
||||||
|
|
||||||
@ -39,12 +39,6 @@ Wenn Sie eine Verbesserungsvorschlag haben, legen Sie einen Fork des Respoitorie
|
|||||||
- Ăśbertragen Sie den Branch (git push origin feature/AmazingFeature)
|
- Ăśbertragen Sie den Branch (git push origin feature/AmazingFeature)
|
||||||
- Ă–ffnen Sie einen Pull Request
|
- Ă–ffnen Sie einen Pull Request
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
Bei Fragen zum *Messaging Service* und dessen *Verträgen* kontaktieren Sie bitte das [LINK Mobility Team](https://www.linkmobility.de/kontakt).
|
|
||||||
|
|
||||||
Zu *technischen Anfragen* finden Sie die Kontaktmöglichkeiten in der [composer.json](composer.json).
|
|
||||||
|
|
||||||
## Lizenz
|
## Lizenz
|
||||||
(Stand: 13.07.2022)
|
(Stand: 13.07.2022)
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ class RecipientTest extends ApiTestCase
|
|||||||
'invalid country code' => [$phoneNumberFixture, 'DEX', true, PhoneNumberType::MOBILE, InvalidArgumentException::class],
|
'invalid country code' => [$phoneNumberFixture, 'DEX', true, PhoneNumberType::MOBILE, InvalidArgumentException::class],
|
||||||
'unparsable' => ['abc', 'DE', true, PhoneNumberType::MOBILE, NumberParseException::class],
|
'unparsable' => ['abc', 'DE', true, PhoneNumberType::MOBILE, NumberParseException::class],
|
||||||
'invalid number' => ['abcd', 'DE', false, PhoneNumberType::MOBILE, RecipientException::class],
|
'invalid number' => ['abcd', 'DE', false, PhoneNumberType::MOBILE, RecipientException::class],
|
||||||
'not mobile number' => ['abcd', 'DE', true, PhoneNumberType::FIXED_LINE, RecipientException::class]
|
'not mobile number' => ['abcd', 'DE', false, PhoneNumberType::FIXED_LINE, RecipientException::class]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "d3/linkmobility-php-client",
|
"name": "d3/linkmobility-php-client",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"description": "PHP client for LINK Mobility API",
|
"description": "PHP client for LINK Mobility Austria API",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"LINK Mobility",
|
"LINK Mobility",
|
||||||
"php",
|
"php",
|
||||||
|
@ -20,14 +20,10 @@ use Psr\Log\NullLogger;
|
|||||||
|
|
||||||
class LoggerHandler
|
class LoggerHandler
|
||||||
{
|
{
|
||||||
/** @var LoggerHandler */
|
|
||||||
private static $instance = null;
|
private static $instance = null;
|
||||||
private $logger;
|
private $logger;
|
||||||
|
|
||||||
/**
|
public static function getInstance()
|
||||||
* @return LoggerHandler
|
|
||||||
*/
|
|
||||||
public static function getInstance(): LoggerHandler
|
|
||||||
{
|
{
|
||||||
if (self::$instance === null) {
|
if (self::$instance === null) {
|
||||||
self::$instance = new self();
|
self::$instance = new self();
|
||||||
|
@ -16,7 +16,6 @@ declare(strict_types=1);
|
|||||||
namespace D3\LinkmobilityClient\Request;
|
namespace D3\LinkmobilityClient\Request;
|
||||||
|
|
||||||
use D3\LinkmobilityClient\Client;
|
use D3\LinkmobilityClient\Client;
|
||||||
use D3\LinkmobilityClient\RecipientsList\RecipientsListInterface;
|
|
||||||
use D3\LinkmobilityClient\ValueObject\SmsMessageInterface;
|
use D3\LinkmobilityClient\ValueObject\SmsMessageInterface;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
|
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
|
||||||
@ -43,18 +42,9 @@ interface RequestInterface
|
|||||||
public const SENDERADDRESSTYPE_ALPHANUMERIC = 'alphanumeric';
|
public const SENDERADDRESSTYPE_ALPHANUMERIC = 'alphanumeric';
|
||||||
public const SENDERADDRESSTYPE_SHORTCODE = 'shortcode';
|
public const SENDERADDRESSTYPE_SHORTCODE = 'shortcode';
|
||||||
|
|
||||||
/**
|
|
||||||
* @param SmsMessageInterface $message
|
|
||||||
* @param Client $client
|
|
||||||
*/
|
|
||||||
public function __construct(SmsMessageInterface $message, Client $client);
|
public function __construct(SmsMessageInterface $message, Client $client);
|
||||||
|
|
||||||
/**
|
public function setMethod(string $method);
|
||||||
* @param string $method
|
|
||||||
*
|
|
||||||
* @return Request
|
|
||||||
*/
|
|
||||||
public function setMethod(string $method): Request;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Must return the HTTP verb for this request, i.e. GET, POST, PUT
|
* Must return the HTTP verb for this request, i.e. GET, POST, PUT
|
||||||
@ -63,18 +53,6 @@ interface RequestInterface
|
|||||||
*/
|
*/
|
||||||
public function getMethod(): string;
|
public function getMethod(): string;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param bool $test
|
|
||||||
*
|
|
||||||
* @return Request
|
|
||||||
*/
|
|
||||||
public function setTestMode(bool $test): Request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function getTestMode(): bool;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Must return the URI for the request with a leading slash, i.e. /messages.json
|
* Must return the URI for the request with a leading slash, i.e. /messages.json
|
||||||
*
|
*
|
||||||
@ -103,11 +81,6 @@ interface RequestInterface
|
|||||||
*/
|
*/
|
||||||
public function getResponseInstance(PsrResponseInterface $rawResponse): LMResponseInterface;
|
public function getResponseInstance(PsrResponseInterface $rawResponse): LMResponseInterface;
|
||||||
|
|
||||||
/**
|
|
||||||
* @return RecipientsListInterface
|
|
||||||
*/
|
|
||||||
public function getRecipientsList(): RecipientsListInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Must return the options for this request. If there are none, return [] (empty array)
|
* Must return the options for this request. If there are none, return [] (empty array)
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user