PHPhinder is an open-source, lightweight, and modular search engine designed for PHP applications. It provides powerful search capabilities with a focus on simplicity, speed, and extensibility.
The PHPhinder bundle connects PHPhinder with Symfony to improve the searchability of Doctrine entities.
Finally this project is a working implementation of the search engine in a real Symfony project. Is an example on how you can use the Search Engine.
- Download the current code
git clone https://github.com/eliasfernandez/phphinder-project.git
- Install the packages via composer
composer install
- Configure the storage
Under config/packages/phphinder.yaml
configure the storage type (dbal
or json
) and the connection string:
parameters:
phphinder.storage: 'dbal'
phphinder.name: 'pgsql://app:[email protected]:5432/app?serverVersion=16&charset=utf8'
phphinder.auto_sync: true
- Load some books:
docker compose up -d
bin/console app:load-books
- Start the server. Install the symfony-cli if you didn't install it before.
symfony serve
-
Go to the search url http://localhost:8000/search
-
Enjoy!