massrimcp/acme-sdk
最新稳定版本:v1.0.0
Composer 安装命令:
composer require massrimcp/acme-sdk
包简介
Math operations SDK
README 文档
README
A lightweight PHP SDK that demonstrates clean library design with typed APIs, static analysis, testing, and CI quality gates.
Requirements
- PHP 7.3+ (including 8.x)
- Composer
Installation
composer require acme/acme-sdk
Usage
<?php declare(strict_types=1); use Acme\Sdk\MathClient; $client = new MathClient(); $math = $client->math(); $sum = $math->add(2.0, 3.0); $difference = $math->subtract(8.0, 2.0); $product = $math->multiply(3.0, 4.0); $quotient = $math->divide(10.0, 2.0); echo $sum->getResult(); // 5 echo json_encode($sum, JSON_PRETTY_PRINT); /* { "result": 5, "operation": "addition", "operands": [2, 3] } */
Development
Run tests:
composer test
Run test coverage:
composer test:coverage
Run static analysis:
composer analyze
Run style checks:
composer lint
Fix style automatically:
composer lint:fix
Run backward compatibility check (Docker required):
composer bc-check
Run full local quality gate:
composer check
License
This project is licensed under Apache License 2.0. See LICENSE.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-05-14