Open Sourced Development

While working on projects, we frequently encounter challenges that require a software solution. Whenever possible, we open-source our solutions.

PHP Google Spreadsheet Connector

While developing a website, we encountered a challenge. We wanted to take information from a web-based form and submit it directly to Google Analytics. However, the webhost’s server configuration limited our ability to fully utilize Google’s standard PHP client libraries to connect with the spreadsheet API.

We also wanted a solution that was quickly reusable to scale to other applications.

So, we wrote the a Google Spreadsheet PHP-based form connector. It uses CURL as its primary interfacing point, and can be easily and quickly re-modified to fit other systems. A form submit posts through a PHP file into the Google spreadsheet of your choosing.

By using Google’s new Pivot Table options, it’s simple to create charts and tables that automatically update with each new submission (be sure to use A:A formatting for your ranges).

Credit: Mircea Rabaea, Public Learning Media
File: PLML-PHP-Google-Spreadsheet-Connector.zip
License: Open Source (MIT)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>