chrisreedio/laravel-athena-sdk
Composer 安装命令:
composer require chrisreedio/laravel-athena-sdk
包简介
Provides an interface to Athena EHR's API
README 文档
README
laravel-athena-sdk is a Laravel-first wrapper around Athenahealth's API. It provides a configured connector, resource-style entry points for common API domains, and DTOs for mapping Athena responses into typed PHP objects.
The package is best suited for applications that want a package-native integration layer instead of building raw Saloon requests and response mapping from scratch.
Installation
composer require chrisreedio/laravel-athena-sdk
Publish the package config:
php artisan vendor:publish --tag="laravel-athena-sdk-config"
Set the required Athena credentials in your environment:
ATHENA_BASE_URL=https://api.preview.platform.athenahealth.com ATHENA_CLIENT_ID=your-client-id ATHENA_CLIENT_SECRET=your-client-secret ATHENA_PRACTICE_ID=your-practice-id ATHENA_LEAVE_UNPROCESSED=false
Configuration
The package currently publishes a config file only. There are no package views or package migrations to publish.
The connector also ships with built-in Athena rate limiting using Saloon's rate-limit plugin. All requests are capped per connector instance to 15 requests per second outside production and 150 requests per second in production. Rate-limit violations fail fast (a RateLimitReachedException will be thrown rather than auto-sleeping and retrying).
The connector authenticates with Athena using the client credentials grant flow and caches the access token under the athena_access_token cache key.
Usage
Instantiate the connector directly:
use ChrisReedIO\AthenaSDK\AthenaConnector; $athena = new AthenaConnector(); $appointment = $athena->appointments()->get( appointmentId: 123456, );
Or use the facade:
use ChrisReedIO\AthenaSDK\Facades\Athena; $providers = Athena::providers();
The top-level resources currently exposed by the connector are:
appointments()departments()patients()providers()referringProviders()practice()encounters()
Public API
The supported Laravel-facing wrapper surface is documented in docs/public-api.md.
That document covers:
- the connector and facade entry points
- the resource methods exposed through
AthenaConnector - the nested resource helpers exposed from those top-level resources
Raw request classes under src/Requests are still available for lower-level use, but they are not the primary API documented in this package.
Local Checks
composer test
composer analyse
composer format:test
Additional Notes
docs/endpoints.mdtracks endpoint coverage work still to be validated.composer analyseruns cleanly and is enforced in CI alongside tests and formatting checks.
Changelog
See CHANGELOG.md for release history.
Contributing
See CONTRIBUTING.md for local setup and pull request expectations.
Security
See SECURITY.md for how to report vulnerabilities.
License
Released under the MIT license.
chrisreedio/laravel-athena-sdk 适用场景与选型建议
chrisreedio/laravel-athena-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 226 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 01 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Chris Reed」 「laravel-athena-sdk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chrisreedio/laravel-athena-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chrisreedio/laravel-athena-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chrisreedio/laravel-athena-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel package that provides a simple facade to the USPS Addresses API
Combine the power of Laravel Pulse with Spatie's Health Checks
Alfabank REST API integration
Oracle HCM Laravel SDK
Provides user level tenant tokens / scoped search keys.
Provides SDK for Health Note API
统计信息
- 总下载量: 226
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-06