Book Image

Building RESTful Web Services with PHP 7

By : Waheed ud din
Book Image

Building RESTful Web Services with PHP 7

By: Waheed ud din

Overview of this book

REST is the most wide spread and effective standard to develop APIs for internet services. With the way PHP and its eco-system has modernized the way code is written by simplifying various operations, it is useful to develop RESTful APIs with PHP 7 and modern tools. This book explains in detail how to create your own RESTful API in PHP 7 that can be consumed by other users in your organization. Starting with a brief introduction to the fundamentals of REST architecture and the new features in PHP 7, you will learn to implement basic RESTful API endpoints using vanilla PHP. The book explains how to identify flaws in security and design and teach you how to tackle them. You will learn about composer, Lumen framework and how to make your RESTful API cleaner, secure and efficient. The book emphasizes on automated tests, teaches about different testing types and give a brief introduction to microservices which is the natural way forward. After reading this book, you will have a clear understanding of the REST architecture and you can build a web service from scratch.
Table of Contents (16 chapters)
Title Page
About the Author
About the Reviewer
Customer Feedback


In this chapter, as the last chapter of this book, I tried to introduce microservices, an architecture style getting a lot of attention nowadays. We looked into it because we needed an architecture in which we can use RESTful web services to achieve better performance and scalability in complex and bigger systems.

The focus of the book was RESTful web services in PHP7, and we looked at other topics that were connected with building RESTful web services or PHP7 in someway. We looked at some of these topics in detail, whereas we just touched upon some others. Many of these topics are too broad to be contained in one chapter. Some of these topics can have a complete book dedicated to them. That's why, I provided different URLs towards learning material or suggested reading, which you can refer to if you are interested.

What's next

There are two important things:


Actual learning starts when you start practicing something. When you practice, you sometimes face problems and learn...