Skip to content
Hexonet APIs For PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Hexonet APIs For PHP

Installing

$ composer require al-one/hexonet-api -vvv

or

$ composer require al-one/hexonet-api:dev-master -vvv

Usage

<?php

$username = 'user';
$password = 'pass';

$auth = new \Alone\Hexonet\Auth($username,$password);
$api = new \Alone\Hexonet\Connection($auth);

$ret = $api->call('command',[
    'parameter1' => 'value1',
    'parameter2' => 'value2',
]);

$hash1 = $ret->getHash();
$hash2 = $ret->getHashLower();

Documentation

You can’t perform that action at this time.