RESTful PHP Web Services: Learn the Basic Architectural Concepts and Steps Through Examples of Consuming and Creating RESTful Web Services in PHP

  • 2h 22m
  • Samisa Abeysinghe
  • Packt Publishing
  • 2008

Representational State Transfer (REST) is a form of software architecture; systems that follow it are often called RESTful. It is the architectural style that drives the World Wide Web (the motivation for REST was to capture elements that made the Web successful), and RESTful web services use simple protocols already familiar to web developers. RESTful web services are found in lots of places with big name Web APIs such as Flickr, and Yahoo search following a REST-based approach.

With any architectural style or approach, struggling with its basic concepts is just one problem – implementation in your favorite language is another, and that's where this book comes in. If you're a PHP developer, this book will show you how to create and consume RESTful web services in PHP, and make your services work well in the context of the Web.

You will learn about the basic concepts of REST, and then look at PHP tools, libraries and techniques for working with RESTful web services. You will see how to use other RESTful services from your PHP applications, and also how to engineer your PHP applications to make them RESTful.

This book is about implementing RESTful web services in PHP, and so the book is packed with example code and careful explanations.

About the Author

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.

In this Book

  • Introduction to REST
  • REST with PHP—A First Look
  • REST in the Real World
  • Resource-Oriented Services
  • Resource-Oriented Clients
  • Resource-Oriented Clients and Services with Zend Framework
  • Debugging REST Web Services