solarium / solarium
PHP Solr client
Installs: 24 264 914
Dependents: 116
Suggesters: 9
Security: 0
Stars: 931
Watchers: 54
Forks: 302
Open Issues: 8
Requires
- php: ^8.0
- composer-runtime-api: >=2.0
- ext-json: *
- halaxa/json-machine: ^1.1
- psr/event-dispatcher: ^1.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- symfony/event-dispatcher-contracts: ^2.0 || ^3.0
Requires (Dev)
- ext-curl: *
- ext-iconv: *
- escapestudios/symfony2-coding-standard: ^3.11
- nyholm/psr7: ^1.8
- php-http/guzzle7-adapter: ^1.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.6
- rawr/phpunit-data-provider: ^3.3
- roave/security-advisories: dev-master
- symfony/event-dispatcher: ^5.0 || ^6.0
- dev-master
- 6.x-dev
- 6.3.5
- 6.3.4
- 6.3.3
- 6.3.2
- 6.3.1
- 6.3.0
- 6.2.8
- 6.2.7
- 6.2.6
- 6.2.5
- 6.2.4
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 6.0.0-rc.1
- 6.0.0-beta.1
- 6.0.0-alpha.1
- 5.x-dev
- 5.2.0
- 5.1.6
- 5.1.5
- 5.1.4
- 5.1.3
- 5.1.2
- 5.1.1
- 5.1.0
- 5.1.0-rc.1
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-rc.1
- 5.0.0-beta.1
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- 4.x-dev
- 4.3.0-alpha.2
- 4.3.0-alpha1
- 4.2.0
- 4.2.0-rc.1
- 4.2.0-beta.1
- 4.1.0
- 4.1.0-rc.1
- 4.1.0-beta.1
- 4.1.0-alpha.1
- 4.0.0
- 4.0.0-rc.1
- 4.0.0-beta.1
- 4.0.0-alpha.2
- 4.0.0-alpha.1
- 3.x-dev
- v3.9.0-alpha
- 3.8.1
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.2.0-RC1
- 3.1.2
- 3.1.1
- 3.1.0
- 3.1.0-RC1
- 3.0.1
- 3.0.0
- 3.0.0-RC1
- 2.4.1
- 2.4.0
- 2.3.0
- dev-solr_9
- dev-analytics-component
This package is auto-updated.
Last update: 2024-10-09 09:47:05 UTC
README
What is Solarium?
Solarium is a PHP Solr client library that accurately models Solr concepts. Where many other Solr libraries only handle the communication with Solr, Solarium also relieves you of handling all the complex Solr query parameters using a well documented API.
Please see the docs for a more detailed description.
Requirements
Solarium 6.3.2 and up only supports PHP 8.0 and up.
It's highly recommended to have cURL enabled in your PHP environment. However if you don't have cURL available you can switch from using cURL (the default) to a pure PHP based HTTP client adapter which works for the essential stuff but doesn't support things like parallel query execution.
Alternatively you can inject any PSR-18 compatible HTTP Client using the Psr18Adapter
.
Getting started
The preferred way to install Solarium is by using Composer. Solarium is available on Packagist.
Example:
composer require solarium/solarium
Pitfalls when upgrading from earlier versions
When upgrading from an earlier version, you should be aware of a number of pitfalls.
- Pitfall when upgrading to 6.3.6
- Pitfall when upgrading to 6.3.2
- Pitfall when upgrading to 6.3
- Pitfalls when upgrading from 3.x or 4.x or 5.x
- Pitfall when upgrading from 3.x or 4.x
Run the examples
To run the examples read through the Example code section of the documentation.
Run the tests
The phpunit tests contain some integration tests that require a running Solr instance. And this Solr instance requires
some special configuration.
Have a look at .github/workflows/run-tests.yml
to see how to start a well configured Solr docker container locally.
If you just want to run the unit tests, just ensure that there's no other Solr server listening on the standard port
8983 and the integration tests will be skipped.
You can run the tests in a Windows environment. For all of them to pass, you must make sure to
checkout with LF
line endings.
More information
-
Issue tracker http://github.com/solariumphp/solarium/issues
-
Contributors https://github.com/solariumphp/solarium/contributors
-
License See the COPYING file or view online: https://github.com/solariumphp/solarium/blob/master/COPYING