njt/good-reads
Composer 安装命令:
composer require njt/good-reads
包简介
PHP wrapper to communicate with Goodreads API.
README 文档
README
PHP wrapper to communicate with Goodreads API.
Requirements
- PHP >= 5.5.3
Installation
composer require njt/good-reads
Getting Started
Before using Goodreads API you must create a new application. Visit signup form for details.
Setup client:
$gr = new GoodReads('api_key');
Examples
Lookup books
You can lookup a book by ISBN, ID or Title:
$gr->bookByISBN("ISBN"); $gr->book("id");
Search for books:
$gr->searchBook("Search any think"); $gr->searchBookByName("Book Name"); $gr->searchBookByAuthorName('Author Name');
Authors
Look up an author by their Goodreads Author ID:
$author = $gr->authorByID("id");
Look up an author books by their Goodreads Author ID:
$books = $gr->authorBooks("id");
Get Author ID by Author Name:
$id = $gr->authorIDByName("Author Name");
Look up an author by name:
$author = $gr->authorByName("Author Name");
Author series:
$series = $gr->seriesByAuthor("id");
Reviews
Get review details:
$review = $gr->review('id');
Get User review details by Book:
$review = $gr->userReviewByBook('userID', 'bookID');
User
Get the user by id:
$user = $gr->userInfoByID('id');
Get the user by username:
$user = $gr->userInfoByUsername('username');
Groups
Get group details:
$group = $gr->group('id', 'sort');
The sort parameter is optional, and defaults to title.
One of comments_count, title, updated_at, views
Find group by Name:
$groups = $gr->findGroup('group Name');
List the groups a given user is a member of:
$groups = $gr->groupsOfUser('userID', 'sort');
The sort parameter is optional, and defaults to members.
One of my_activity, members, last_activity, title
List the group Members a given group id:
$members = $gr->groupMembers('id');
Contributions
You're welcome to submit patches and new features.
- Create a new branch for your feature of bugfix
- Add tests so it does not break any existing code
- Open a new pull request
- Check official API documentation
License
The MIT License (MIT)
Nijat Asadov, nijatasadov@gmail.com
njt/good-reads 适用场景与选型建议
njt/good-reads 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 213 次下载、GitHub Stars 达 10, 最近一次更新时间为 2016 年 10 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「GoodReads PHP」 「GoodReads API」 「GoodReads Library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 njt/good-reads 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 njt/good-reads 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 njt/good-reads 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
OAuth 1.0 Client Library for Goodreads
A PSR-7 compatible library for making CRUD API endpoints
Alfabank REST API integration
A PHP wrapper class to get data ebook from Google Book and GoodReads API.
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
统计信息
- 总下载量: 213
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-07