nekofar / nobitex
PHP wrapper for the Nobitex API
Fund package maintenance!
nekofar
unstoppabledomains.com/d/nekofar.crypto
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- netresearch/jsonmapper: ^4.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.14
- php-http/httplug: ^2.0
- php-http/message: ^1.12
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^2.0
- jchook/phpunit-assert-throws: ^1.0
- nekofar/dev-tools: ^1.1
- pestphp/pest: ^1.18
- php-http/curl-client: ^2.0
- php-http/mock-client: ^1.0
- phpstan/phpstan-phpunit: ^0.12.22
- phpstan/phpstan-strict-rules: ^0.12.11
- dev-master / 2.0.x-dev
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- 1.0.2
- 1.0.0
- v1.0.0-beta
- v1.0.0-alpha.4
- v1.0.0-alpha.3
- v1.0.0-alpha.2
- v1.0.0-alpha.1
- v1.0.0-alpha
- dev-dependabot/github_actions/develop/actions/cache-3.3.0
- dev-dependabot/github_actions/develop/actions/checkout-3.3.0
- dev-dependabot/github_actions/develop/codecov/codecov-action-3.1.1
- dev-dependabot/github_actions/develop/shivammathur/setup-php-2.20.1
- dev-develop
- dev-feature/migrate-tests-to-pest
- dev-feature/migrate-object-mapping
- dev-feature/migrate-from-args-array
This package is auto-updated.
Last update: 2023-04-09 17:16:38 UTC
README
This is a PHP wrapper for the Nobitex API.
Installation
This wrapper relies on HTTPlug, which defines how HTTP message should be sent and received. You can use any library to send HTTP messages that implements php-http/client-implementation.
composer require nekofar/nobitex:^2.0
To install with cURL you may run the following command:
composer require nekofar/nobitex:^2.0 php-http/curl-client:^2.0
Usage
Use your username and password to access your own account.
use \Nekofar\Nobitex\Client; use \Nekofar\Nobitex\Config; $config = Config::doAuth('username', 'password') $client = Client::create($config) try { $profile = $client->getUserProfile(); echo 'Email: ' . $profile->email . PHP_EOL; echo 'Last name: ' . $profile->lastName . PHP_EOL; echo 'First name: ' . $profile->firstName . PHP_EOL; } catche (\Exception $e) { echo 'Error: ' . $e->getMessage(); }
Contributing
The test suite is built using PHPUnit. Run the suite of unit tests by running
the phpunit
command or this composer script.
composer test
License
The MIT License (MIT). Please see License File for more information.