{"id":17095444,"url":"https://github.com/estahn/yiisolarium","last_synced_at":"2025-10-03T22:02:46.140Z","repository":{"id":6574771,"uuid":"7816805","full_name":"estahn/YiiSolarium","owner":"estahn","description":"YiiSolarium integrates Solarium (an opensource Solr client library for PHP applications)","archived":false,"fork":false,"pushed_at":"2023-12-15T17:49:47.000Z","size":6,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T17:21:25.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/estahn.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":"2013-01-25T08:54:21.000Z","updated_at":"2016-06-20T09:57:28.000Z","dependencies_parsed_at":"2022-07-21T14:02:13.920Z","dependency_job_id":null,"html_url":"https://github.com/estahn/YiiSolarium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estahn%2FYiiSolarium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estahn%2FYiiSolarium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estahn%2FYiiSolarium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estahn%2FYiiSolarium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estahn","download_url":"https://codeload.github.com/estahn/YiiSolarium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644212,"owners_count":21138570,"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","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":[],"created_at":"2024-10-14T14:42:49.027Z","updated_at":"2025-10-03T22:02:46.040Z","avatar_url":"https://github.com/estahn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YiiSolarium\n\nYiiSolarium integrates Solarium (an opensource Solr client library for PHP applications)\n\n## Install\n\n1. Download YiiSolarium into your application extension directory\n\n    ```\n    git clone https://github.com/estahn/YiiSolarium.git\n    ```\n\n1. Run composer within YiiSolarium directory\n\n    ```\n    cd \u003capplication extension dir\u003e/YiiSolarium\n    composer install\n    ```\n\n1. Remove .git directory\n\n    ```\n    rm -rf .git\n    ```\n\n## Configuration\n\nYiiSolarium is a [Yii application component][yiidoc].\nA comprehensive overview of the configuration parameters for Solarium can be found in the [Solarium documentation][sdoc].\n\nExample:\n```\n'components' =\u003e array(\n    ...\n    'solarium' =\u003e array(\n        'class' =\u003e 'application.extensions.YiiSolarium.Solarium',\n        'clientOptions' =\u003e array(\n            'endpoint' =\u003e array(\n                'localhost' =\u003e array(\n                    'host' =\u003e '127.0.0.1',\n                    'port' =\u003e '8089',\n                    'path' =\u003e '',\n                )\n            )\n        )\n    )\n    ...\n)\n```\n\n## Usage\n\nSolarium is accessible through ```Yii::app()-\u003esolarium```.\n\nExample:\n```\n/** @var $client Solarium\\Client */\n$client = Yii::app()-\u003esolarium-\u003egetClient();\n\n$query = $client-\u003ecreateSelect();\n$query-\u003esetFields(array('name'));\n$query-\u003esetQuery('name:%p1%', array('Bob'));\n$query-\u003esetRows(3);\n$result = $client-\u003eselect($query);\n```\n\n## Contributing\n\n1. Fork it.\n2. Create a branch (`git checkout -b my_markup`)\n3. Commit your changes (`git commit -am \"Added Snarkdown\"`)\n4. Push to the branch (`git push origin my_markup`)\n5. Open a [Pull Request][1]\n6. Enjoy a refreshing Diet Coke and wait\n\n[yiidoc]: http://www.yiiframework.com/doc/guide/1.1/en/basics.application#application-components\n[sdoc]: http://wiki.solarium-project.org/index.php/V1:Client#Options\n[1]: https://github.com/estahn/YiiSolarium/pulls","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festahn%2Fyiisolarium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festahn%2Fyiisolarium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festahn%2Fyiisolarium/lists"}