Drupal/PHP Offline Documentation

As a developer I find myself needing to reference API documentation regularly. When the internet is available to me I find either php.net or sites such as dochub.io great places to look up documentation.

But, if I’m traveling abroad, or on an un-trusted network, I like to have a locally hosted copy of relevant APIs and documentation available to me.

In order to facilitate this need I stumbled across the DrupalAPI installation profile. From the profile page:

The DrupalAPI Installation profile sets up a DrupalAPI reference site, automatically indexing all files and setting up the site for instant use.

This is particularly useful for developers who work offline or in areas with spotty connectivity, but still want access to API docs.


Ensure your PHP memory_limit is set high enough, we've confimed that the following works:
memory_limit = 256M

Install as per a normal Drupal site, being sure to use the 'DrupalAPI' installation profile.

Updating API reference sources

Navigate to the 'DrupalAPI' profile directory from command line and run the following command:


Then once you’ve configured this local website on your personal webserver you have a local version essentially of api.drupal.org. Which is awesome!

For PHP documentation I currently love Chrome PHP-Docs-To-Go which is a free extension for Google Chrome. From its description page:

Quick Tricks
1. You can search using omnibox by typing "op" then hit tab in your browser bar.
2. Click on the logo and it will scroll to the top of the page.
3. Hovering over the top grey bar will auto-select the input field so you can quickly make searches.

### Reason for permissions needed.
The reason this app uses the two permissions is for using the omnibox feature, and the additional feature which checks if the app is already open when using the omnibox again.  This keeps it from opening multiple windows

1.  App has more than 12,000 doc files.
2.  Documentation includes user notes.
3.  You can search by partial or exact function names.
4.  Omnibox Support
5.  100% offline app
6.  Updated quarterly.
7.  Back Button Friendly

Of course, the BEST thing about this documentation tool — it doesn’t look like the ugly new php.net site :).

Looking for quality Drupal Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , | Posted under Drupal | RSS 2.0

Author Spotlight

David Gurba

I am a web programmer currently employed at UCSB. I have been developing web applications professionally for 8+ years now. For the last 5 years I’ve been actively developing websites primarily in PHP using Drupal. I have experience using LAMP and developing data driven websites for clients in aviation, higher education and e-commerce. If you’d like to contact me I can be reached at david.gurba@arvixe.com

Leave a Reply

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