Include CiviCRM functions from standalone PHP script

With CiviCRM being such a light, flexible and powerful alternative to use, and as an Open Source utility it makes it even better. Occasionally you will need to include functions, and extend the API.

There is a Wiki that is pretty well documented, but even i will admit it will take some getting into, but once you are going then you can do a lot, and i mean a LOT.

Granted that not everyone uses Drupal, or Joomla, and if you are using a

framework like Codeigniter, CakePHP, Symfony, Plone or even another CMS like Continue reading

Bootstrap and include Drupal from outside the Drupal root

Working on a site that needed to get some pretty detailed membership information as well as some payment processing the natural solution seemed like the Drupal based CiviCRM .  However, there was one problem and that was the CMS they had managing the rest of the site was actually in Worpdress, so i would need to bootstrap Drupal.

CiviCRM
Image via Wikipedia

Ideally if there was a CRM plugin with payment processing and some of the advanced features of CiviCRM then this would have been the natural choice. But seeing as none existed CiviCRM was the choice.

As a result we would also want to use some of the Drupal classes, methods, and functions so we needed to bootstrap Drupal outside of the Drupal root. Continue reading