matthewbdaly / zendsearch
A fork of zendframework/zendsearch, with some tweaks to make it work in PHP 7
Installs: 128 535
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.0
- psy/psysh: ^0.9.9
- rector/rector: ^0.4.12
- squizlabs/php_codesniffer: ^3.4
- vimeo/psalm: ^3.2
Replaces
This package is auto-updated.
Last update: 2024-10-29 01:17:17 UTC
README
Fork of zendframework/zendsearch
.
The goal of this project is primarily to maintain a version of the original package that will work on newer PHP versions. It's not to:
- Add any additional functionality
- Maintain any sort of compatibility with Lucene
- Extend the scope of the original in any way
As such, any pull requests that do this WILL be rejected. However, if you want to use this project as a starting point for your own fork, be my guest.
However, in the long term I'd like to improve the quality of the package. As such, pull requests that do the following are welcome:
- Fix gaps in test coverage
- Fix potential errors identified by Psalm
- Fix any PSR 2 code style issues
- Updates to DocBlocks
Why are you doing this?
While the original package has been abandoned and they recommend using something like Elasticsearch instead, that is often overkill for many sites. There's teamtnt/tntsearch
, but that lacks features such as the ability to index Powerpoint documents. The main project I work on professionally at time of writing is an example of a site that may benefit from this package, in that it's arguably too small to be worth bothering with Elasticsearch, but using relational databases to search it is inadequate.
Basically, there is a use case for a pure PHP search solution with no dependencies, but there exist very few other suitable implementations, and this was an existing package that could be forked and updated somewhat, and that's good enough for me. I don't have the sort of specialist knowledge in Lucene necessary to develop this further, but I can update it to work in newer PHP versions and maybe fix some issues with the code base.
How do I use this?
Refer to the original Zend documentation. I didn't write this code originally, and am maintaining this fork merely because I think it's potentially useful for me, so I can't offer any real support for it.