PHPSocialNetwork / solr-extension

Solr extension for Phpfastcache v10 and greater

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributing Solr extension tests

Merge requests are welcome but will require the tests plus the quality tools to pass:

(Commands must be run from the repository root)

PHPCS, PHPMD, PHPSTAN (Level 6), unit tests:

composer run-script quality
composer run-script tests

# In case you want to fix the code style automatically: 
composer run-script phpcbf

Support & Security

Support for this extension must be posted to the main Phpfastcache repository.

Composer installation:

composer install phpfastcache/solr-extension

⚠️ This extension requires:

1️ The composer solarium/solarium library 6.1 at least.

Events

This driver is emitting customs events:

  • onSolrBuildEndpoint(Callable $callback)
    • Callback arguments
      • ExtendedCacheItemPoolInterface $itemPool
      • EventReferenceParameter($params) $endpoints via EventReferenceParameter object (type modification forbidden)
    • Scope
      • Solr Driver
    • Description
      • Allow you to alter the endpoints built used to connect to Solr server
    • Risky Circular Methods: None

About

Solr extension for Phpfastcache v10 and greater

License:MIT License


Languages

Language:PHP 93.5%Language:Shell 5.6%Language:Batchfile 0.9%