{"id":14983987,"url":"https://github.com/pluk77/symfonysphinxbundle","last_synced_at":"2025-09-29T19:30:41.209Z","repository":{"id":57042852,"uuid":"161609368","full_name":"pluk77/SymfonySphinxBundle","owner":"pluk77","description":"Symfony bundle which provides integration of Sphinx or Manticore search engine with Symfony using SphinxQL","archived":false,"fork":true,"pushed_at":"2020-12-18T06:49:50.000Z","size":49,"stargazers_count":5,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T21:17:21.216Z","etag":null,"topics":["manticore","manticore-search","manticoresearch","php","sphinx","sphinxql","sphinxsearch","symfony","symfony-bundle","symfony4","symfony5"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"javer/JaverSphinxBundle","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pluk77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-13T08:43:12.000Z","updated_at":"2021-11-06T19:15:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pluk77/SymfonySphinxBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pluk77/SymfonySphinxBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluk77%2FSymfonySphinxBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluk77%2FSymfonySphinxBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluk77%2FSymfonySphinxBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluk77%2FSymfonySphinxBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pluk77","download_url":"https://codeload.github.com/pluk77/SymfonySphinxBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluk77%2FSymfonySphinxBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277573561,"owners_count":25841468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["manticore","manticore-search","manticoresearch","php","sphinx","sphinxql","sphinxsearch","symfony","symfony-bundle","symfony4","symfony5"],"created_at":"2024-09-24T14:08:17.022Z","updated_at":"2025-09-29T19:30:40.960Z","avatar_url":"https://github.com/pluk77.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SymfonySphinxBundle\n=================\n\nForked from javer/JaverSphinxBundle\n\nThis bundle provides integration of [Sphinx](http://sphinxsearch.com) or [Manticore](https://manticoresearch.com/) search engine with Symfony4+.\n\nFeatures:\n- SphinxQL Query Builder\n- Integration with [doctrine/orm](https://packagist.org/packages/doctrine/orm) \n- Symfony Profiler toolbar section with number of executed queries and profiler page with detailed information about executed queries\n\nThis fork is not backwards compatible with Javer/JaverSphinxBundle\n\nRequirements\n------------\n\n- PHP 7.1+\n- pdo_mysql php extension\n- Symfony 4+\n\nInstallation\n------------\n\nInstall the bundle using composer:\n```sh\ncomposer require pluk77/symfony-sphinx-bundle\n```\n\nConfiguration\n-------------\n\nAdd to your ```config/package/symfony_sphinx.yml``` the following options:\n```yml\nsymfony_sphinx:\n    host: 127.0.0.1\n    port: 9306\n```\n\nFull configuration with default values:\n```yml\nsymfony_sphinx:\n    host: 127.0.0.1\n    port: 9306\n```\n\nUsage\n-----\n\nSynthetic example of SELECT query which returns an array:\n```php\n$results = $sphinx-\u003ecreateQuery()\n    -\u003eselect('id', 'column1', 'column2', 'WEIGHT() as weight')\n    -\u003efrom(['index1', 'index2'])\n    -\u003ewhere('column3', 'value1')\n    -\u003eandWhere('column4', '\u003e', 4)\n    -\u003eandWhere('column5', [5, '6'])\n    -\u003eandWhere('column6', 'NOT IN', [7, '8'])\n    -\u003eandWhere('column7', 'BETWEEN', [9, 10])\n    -\u003ematch('column8', 'value2')\n    -\u003eandMatch(['column9', 'column10'], 'value3')\n    -\u003eorMatch(['column9', 'column10'], 'value3')\n    -\u003erawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')\n    -\u003eorRawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')\n    -\u003eandRawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')\n    -\u003egroupBy('column11')\n    -\u003eandGroupBy('column12')\n    -\u003ewithinGroupOrderBy('column13', 'desc')\n    -\u003eAndWithinGroupOrderBy('column14')\n    -\u003ehaving('weight', '\u003e', 2)\n    -\u003eorderBy('column15', 'desc')\n    -\u003eandOrderBy('column16')\n    -\u003esetFirstResult(5)\n    -\u003esetMaxResults(10)\n    -\u003esetOption('agent_query_timeout', 10000)\n    -\u003eaddOption('max_matches', 1000)\n    -\u003eaddOption('field_weights', '(column9=10, column10=3)')\n    -\u003egetResults();\n```\n\nEntities fetched from the database using Doctrine ORM QueryBuilder by searching phrase in them using Sphinx:\n```php\n$queryBuilder = $this-\u003egetRepository(Patient::class)\n\t-\u003ecreateQueryBuilder('p')\n\t-\u003eselect();\n\n$query = $sphinx-\u003ecreateQuery()\n\t-\u003eselect('id')\n\t-\u003efrom('patient')\n\t-\u003ematch(['last_name','first_name'], 'jo*')\n\t-\u003esetOption('field_weights', '(last_name=10, first_name=5)')\n\t-\u003euseQueryBuilder($queryBuilder, 'p', 'id');\n\t\n$results = $query-\u003egetResults();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluk77%2Fsymfonysphinxbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpluk77%2Fsymfonysphinxbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluk77%2Fsymfonysphinxbundle/lists"}