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
Lorna Jane Mitchell is an independent web development consultant, specializing in PHP and APIs in particular. With over 10 years of PHP development experience across a wide variety of industries, Lorna learned many lessons the hard way and always has a story to tell. Lorna is also an experienced trainer, offering training both to private clients around the world and teaching public courses. A prolific writer, Lorna writes for a number of publications, and frequently for her own blog http://lornajane.net.
The animal on the cover of PHP Web Services is an alpine accentor (Prunella collaris). This bird inhabits the mountain ranges of southern Europe, Asia, and Lebanon, favoring heights above 2,000 meters; it has actually been spotted near the top of Mount Everest at nearly 8,000 meters.
Alpine accentors are drab in color, with a gray head and breast, brown-streaked back, and reddish-brown spotted underparts. They are typically 15–17 centimeters long, weighing up to 35 grams. Sharp, pointed bills help them sustain their diet of ground-dwelling insects, spiders, earthworms, and plant seeds.
They are noted for their unconventional breeding systems: they mate in polygynandrous groups, usually consisting of up to four males and four females, which often produces mixed paternity within broods. Females build nests sheltered by bushes or rock crevices and lay approximately four sky-blue eggs. Males will sometimes help feed nestlings, if they have mated with the female and thereby assume paternity. Accentors may have two to three broods per year.
The cover image is from Wood's Animate Creation. The cover font is Adobe ITC Garamond. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed; and the code font is Dalton Maag's Ubuntu Mono.
Comments about oreilly PHP Web Services, 2nd Edition:
I actually needed it for a quick introduction to using SOAP, and found it very helpful. But there is also a lot more there which is of interest if you want to know about PHP web services. I found the book thorough, knowledgeable and well written.
It is written for people who are well versed in PHP.
Bottom Line Yes, I would recommend this to a friend