vincentauger/sierra-php-sdk
Composer 安装命令:
composer require vincentauger/sierra-php-sdk
包简介
A modern PHP SDK for the Sierra ILS API platform
关键字:
README 文档
README
A modern PHP SDK for the Sierra ILS API (v6) platform, built for maintainability and clarity using Saloon for HTTP integration.
Current Status: Focused on querying (read-only) the Bibliographic API (Bib API). Designed for future expansion to other Sierra endpoints.
For detailed information on the Sierra API, visit the docs
Features
- ✅ PHP 8.4+ with modern syntax (typed properties, readonly, enums, attributes)
- ✅ Clean HTTP layer built on Saloon
- ✅ PSR-4 autoloading and testable structure
- ✅ Composer-native and framework-agnostic
Installation
composer require vincentauger/sierra-php-sdk
Usage
Initialize the client
use VincentAuger\SierraSdk\Sierra; $sierra = new Sierra( baseUrl: 'https://your.sierra.server/iii/sierra-api/v6', clientKey: 'your_client_key', clientSecret: 'your_client_secret', );
Fetch a bibliographic record
use VincentAuger\SierraSdk\Requests\Bib\GetBib; $request = new GetBib(123456); $response = $sierra->send($request); $record = $request->createDtoFromResponse($response); echo $record->title; // Access via typed DTO echo $record->author; echo $record->materialType?->getDisplayValue();
Search the bibliographic index
use VincentAuger\SierraSdk\Requests\Bib\GetSearchBib; $request = new GetSearchBib('climate change'); $response = $sierra->send($request); $results = $request->createDtoFromResponse($response); foreach ($results->entries as $entry) { echo $entry->bib->id . ': ' . $entry->bib->title . PHP_EOL; }
Advanced querying with QueryFactory
For detailed query examples and advanced usage, see the Query Factory documentation.
use VincentAuger\SierraSdk\Data\Query\QueryFactory; use VincentAuger\SierraSdk\Requests\Bib\PostQueryBib; // Search for titles starting with "climate" $query = QueryFactory::bib() ->field('t') // title field ->startsWith('climate'); $request = new PostQueryBib($query, limit: 25); $response = $sierra->send($request); $results = $request->createDtoFromResponse($response); foreach ($results->entries as $bibId) { // Get full record details $bibRequest = new GetBib($bibId); $bibResponse = $sierra->send($bibRequest); $bib = $bibRequest->createDtoFromResponse($bibResponse); echo $bib->title . PHP_EOL; }
Configuration
You must provide:
| Parameter | Description |
|---|---|
| baseUrl | Base URL of the Sierra API (ends with /v6) |
| clientKey | OAuth2 client key |
| clientSecret | OAuth2 client secret |
Structure
- Sierra – main entry point, wraps Saloon connector
- Requests – one Saloon Request per endpoint (e.g., GetBib, GetSearchBib, PostQueryBib)
- Data – Data DTOs for API responses (e.g., BibObject, BibResultSet, BibSearchResultSet)
- Tests – Pest tests
Roadmap
- Basic client and authentication
- Query the bib records
GET /v6/bibs/ - Search the bib records
GET /v6/bibs/search - Query the bib records with JSON
POST /v6/bibs/query - Fetch single bib record
GET /v6/bibs/{id}
Requirements
- PHP 8.4+
- Composer
- Saloon (installed automatically)
Contributing
Contributions are welcome! Please see our Contributing Guide for details on development setup, testing, and guidelines.
License
MIT License — see the LICENSE file for details.
Disclaimer
- This SDK is not affiliated with Innovative Interfaces Inc.
- Use at your own risk. Respect your ILS API usage limits and security requirements.
vincentauger/sierra-php-sdk 适用场景与选型建议
vincentauger/sierra-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 07 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「php」 「api」 「Bibliography」 「sierra」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vincentauger/sierra-php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vincentauger/sierra-php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vincentauger/sierra-php-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Simple ASCII output of array data
Alfabank REST API integration
Package for view storage in laravel
User Approval Laravel Package
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-18