Installation
Devin Smith edited this page Aug 1, 2014
·
19 revisions
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.
"require": {
"arzynik/tipsy": "dev-master"
}
composer install
This will automagicly install Tipsy and the autoload dependency if you need it.
require_once __DIR__ . '/../vendor/autoload.php';
use Tipsy\Tipsy;
Download and copy Tipsy.php to your library path.
Add the below line to your bootloader or main file.
require_once 'Tipsy.php';
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
- Home
- Getting Started
- Server Config
- Installation
- Installing Composer
- App
- Route Shorthand
- Config
- Routes
- Methods
- Controller Types
- Params & Regex
- Aliases
- Dependency Injection
- Advanced Routing
- Services
- User Defined Services
- Built in Services
- Middleware
- Views
- Templates
- Scope
- Resource
- Factory
- Looper
- Examples
- Plugins
- About