geoop/php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

geoop/php-sdk

Composer 安装命令:

composer require geoop/php-sdk

包简介

GeoOp SDK for APIv3 (internal only)

README 文档

README

Note: API is currently internal-only; SDK for public review only.

Installation

This library can be managed via composer.

composer.json

#!json

{
  "require": {
    "geoop/php-sdk": "0.*"
  }
}

Then install the package with composer.phar from the same directory as composer.json from your terminal

#!

$> composer.phar update geoop/php-sdk

In this Library

Geoop\Core\

ApiContext

This contains the connection information for the repositories.

ApiParser

The class that contains the necessary functions to convert data between JSON and models. This class also handles any differences between model/attribute naming between API and SDK.

CallHandler

Deprecated.

GeoOpConnection

Deprecated.

Geoop\Definitions\

This directory holds all enumerable values and some complex enumerable arrays, as well as most static nouns.

Geoop\Interfaces\

The interfaces for classes that are expected to be accessed directly by SDK consumers.

Geoop\Model\

The GeoOp models. While some models may not have their own endpoint, all classes within this directory are instantiable.

Geoop\ModelService\

Supplementary classes that aid the models with basic functionality and common properties. These are not instantiable.

Geoop\Repository\

Herein contains all the classes that aid communication with the API. Only models with an associated API endpoint will have a repository. Models without a repository generally must belong to a parent model, and cannot exist on their own. These models may be modified via their parent-class repository.

Usage

Retrieve a Company

#!php

$apiContext = new ApiContext(
    'https://api.geoop.com',
    'system',
    'v3.0',
    <companyId>,
    <apiToken>
);

$companyRepository = new CompanyRepository($apiContext);

$company = $companyRepository->fetch();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固