承接 yr4ik/meest-express-api-v3 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yr4ik/meest-express-api-v3

最新稳定版本:1.1

Composer 安装命令:

composer require yr4ik/meest-express-api-v3

包简介

PHP class for Meest Express API v3

README 文档

README

Composer

composer require yr4ik/meest-express-api-v3

MeestExpress methods

  • __construct($login, $pasword, $throwErrors = true, $connectionType = 'curl');
  • setLogin(string $login);
  • getLogin();
  • setPassword(string $password);
  • getPassword();
  • setCookieStorageVar(string $var);
  • getCookieStorageVar();
  • setConnectionType(string curl | file_get_contents);
  • getConnectionType();
  • setFormat(string json | array | xml);
  • getFormat();
  • setToken(string $token, int $expire=0, string $refresh='')
  • getToken();
  • authorize();
  • request(string $method, array $data, string $format=null)

Search methods

  • country(Filter); Filter prams:

    • id OR countryIDOR
    • name OR countryDescr
  • region(Filter); Filter prams:

    • id OR regionIDOR
    • name OR regionDescrOR
    • katuu OR regionKATUUOR
    • country_id OR countryIDOR
    • country OR countryDescr
  • district(Filter); Filter prams:

    • id OR districtIDOR
    • name OR districtDescrOR
    • katuu OR districtKATUUOR
    • region_id OR regionIDOR
    • country OR regionDescr
  • city(Filter); Filter prams:

    • id OR cityIDOR
    • name OR cityDescrOR
    • country_id OR countryIDOR
    • district_id OR districtIDOR
    • district OR districtDescrOR
    • region_id OR regionIDOR
    • region OR regionDescrOR
    • region_katuu OR regionKATUU
  • cityByZip(int $zip_code);

  • address(Filter); Filter prams:

    • city_id OR cityIDOR
    • address OR addressDescr
  • branchTypes();

  • branch(Filter); Filter prams:

    • num OR branchNoOR
    • type_id OR branchTypeIDOR
    • name OR branchDescrOR
    • city_id OR cityIDOR
    • city OR cityDescrOR
    • district_id OR districtIDOR
    • district OR districtDescrOR
    • region_id OR regionIDOR
    • region OR regionDescr
  • payTerminal(float $latitude, float $longitude);

Search result methods

  • getResponse();
  • getResponseSource();
  • getStatus();
  • getInfo();
  • getResult();

Examples

use MeestExpress\MeestExpress;
use MeestExpress\Filter;

$login = 'login';
$pass = 'pass';

$meest_express = new MeestExpress($login, $pass);

// Get Search api 
$meest_search = $meest_express->setFormat('array')->search();

// search country
$filter = new Filter();
$filter->name = 'UKRAI%';
var_dump($meest_search->country($filter)->getResult());

//  search region
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine

var_dump($meest_search->region($filter)->getResult());

//search city
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine
$filter->region_id = 'd15e3031-60b0-11de-be1e-0030485903e8';

var_dump($meest_search->city($filter)->getResult());

//search address
$filter = new Filter();
$filter->name = 'Черн%';
$filter->country_id = 'c35b6195-4ea3-11de-8591-001d600938f8'; // Ukraine
$filter->region_id = 'd15e3031-60b0-11de-be1e-0030485903e8';

var_dump($meest_search->city($filter)->getResult());

统计信息

  • 总下载量: 175
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固