SORACOM SDK for PHP
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
tests
.coveralls.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

SORACOM SDK for PHP

Build Status Coverage Status Latest Stable Version Latest Unstable Version License

Installation

Install via Composer.

$ composer require shimomo/soracom-sdk-php

Usage

Auth with your email and password.

<?php

$soracom = new \Soracom\Api();
$soracom->auth([
    'email'               => 'xxxxxxxxxx',
    'password'            => 'xxxxxxxxxx',
    'tokenTimeoutSeconds' => 24 * 60 * 60,
]);

Change the speed of the specified SIM.

<?php

$soracom->updateSpeedClass([
    'imsi'        => 'xxxxxxxxxx',
    'speed_class' => [
        'speedClass' => 's1.minimum',
    ],
]);

Activate the specified SIM.

<?php

$soracom->activateSubscriber([
    'imsi' => 'xxxxxxxxxx',
]);

Deactivate the specified SIM.

<?php

$soracom->deactivateSubscriber([
    'imsi' => 'xxxxxxxxxx',
]);

License

The SORACOM SDK for PHP is open-sourced software licensed under the MIT license.