Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Latest commit

 

History

History
75 lines (48 loc) · 2.46 KB

installing.rst

File metadata and controls

75 lines (48 loc) · 2.46 KB

Installing the Library

Installing RollerworksSearch is trivial. By using Composer to install the dependencies you don't have to worry about compatibility or autoloading.

Composer is a dependency management library for PHP, which you can use to download the RollerworksSearch library, and at your choice any extensions.

Start by downloading Composer anywhere onto your local computer. And install RollerworksSearch with Composer by running the following:

$ php composer.phar require "rollerworks/search:^2.0"

From the directory where your composer.json file is located.

Now, Composer will automatically download all the required files, and install them for you. After this you can start integrating RollerworksSearch with your application.

Note

All code examples assume you are using the class auto-loader provided by Composer.

require 'vendor/autoload.php';

// ...

When using a Framework integration this is already the case, so don't worry about this step.

Caution!

RollerworksSearch v2.0 is not stable yet! Use with caution. However RollerworksSearch v1.0 is no longer maintained.

Extensions

The rollerworks/search core library itself does not provide any mechanise for searching in a storage engine (like Doctrine or Elasticsearch). Instead they are provided as separate extensions you can easily install.

Framework integration libraries (provided by Rollerworks) are designed to provide a clear-cut and ready to use solution. Whenever you install an addition extension, the integration automatically enables the support for it.

Note

Only extensions provided by Rollerworks are fully integrated, for extensions provided by third party developers you may need to enable these manually.

Framework integration

RollerworksSearch provides a fully featured integration for:

And support for Zend Framework and Laravel coming soon.

Further reading