Book description
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
Publisher resources
Table of contents
- Preface
- 1. HTTP
- 2. HTTP Verbs
- 3. Headers
- 4. Cookies
- 5. JSON
- 6. XML
- 7. RPC and SOAP Services
- 8. REST
- 9. Webhooks
- 10. HTTP Tools
- 11. Maintainable Web Services
- 12. Making Service Design Decisions
- 13. Building a Robust Service
- 14. Publishing Your API
- A. A Guide to Common Status Codes
- B. Common HTTP Headers
- Index
Product information
- Title: PHP Web Services, 2nd Edition
- Author(s):
- Release date: January 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491933046
You might also like
book
PHP Web Services
Whether you’re sharing data between two internal systems or building an API so users can access …
video
PHP Web Services
Learn how to build web services with PHP and exchange data across applications. In this video …
book
PHP 7: Real World Application Development
Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like …
book
PHP 7 Solutions: Dynamic Web Design Made Easy
Make your websites more dynamic by adding a feedback form, creating a private area where members …