Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exploring CiviCRM extension development using Civix


CiviCRM extensions are agnostic. This means that they will work regardless of what CMS you are using: Drupal, Joomla!, or WordPress. If you have ever explored the contents of your CiviCRM module directory, you'll see there are a bewildering number of directories and files. Many of these files work together. So, if you want to start developing your own CiviCRM extensions, you will need to know how the files work together.

How to do it…

Civix is a command-line tool that helps you develop CiviCRM extensions. In this recipe, we will use a MAMP local development environment available on Mac OS X and install Civix. Then, we will create our own CiviCRM extension and add a page. The recipe can be adapted to other environments.

  1. Start up your local environment and set up a CiviCRM development site using your CMS of choice. In this recipe, we will use MAMP.

  2. Check where PHP is running so that you can run PHP from the command line in your local development...