July 2026
Intermediate
478 pages
9h 8m
English
In this chapter, we present recipes that show you how to communicate effectively with external APIs and AI platforms. The ability to issue Representational State Transfer (REST) requests using both Streams and Client URL (cURL) (https://www.php.net/curl) gives you tremendous flexibility across different hosting environments. Designing middleware-based microservices forms the basis of a clean and maintainable architecture that scales gracefully as business requirements expand.
As GenAI integration becomes increasingly common, our token usage tracking recipe is essential for helping your organization and customers control costs and optimize performance. In the last recipe, we present a fundamental ...
Read now
Unlock full access