bandwidth/catapult
最新稳定版本:v0.10.0
Composer 安装命令:
composer require bandwidth/catapult
包简介
Bandwidth's Catapult SDK for PHP
关键字:
README 文档
README
Deprecation Notice
This projected is deprecated. Please go to https://github.com/Bandwidth/php-sdk
SDK for Bandwidth's App Platform
Documentation
Installing:
to install, with composer
composer require bandwidth/catapult
OR after cloning:
composer update
Running from source
You can also use Bandwidth without composer, you only need to include "Catapult.php" from /source/
Example:
require "source/Catapult.php"
API keys
REMEMBER to configure your API keys. You can do this in 'one' of two ways:
-
Update credentials.json with your keys. If you use this method, use this constructor:
$cred = new Catapult\Credentials;Also, be sure to protect that file from external access
-
Specify your keys to the Catapult client. If you use this method, use this constructor
$cred = new Catapult\Credentials('your Bandwidth App Platform user-id here', 'your bandwidth app platform token here', 'your bandwidth api secret here');
unit tests.
In ./tests there are a list of tests to run any we need phpunit:
composer require phpunit
and to run a rest:
php phpunit.phar --bootstrap ../source/Catapult.php {test_name}
where test name can be any of the listed tests.
Requirements
- needed:
- php >= 5.3.0
- libCurl
optional:
- openSSL
bandwidth/catapult 适用场景与选型建议
bandwidth/catapult 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 128k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「sdk」 「bandwidth」 「catapult」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bandwidth/catapult 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bandwidth/catapult 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bandwidth/catapult 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Implementation of the Token Bucket algorithm. Forked by Mobly.
Speedtest.net for PHP | Library and command line interface
Bandwidth API library client for PHP
Alfabank REST API integration
Including the tests and other useless information like .travis.yml in distributed packages is not a good idea. "Compify" tries to remove everything, in order to save bandwidth and disk usage, but the necessary code for the package to work in your app or library.
Implementation of the Token Bucket algorithm.
统计信息
- 总下载量: 128k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 17
- 依赖项目数: 4
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04