PHP code example of dapikk / osrs-toolkit-php
1. Go to this page and download the library: Download dapikk/osrs-toolkit-php library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dapikk / osrs-toolkit-php example snippets
e_once __DIR__ . '/config/openSRS_config.php';
e_once __DIR__ . '/config/openSRS_config.php';
try {
$request = new Request();
$response = $request->process('array', $data);
var_dump($response->resultRaw);
} catch (\OpenSRS\Exception $e) {
echo 'OpenSRS API error: ' . $e->getMessage();
}
e_once __DIR__ . '/config/openSRS_config.php';
$data = [
'func' => 'lookupLookupDomain',
'data' => [
'domain' => 'example.com',
],
];
try {
$request = new Request();
$response = $request->process('array', $data);
var_dump($response->resultRaw);
} catch (\OpenSRS\Exception $e) {
echo 'OpenSRS API error: ' . $e->getMessage();
}
= [
'func' => 'lookupLookupDomain',
'data' => [
'domain' => 'example.com',
],
];
$osrsHandler = processOpenSRS('array', $data);
var_dump($osrsHandler);
bash
php -v
bash
composer text
vendor/autoload.php
text
opensrs/osrs-toolkit-php
text
config/openSRS_config.php
md
[](https://github.com/DaPikk/osrs-toolkit-php/actions/workflows/tests.yml)
bash
php -v
bash
php -m
bash
php --ini
text
https://github.com/OpenSRS/osrs-toolkit-php
text
opensrs/osrs-toolkit-php
text
https://github.com/DaPikk/osrs-toolkit-php/issues
text
https://github.com/DaPikk/osrs-toolkit-php/issues