The Stainless PHP SDK generator is now generally available
Blog post from Stainless
PHP continues to be a crucial component of the internet, powering a significant number of websites and frameworks like Laravel and Wordpress. Recognizing the importance of PHP developers, the announcement of the PHP SDK generator's general availability aims to support API adoption by offering tools that align with PHP conventions while allowing for complex use cases. The generator emphasizes consistency with existing language practices, utilizing value objects as foundational elements, which facilitate ease of use and integration. These value objects simplify interactions by supporting both PHP arrays and structured data, making them adaptable for various use cases, such as paginated endpoints and custom request options. The design prioritizes seamless integration into existing PHP practices, ensuring minimal disruption while enhancing functionality. Real-world usage by companies like Anthropic, Browserbase, and Courier underscores the SDK's effectiveness, providing robust typing without sacrificing flexibility. The generator's design achieves a balance of modern typing and predictable behavior, positioning it as a valuable tool for developers looking to build scalable and efficient PHP applications.