alibabacloud/tea
Tea is the core PHP runtime underpinning Alibaba Cloud SDKs, providing request/response abstractions, HTTP transport, retries, and error handling. Use it as a dependency when building or customizing Alibaba Cloud API clients rather than for standalone features.
alibabacloud/tea), or build a thin in-house HTTP client against the raw REST APIs? That trade-off is worth ~2–4 weeks of engineering either way.Tea\* types leak into your code).Adopt it (almost always transitively) when:
alibabacloud/* SDKs — a direct composer require is usually wrong.Tea\Request / Tea\Response / TeaCore primitives to customize SDK behavior — retries, signing, custom endpoints, proxies.Look elsewhere, or handle with care, when:
NOASSERTION. Upstream is Apache-2.0, but that needs written confirmation from legal before anything customer-facing ships.Tea\* types behind your own interfaces rather than letting them into domain code.Executives: "This is plumbing, not a product. It's the runtime underneath Alibaba Cloud's official PHP SDKs, and it only matters if we commit to Alibaba Cloud for China-market storage, SMS, or AI. On its own it delivers zero user-facing value — it's optionality for expansion. Cost to adopt is low, but two flags need a look before we ship anything customer-facing: the registry reports an unresolved license, and the last release is over a year old."
Engineering: "Treat it as an implementation detail behind an adapter. Don't require it directly — let the service SDKs pull it in, and pin it in composer.lock. Wrap it in our own Storage and Sms interfaces so Tea\* types never escape the infrastructure layer. Add a CI smoke test on the PHP version we actually run. And if OSS is all we need, use the S3-compatible Flysystem adapter and skip this stack entirely."
The one-line version: low cost, low direct value, meaningful optionality for China expansion — gate it on a license review and a PHP-version compatibility check, and isolate it so a future swap is a one-file change.
How can I help you explore Laravel packages today?