承接 ludicat/mycow-sdk 相关项目开发

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

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

ludicat/mycow-sdk

Composer 安装命令:

composer require ludicat/mycow-sdk

包简介

MyCow's REST API SDK

README 文档

README

This library allow you to manipulate MyCow's REST API.

1- Setup

Use composer

composer req ludicat/mycow-sdk

2- Usage

In your code, instantiate the Core Class

$baseUrl = 'https://www.mycow.eu';
$myToken = 'xxxxxxxxxxxxxx'; // Your token was provide by MyCow's team.
$adapter = new MyCow\SDK\Adapter\Curl(); // Depend on your system. If none provide, CURL will be used.
$sdk = new MyCow\SDK\Core($baseUrl, $myToken, $adapter);

Then call for the expected endpoint and use related methods :

$response = $sdk->getUser()->get($username);
if ($response->isError()) {
    throw new \Exception(sprintf('MyCow API ERROR %d: ', $response->getCode(), $response->getMessage()));
}

print_r($response->getBody());

Contribute

Create a .env.local file and set your GITHUB_TOKEN variable

# .env.local
GITHUB_TOKEN=MyToken

Build

make build

Start container (you will have to start from here on further usages)

make build

Connect to docker with ssh

make ssh

Then dump autoloader

composer dump-autoload

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固