microsoft/kiota-serialization-text
PHP library for Kiota-generated projects that serializes and deserializes text/plain content types. Add it to your generated API client with Composer: microsoft/kiota-serialization-text.
text/plain serialization provider for Kiota-generated PHP clients. It only becomes relevant when we have committed to Kiota as our client-generation path for some external API — most plausibly Microsoft Graph, Azure, or another OpenAPI-described service where we generate typed request/response models rather than hand-rolling HTTP calls.microsoft/kiota-serialization-text is one of the runtime pieces we get. The PM decision isn't "adopt this library" — it's "standardize on Kiota-generated clients," and this package is a line item in that bundle.text/plain rather than JSON. If our roadmap includes consuming such endpoints (CSV exports, log/raw-text responses, legacy services fronted by a modern API layer), this is the piece that lets the generated client model those responses as typed objects instead of raw strings.text/plain in our integration surface at all? For the large majority of JSON-only integrations this package is dead weight. The real product decision it informs is whether to include the text serialization provider in our Kiota dependency set, or to run only JSON/multipart providers and reduce our dependency footprint.Consider it when all of the following hold:
text/plain response or request body — check the OpenAPI description, not the docs.kiota-php monorepo, meaning version bumps land in lockstep with siblings rather than on this library's own feature cadence.Look elsewhere (or simply omit it) when:
Http client and a normal text handling path.kiota-php monorepo — this repository is release-only. Assess maintenance health at the monorepo level, not here.For executives: This is a small, MIT-licensed Microsoft component that lets our PHP code talk to certain Microsoft-adjacent APIs that return plain text, using generated client code instead of hand-written calls. The value is not the component itself — it's that adopting it means we've chosen a standard, vendor-maintained way to generate typed API clients, which reduces bespoke integration code and long-term maintenance. It ships as part of a family of Kiota packages, so treat it as a bundled runtime dependency, not a standalone vendor relationship. Cost is negligible; risk is a PHP 8.2 minimum and lockstep versioning with the Kiota family.
For engineering: Treat it as an adapter, not a library. Add microsoft/kiota-serialization-text: ^2.0.2 only if a generated client actually declares a text/plain operation; otherwise keep it out of composer.json and pin the Kiota family versions together so the serialization abstractions don't drift. Route issues to microsoft/kiota-php, not this release-only repo. Keep it behind the Kiota client layer so it never leaks into application code, and it stays a one-line swap if we change generation strategies.
What we are explicitly not buying: a text-parsing toolkit, a replacement for Laravel's HTTP client, or a component with independent roadmap input — releases here are monorepo synchronization, so our leverage is in the upstream kiota-php project.
How can I help you explore Laravel packages today?