An API Design Example

In the midst of all this theory, let's design an application program interface (API) from the ground up to familiarize you with the conventions and concepts discussed earlier. Please note that this is a practical approach, not a theoretical approach. We've chosen to do it in a practical manner to let you memorize each step; in future projects, you'll have to design APIs on a mere theoretical basis, without having seen a line of code first. For hints, tips, and tricks about the theoretical approach, see Chapter 3, "Application Design: A Real-Life Example."

The module for which we'll be creating an API is meant to handle a simple scheduler. The actual implementation of the scheduler functions isn't of any importance; ...

Get Web Application Development with PHP 4.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.