Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
/ bestchange-api Public archive

A simple package for working with the pseudo API of the bestchage.ru

License

Notifications You must be signed in to change notification settings

korkoshko/bestchange-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestChange API

A simple package for working with the pseudo API of the bestchage.ru

Features

  • Save memory by using generators

Requirements

Installation

composer require korkoshko/bestchange-api

Usage

Initial

$bestChange = new BestChange();
$bestChange->setArchivePath(__DIR__); // If param is not set, a tmp directory is used 

$bestChange->download(); // Downloading archive with data

Get base info of API

foreach($bestChange->getInfo() as $info) { // The generator returns (https://www.php.net/manual/ru/language.generators.php)
    var_dump($info);
}

// Or using sugar method

var_dump(
    $bestChange->getArray(InfoMethod::class);
);

Get exchangers

foreach ($bestChange->getExchangers() as $exchanger) {
    var_dump($exchanger);
}

License

MIT

About

A simple package for working with the pseudo API of the bestchage.ru

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages