Download the PHP package technosophos/solrapi without Composer

On this page you can find all versions of the php package technosophos/solrapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package solrapi

SolrAPI: A PHP library for working with Solr

This library provides a chainable (Fluent) API for building and executing Solr queries.

Installation

This library depends on the SolrPHPClient library, which handles Solr client-server communication.

With Packagist/Composer (recommended)

  1. Get Composer if you don't have it already.
  2. In your own composer.json, add technosophos/LibRIS in the "require" section.

When you run php composer.phar install or php composer.phar update in your package, the latest stable version of SolrAPI (along with its dependencies) will be added.

Note that you can use Composer to manage many, if not all, of your library dependencies.

Ye Olde-Fashioned Way

  1. Install the SolrPHPClient library.
  2. Download this libary
  3. Put this library somewhere where your PHP interpreter can see it
  4. Include it in your scripts (require 'solrapi.inc')

That's all there is to it.

For Drupal Users

UPDATE: The Drupal version is on branch 1.0.0. Drupal has drifted away from mainstream PHP, and may or may not work with the 2.x version of SolrAPI.

This library contains some additional features targeted toward the Drupal apachesolr module.

To use this under Drupal, you merely need to install and configure the apachesolr module, and then include this library. (I wrote a simple module to do the including.)

Using the library

Since SolrAPI uses a function, and functions cannot be autoloaded, if you want to use solarq() you will need to do this:

If you would rather have SPR-0 autoloading, and don't care about the solarq() function, you can put the SolrAPI source in your include path, turn on your autoloader, and use SolrAPI like this:

The query object can be chained just like a solrq() can.

The code is documented very well. Here's a simple example of how this library is used:

The above executes a simple query for the string 'Search me'. Far more sophisticated queries can be built, though:

Solr is an advanced search server built atop the equally advanced Lucene search engine. To get the most out of this library, you will probably want to become very familiar with the Solr documentation.

This module was coded against the Drupal coding standards. Documentation can be extracted with Doxygen.

License

This is released under the GPL for Drupal compatibility. You may also opt to use it in accordance with the MIT license.

Copyright (c) 2010-2012, Matt Butcher

Initially sponsored by ConsumerSearch.com, a New York Times company.


All versions of solrapi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
solr-php-client/solrphpclient Version >=0.0.20
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package technosophos/solrapi contains the following files

Loading the files please wait ....