Go to file
2023-06-29 11:28:01 +02:00
.github/workflows add exceptions, fix auth, implement response, sanitize recipient and sender 2022-06-24 14:46:23 +02:00
src use assertion exception 2023-02-02 22:27:14 +01:00
Tests add middleware to retry request in some error cases 2023-01-19 09:35:02 +01:00
.gitignore add tests for client and url class 2022-07-10 21:52:37 +02:00
.php-cs-fixer.php adjust to current dependency packages and PHP >= 7.3 2022-07-20 11:33:56 +02:00
CHANGELOG.md adjust changelog 2023-06-29 11:28:01 +02:00
composer.json bump psr/http-message to version 2 2023-06-29 11:24:06 +02:00
LICENSE.md adjust documentation 2022-07-13 10:58:57 +02:00
phpstan.neon improve code 2022-07-21 14:07:10 +02:00
phpunit.xml adjust to current dependency packages and PHP >= 7.3 2022-07-20 11:33:56 +02:00
README.en.md adjust changelog 2023-01-20 08:51:02 +01:00
README.md adjust changelog 2023-01-20 08:51:02 +01:00

deutsche Version english version

LINK Mobility PHP API Client

LINK Mobility provides a service for sending mobile messages (SMS, Whatsapp, RCS, Chatbot, ...).

The API client enables the simple integration of the LINK Mobility service into PHP-based projects. Requests to send messages can be sent, the status and the response are evaluated.

Features

The interface currently supports the sending of SMS (text and binary) based on the Message API in version 1.0.0. The API is prepared for the integration of other message formats.

Getting Started

composer require d3/linkmobility-php-client
$client = new \D3\LinkmobilityClient\Client('personal accesstoken');
\D3\LinkmobilityClient\LoggerHandler::getInstance()->setLogger($logger);  // optional
$request = new D3\LinkmobilityClient\SMS\RequestFactory($message, $client)->getSmsRequest())
    ->addRecipient(new D3\LinkmobilityClient\ValueObject\Recipient('recipient number', 'DE'));
$response = $client->request($request)

Changelog

See CHANGELOG for further informations.

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

Support

If you have any questions about the messaging service and its contracts, please contact the LINK Mobility Team.

For technical inquiries you will find the contact options in the composer.json.

License

(status: 2022-07-13)

Distributed under the GPLv3 license.

Copyright (c) D3 Data Development (Inh. Thomas Dartsch)

This software is distributed under the GNU GENERAL PUBLIC LICENSE version 3.

For full copyright and licensing information, please see the LICENSE file distributed with this source code.