- Taschenbuch: 220 Seiten
- Verlag: Packt Publishing (30. Oktober 2008)
- Sprache: Englisch
- ISBN-10: 1847195520
- ISBN-13: 978-1847195524
- Größe und/oder Gewicht: 19 x 1,3 x 23,5 cm
- Durchschnittliche Kundenbewertung: Schreiben Sie die erste Bewertung
- Amazon Bestseller-Rang: Nr. 572.936 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
RESTful PHP Web Services (Englisch) Taschenbuch – 30. Oktober 2008
|Neu ab||Gebraucht ab|
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Über den Autor und weitere Mitwirkende
Samisa Abeysinghe is Director, Engineering at WSO2. Samisa pioneered the Apache Axis2/C effort and architected the core of the Apache Axis2/C Web services engine. He continues to be an active contributor in the Apache Axis2/C project. His involvement in open-source projects began in 2004 when he started working with the Apache Axis C/C++ project. Prior to his current role, Samisa played the project lead role for the WSO2 Web services Framework for PHP project, which provides comprehensive support for building both SOAP and REST services and clients.
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
Book has a lot of examples. Though the examples have a few problems
1. Very basic sample programs for RESTful server.
2. A lot of code is printed, but with very little explanation.
3. Code explanation does not offer more than what you would get by reading the code itself. No options or pitfalls are described.
4. Printed code formatting is awful. Statements wrap around, instead of line breaks and indentation. Random words are highlighted. Bold words have no connection to the concept being explained. For example, frequently (but not always) functions have plain "return;" highlighted.
All that makes the book hard to read.
Before buying the book, check websites for WSO2, Zend, Flickr and Yahoo. They have good documentation and tutorials.
The first chapter gives the reader a quick introduction to RESTful services and the most common PHP frameworks in use at the time of writing. I particularly enjoyed the section on the Zend framework due to the explanation of benefits over the other frameworks. The chapter also covers the very basics which include a detailed look at exactly what RESTful services means and what technologies are required to use and benefit from a RESTful architecture. The second chapter gives a quick run down of the various methods in use for consumption of data; these being Curl, several HTTP methods, processing data with XML, DOM, and SimpleXML. After those are covered there is a simple example of consuming services like Flickr using the previous methods. This transitions into many more examples of consuming real world services that any developer would find interesting and exciting for data mashups.
The real meat of the book starts in chapter four where we get into designing the resource utilization systems and then the resource clients in chapter five. Those topics basically go over the nuts and bolts of gathering data, manipulating it, updating it, as well as creating fresh data. We get more instruction and usage examples on the Zend framework in chapter seven where the author gives us information on the controllers, models, and view (MVC model). This would not be too useful without knowing how to debug the code that we're using so there is, thankfully, a chapter dedicated to debugging XML building and parsing errors. A couple of short appendixes cover the author's own WSO2 web service framework as well as REST Client Classes which should prove useful for writing your own reusable classes.
Overall this book covers the majority of topics that a new developer needs to understand in order to start developing and deploying RESTful code and web services in PHP. From frameworks to consumable service samples, and everything in between, RESTful PHP Web Services comes through in a concise and enjoyable style that will not disappoint. I highly recommend this book for developers that are new to this topic or experienced developers that need a quick refresher course.
To illustrate that, the author is relying on the cURL and SimpleXML libraries to setup the communication.
One chapter is also dedicated to the Zend library (Zend_Rest) allowing RESTful services integration with this framework.
Icing on the Cake, the author provides at the end of the book his own source code to consume REST services.
This code, very easy to understand, works with or without the cURL library and will allow you to do some practice and apply all the good advices provided all around the book.
A book that I would recommend to PHP beginners, but also those who are yet mastering it and want to setup their own services.