{"id":20528224,"url":"https://github.com/manticoresoftware/buddy-plugin-show-hostname","last_synced_at":"2025-09-12T03:17:17.253Z","repository":{"id":145763819,"uuid":"616922843","full_name":"manticoresoftware/buddy-plugin-show-hostname","owner":"manticoresoftware","description":"Example of SELECT hostname implementation","archived":false,"fork":false,"pushed_at":"2023-11-18T08:27:19.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-21T04:06:32.440Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manticoresoftware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-21T11:05:25.000Z","updated_at":"2023-03-22T03:26:01.000Z","dependencies_parsed_at":"2023-11-18T09:26:01.329Z","dependency_job_id":"592c8747-fab4-45ca-9251-4ca34af7ee5f","html_url":"https://github.com/manticoresoftware/buddy-plugin-show-hostname","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"manticoresoftware/buddy-plugin-template","purl":"pkg:github/manticoresoftware/buddy-plugin-show-hostname","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fbuddy-plugin-show-hostname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fbuddy-plugin-show-hostname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fbuddy-plugin-show-hostname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fbuddy-plugin-show-hostname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manticoresoftware","download_url":"https://codeload.github.com/manticoresoftware/buddy-plugin-show-hostname/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fbuddy-plugin-show-hostname/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274747692,"owners_count":25341936,"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-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2024-11-15T23:24:01.220Z","updated_at":"2025-09-12T03:17:17.219Z","avatar_url":"https://github.com/manticoresoftware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buddy-plugin-template\n\nThis is an initial template of a plugin for [Buddy](https://github.com/manticoresoftware/manticoresearch-buddy/) that you can use to develop.\n\n## How to start\n\n1. Create a repository from this template.\n2. Open `composer.json` and edit it with your plugin name, dependencies, and everything else you need.\n3. Run `composer install` to make it work.\n4. You need to use our official `manticore-executor`; we strictly recommend using the [Docker](#how-to-use-docker-of-manticore-executor-dev) flow.\n5. Edit `src/Payload.php`, add logic to parse the request, and prepare the payload structure for your command processing.\n6. Edit `src/Handler.php` and implement processing logic and response that will be proxied by Manticore to the client.\n\n## How to use Docker of manticore-executor-dev\n\n1. Clone [Buddy](https://github.com/manticoresoftware/manticoresearch-buddy/) somewhere to your host machine and go into it.\n2. Run this command to create a Docker image named `manticore-buddy`:\n\n    ```bash\n    docker run --privileged --entrypoint bash -v $(pwd):/workdir -w /workdir --name manticore-buddy  --network host -it manticoresearch/manticore-executor-kit:latest\n    ```\n\n3. Now you can edit `/etc/manticore.conf` and configure the development version of Buddy:\n\n    ```text\n    buddy_path = manticore-executor-dev /workdir/src/main.php --debug\n    ```\n\n4. Run `searchd --nodetach` to keep the daemon in the foreground and enjoy the development of your new plugin.\n\n## Notes\n\nYou can use `pre-commit` to install code style and code analyze hooks by running `pre-commit install`. Check our PHP code style and guide [here](https://github.com/manticoresoftware/php-code-standard).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanticoresoftware%2Fbuddy-plugin-show-hostname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanticoresoftware%2Fbuddy-plugin-show-hostname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanticoresoftware%2Fbuddy-plugin-show-hostname/lists"}