PHP Web Services: APIs for the Modern Web, 2/e (Paperback)

Lorna Jane Mitchell

買這商品的人也買了...

商品描述

Whether you’re sharing data between two internal systems or building an API so that users can access their data, this practical guide has everything you need to build APIs with PHP. Author Lorna Jane Mitchell provides lots of hands-on code samples, real-world examples, and advice based on her extensive experience to guide you through the process—from the underlying theory to methods for making your service robust.

You’ll learn how to use this language to work with JSON, XML, and other web service technologies. This updated second edition includes new tools and features that reflect PHP updates and changes on the Web.

  • Explore HTTP, from the request/response cycle to its verbs, headers, and cookies
  • Work with and publish webhooks—user-defined HTTP callbacks
  • Determine whether JSON or XML is the best data format for your application
  • Get advice for working with RPC, SOAP, and RESTful services
  • Use several tools and techniques for debugging HTTP web services
  • Choose the service that works best for your application, and learn how to make it robust
  • Document your API—and learn how to design it to handle errors

商品描述(中文翻譯)

無論您是在兩個內部系統之間共享數據,還是構建一個API以便用戶訪問其數據,這本實用指南都提供了您在使用PHP構建API時所需的一切。作者Lorna Jane Mitchell提供了大量的實際代碼示例、現實世界的例子和基於她豐富經驗的建議,引導您完成從基礎理論到使您的服務強大的方法。

您將學習如何使用這種語言與JSON、XML和其他Web服務技術一起工作。這本更新的第二版包括反映PHP更新和Web變化的新工具和功能。

- 探索HTTP,從請求/響應循環到其動詞、標頭和Cookie
- 使用並發布Webhooks-用戶定義的HTTP回調
- 確定JSON或XML是否是您的應用程序的最佳數據格式
- 獲取使用RPC、SOAP和RESTful服務的建議
- 使用多種工具和技術調試HTTP Web服務
- 選擇最適合您的應用程序的服務,並學習如何使其強大
- 為您的API編寫文檔-並學習如何設計以處理錯誤。