GithubHelp home page GithubHelp logo

fuelphp-solarium's Introduction

Description

This Fuel PHP package adds Solarium to your application.

To Install

  1. In the root of your fuel application, run

     git submodule add git://github.com/bgrimes/fuelphp-solarium.git fuel/packages/solarium
    
  2. Open composer.json from the root of your fuel application and add this line to the require section:

     "solarium/solarium": "[desired-version-id]"
    

    Where [desired-version-id] is whichever version you want to install from Packagist. As an example, the current latest stable version as of this writing (October 10, 2013), would be 3.2.0-RC1.

  3. In the root of your fuel application, run

     php composer.phar update
    

To Use

This wrapper loads the Solarium library into your project so that you can either autoload the package in your config file

	 'packages'  => array(
		'parser',
		'solarium',
	 ),
...
	'config'  => array(
		'solarium',
	),

or load it on the fly

// Load the config from packages/solarium/config/solarium.php
\Config::load('solarium', true); 
\Package::load('solarium');

The config file is currently used to store connection information, but you can of course tweak it to suit your needs for dealing with Solarium.

After the package is loaded you can use it as defined on the Solarium website, for example:

$config = \Config::get('solarium');

// Create a client instance
$client = new \Solarium\Client($config);

...

fuelphp-solarium's People

Contributors

acusti avatar bgrimes avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.