Skip to Content
Building Web Apps with WordPress
book

Building Web Apps with WordPress

by Brian Messenlehner, Jason Coleman
April 2014
Intermediate to advanced
462 pages
10h 48m
English
O'Reilly Media, Inc.
Content preview from Building Web Apps with WordPress

Chapter 12. PHP Libraries, External APIs, and Web Services

Most programming languages, including PHP, have modularized collections of code, classes, and functions. These collections are usually referred to as a code library or extension. Don’t recreate the wheel. There are PHP libraries that exist to perform very specific functionality that can be easily used to extend the applications you are building.

Most of WordPress is written in PHP, which means as a WordPress developer, you can utilize any PHP libraries available to you or even build your own! Check out the PHP.net Function Reference for an organized list of some PHP libraries.

An application programmable interface, or API, can be part of an application in which you have access to the source code, like the various WordPress APIs covered in this book. But an API can also enable you to use an application or service in which you don’t have direct access to the source code. Many web-based applications and services offer some kind of API for accessing or manipulating their data from your application.

The WordPress plugin repository has more than a few plugins that interact with various web services, so any time you are looking for custom WordPress functionality, you might want to start at the WordPress plugin repository. Of course, if you don’t find exactly what you are looking for in a plugin, you may need to write your own custom plugin or piggyback off of an existing one.

We mentioned GitHub more than a few times, but it is a great ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Wordpress Web Application Development - Third Edition

Wordpress Web Application Development - Third Edition

Rakhitha Nimesh Ratnayake

Publisher Resources

ISBN: 9781449364779Errata