PHP Web Services
Whether you’re sharing data between two internal systems or building an API so users can access their data, this practical book provides everything you need to build web service APIs with PHP. Author Lorna Jane Mitchell uses 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.
PHP is ideally suited for both consuming and creating web services. You’ll learn how to use this language with JSON, XML, and other web service technologies.
Explore HTTP, from the request/response cycle to its verbs, headers, and cookies
Determine whether JSON or XML is the best data format for your application
Get practical advice for working with RPC, SOAP, and RESTful services
Use a variety of tools and techniques for debugging HTTP web services
Choose the service that works best for your application, and learn how to make it robust
Learn how to document your API—and how to design it to handle errors
Table of Contents
Chapter 1. HTTP
Chapter 2. HTTP Verbs
Chapter 3. Headers
Chapter 4. Cookies
Chapter 5. JSON
Chapter 6. XML
Chapter 7. RPC and SOAP Services
Chapter 8. REST
Chapter 9. Debugging Web Services
Chapter 10. Making Service Design Decisions
Chapter 11. Building a Robust Service
Chapter 12. Error Handling in APIs
Chapter 13. Documentation
Appendix A. A Guide to Common Status Codes
Appendix B. Common HTTP Headers
Book Details
Paperback: 118 pages
Publisher: O’Reilly Media (April 2013)
Language: English
ISBN-10: 1449356567
ISBN-13: 978-1449356569