reviewsup/go-charlie-php 问题修复 & 功能扩展

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

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

reviewsup/go-charlie-php

最新稳定版本:1.0.0

Composer 安装命令:

composer require reviewsup/go-charlie-php

包简介

GoCharlie API PHP Interface

README 文档

README

Installation

# Add to composer.json

  "repositories": [
    {
      "type": "vcs",
      "url": "git@bitbucket.org:reviewsup/go-charlie-php.git"
    }
  ]
# Then run
composer require reviewsup/go-charlie-php

reviewsup

Use

$goCharlie = new GoCharlie($apiUrl, $apiKey);
$result = $goCharlie->get('use_case', ['user_input' => '', ...])

Better Use

// In your code, extend our GoCharlie class with your own, define your endpoints, then use your class
// This is better for code hinting and testing on your end
namespace MyCode; 
class GoCharlie extends \GoCharliePHP\GoCharlie {
    public funtion some_endpoint($required_param, $optional_param = null)
    {
         return $this->get('some_endpoint', array_filter([
            'required_param' => $required_param,
            'optional_param'  => $ptional_param,
        ]));
        
    }   
}

...

use MyCode\GoCharlie;
$gc = new GoCharlie($apiUrl, $myKey);
$result = $gc->some_endpoint('[required param value]')

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-15