Skip to content
Devin Smith edited this page Aug 1, 2014 · 19 revisions

Install Using Composer

Install Composer if you haven't already. Composer is a really easy to use PHP dependency & package management tool. I prefer to install globally so you can use the command composer from anywhere in your terminal.

On OSX

cd /usr/local/bin
curl -sS https://getcomposer.org/installer | php
mv composer.phar composer

Everyone else can Download Composer here, and Read how to install.

Add tipsy to your composer.json
"require": {
	"arzynik/tipsy": "dev-master"
}
Run the composer install command
composer install

This will automagicly install Tipsy and the autoload dependency if you need it.

Add composer's autoloader to your bootloader or main file
require_once __DIR__ . '/../vendor/autoload.php';
use Tipsy\Tipsy;

Manual Installation

Download and copy Tipsy.php to your library path.

Add the below line to your bootloader or main file.

require_once 'Tipsy.php';

PHP Short Tags

If you are using templates, I highly recommend enabling PHP short tags. It will save you lots of time when working with variables. For more information, see phtml.

To enable short tags, add the following line to your php.ini

short_open_tag = On

Or you can add it using an Apache .htaccess

php_value short_open_tag On