brizhanev/guber-parser

获取俄罗斯联邦各主体的州长列表

v1.0.0 2018-05-12 20:24 UTC

This package is not auto-updated.

Last update: 2024-09-27 23:44:05 UTC


README

该库允许获取俄罗斯联邦各主体的州长列表

Minimum PHP Version

安装

composer require brizhanev/guber-parser

基本使用

<?php

require 'vendor/autoload.php';

use GuberParser\GuberParser;

$guberParser = new GuberParser();

$guberParser->run();

$guberParser->getRecords();

使用存储类(必须实现 StorageInterface 接口)保存结果的示例

<?php

require 'vendor/autoload.php';

use GuberParser\GuberParser;
use GuberParser\JSON;

$guberParser = new GuberParser();

$jsonStorage = new JSON("test.json");

$guberParser->setStorage($jsonStorage);

$guberParser->run();