Skip to content
Pavel Kuzmin edited this page Aug 4, 2022 · 16 revisions

Onlinesim PHP API

Wrapper for automatic reception of SMS-messages by onlinesim.ru

Where apikey?

You need to create an account HERE and go to profile to get APIKEY

Installation

Require this package in your composer.json or install it by running:

composer require s00d/onlinesim-api

Basic Usage

use s00d\OnlineSimApi\OnlineSimApi;
...
$request = new OnlineSimApi('apikey', 'locale', 'dev_id');
$request->init();
$api - $request->{apiname}()->...

Params

Name Description
apikey your apikey from onlinesim.ru
locale locale ru or en
dev_id your dev_id, not require

API

GetUser API

GetNumbers API

GetRent API

GetProxy API

GetFree API