承接 stavarengo/twitter-php-api-client 相关项目开发

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

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

stavarengo/twitter-php-api-client

Composer 安装命令:

composer require stavarengo/twitter-php-api-client

包简介

PHP Client Library for https://developer.twitter.com API

README 文档

README

PHP Client Library for https://developer.twitter.com API

If you are interested in a PHP API for Twitter, that's your library :)

About It

  • Depends only on PSRs.
  • Optionally use cache to use less requests and speed up response.
  • You can use it with any application, either if it uses or not factories from PSR-11.
  • It should be very easy to use, since I tried to keep all the source code well documented.

Installation

Install via composer.

composer require stavarengo/twitter-php-api-client:^0.0

Basic Usage - More complete documentation yet to come

  • Use it directly (without a factory).

    $client = new \Sta\TwitterPhpApiClient\TwitterClient(null);
    
    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());
    
    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());
  • Use our default factory (PSR-11).

    $client = $container->get(\Sta\TwitterPhpApiClient\Client::class)
    
    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());
    
    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固