Book Image

Learning Phalcon PHP

Book Image

Learning Phalcon PHP

Overview of this book

Table of Contents (17 chapters)
Learning Phalcon PHP
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. The API Module

An Application Programming Interface (API) is the most common way of exposing services to third parties, and lately, most of the software out there is driven by APIs. Why? Because, by having an API for your application, not only is it easy to implement a fully functional HTML + JS frontend, but you can also use it if you develop a mobile application, for example. In this chapter, we will implement most of the functionalities needed for our project, covering topics such as these:

  • Using APIs—recommended practices

  • Enabling SSL on our local machine

  • Creating the module structure

  • Writing a fully functional REST module with Phalcon PHP

  • Securing an API

  • Documenting the API