dafiti / solarium-service-provider
A Silex Service Provider for Solarium
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Package info
github.com/dafiti/solarium-service-provider
pkg:composer/dafiti/solarium-service-provider
0.0.2
2015-09-04 12:59 UTC
Requires
- php: >=5.4.0
- silex/silex: ~1.3.0
- solarium/solarium: ~3.4.1
Requires (Dev)
- fabpot/php-cs-fixer: @stable
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2021-06-11 23:14:05 UTC
README
A Silex Service Provider for Solarium.
Instalation
The package is available on Packagist. Autoloading is PSR-4 compatible.
{
"require": {
"dafiti/solarium-service-provider": "dev-master"
}
}
Usage
use Silex\Application; use Dafiti\Silex\SolariumServiceProvider; $app = new Application(); $app->register(new SolariumServiceProvider(), [ 'solarium.config' => [ 'endpoint' => [ 'localhost' => [ 'host' => 'localhost', 'port' => 8983, 'path' => '/solr', 'core' => 'solr_test', ], ], ], ]); $ping = $app['solarium']->createPing(); $result = $app['solarium']->ping($ping);
License
MIT License