Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 866 Bytes

installation.md

File metadata and controls

38 lines (27 loc) · 866 Bytes

Installation

To install the Ivory Serializer bundle, you will need Composer. It's a PHP 5.3+ dependency manager which allows you to declare the dependent libraries your project needs and it will install & autoload them for you.

Set up Composer

Composer comes with a simple phar file. To easily access it from anywhere on your system, you can execute:

$ curl -s https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Download the bundle

Require the bundle in your composer.json file:

$ composer require ivory/serializer-bundle

Register the bundle

Then, add the bundle in your AppKernel:

// app/AppKernel.php

public function registerBundles()
{
    return [
        // ...
        new Ivory\SerializerBundle\IvorySerializerBundle(),
    ];
}