jadessoriano/mobivate-sdk-php

Mobivate SDK for PHP

1.0.1 2025-04-18 04:33 UTC

This package is auto-updated.

Last update: 2025-04-19 08:35:20 UTC


README

Mobivate SDK PHP

Mobivate SDK for PHP (WIP)

Latest Version on Packagist Tests Total Downloads

Mobivate SDK for PHP.

⚠️ This project is a work in progress. May contain breaking changes or incomplete features. Use at your own risk. Contributions are welcome!

Installation

You can install the package via composer:

composer require jadessoriano/mobivate-sdk-php

Single Send Message

use Jadessoriano\Mobivate\Client\Credentials\Basic;
use Jadessoriano\Mobivate\Client\Sms\SendSingle;
use Jadessoriano\Mobivate\MobivateClient;
use Jadessoriano\Mobivate\Requests\Sms\Message;

$client = new MobivateClient(
    new Basic('api_live_abcd1234efgh5678ijkl9012mnop3456')
);

$response = (new SendSingle($client))
    ->execute(
        new Message(
            originator: 'Test',
            recipient: '44700011122',
            body: 'This is a test message',
        )
    )

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.