--> -->

Application Programming Interface Development

A number of API development best practices have been created in order to facilitate the development of the most valuable and consumable APIs. It is a good idea to adopt some, if not all of those best practices, in order to create the best chance of API success in your organization:

Create Expectations:

When working with developers, it is critical to inform them of what is expected, when it should be delivered, and what pain points are to be solved by the API functionality.

Service Messaging:

With the goal of creating new products and services, or transforming existing products and services, it is paramount to make sure those services and the APIs that provide access to them align with business goals and lead to services that deliver value.


An Application Programming Interface, or API, defines the classes, methods, functions and variables that your application will need to call in order to carry out its desired task. In the case of PHP applications that need to communicate with databases the necessary APIs are usually exposed via PHP extensions. APIs can be procedural or object-oriented. With a procedural API you call functions to carry out tasks, with the object-oriented API you instantiate classes and then call methods on the resulting objects. Of the two the latter is usually the preferred interface, as it is more modern and leads to better organized code. When writing PHP applications that need to connect to the MySQL server there are several API options available. This document discusses what is available and how to select the best solution for your application.