{"id":22908833,"url":"https://github.com/ipunkt/laravel-indexer-client","last_synced_at":"2025-04-01T09:59:12.868Z","repository":{"id":56993248,"uuid":"97851345","full_name":"ipunkt/laravel-indexer-client","owner":"ipunkt","description":"A php client for the laravel-indexer-service","archived":false,"fork":false,"pushed_at":"2019-03-15T08:39:37.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T05:27:31.510Z","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/ipunkt.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":"2017-07-20T15:29:44.000Z","updated_at":"2019-03-14T17:33:41.000Z","dependencies_parsed_at":"2022-08-21T13:20:38.143Z","dependency_job_id":null,"html_url":"https://github.com/ipunkt/laravel-indexer-client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Flaravel-indexer-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Flaravel-indexer-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Flaravel-indexer-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Flaravel-indexer-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/laravel-indexer-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620260,"owners_count":20806722,"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-12-14T03:32:29.899Z","updated_at":"2025-04-01T09:59:12.842Z","avatar_url":"https://github.com/ipunkt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-indexer-client\n\n[![Latest Stable Version](https://poser.pugx.org/ipunkt/laravel-indexer-client/v/stable.svg)](https://packagist.org/packages/ipunkt/laravel-indexer-client) [![Latest Unstable Version](https://poser.pugx.org/ipunkt/laravel-indexer-client/v/unstable.svg)](https://packagist.org/packages/ipunkt/laravel-indexer-client) [![License](https://poser.pugx.org/ipunkt/laravel-indexer-client/license.svg)](https://packagist.org/packages/ipunkt/laravel-indexer-client) [![Total Downloads](https://poser.pugx.org/ipunkt/laravel-indexer-client/downloads.svg)](https://packagist.org/packages/ipunkt/laravel-indexer-client)\n\nA php client for the [laravel-indexer-service](https://github.com/ipunkt/laravel-indexer-service).\n\n## Installation\n\n```bash\ncomposer require ipunkt/laravel-indexer-client\n```\n\nIf you need a \u003c php7 release use the 1.* version.\n\n### Binding in Laravel\n\nIn any ServiceProvider do the following:\n\n```php\npublic function register()\n{\n    $this-\u003eapp-\u003ebind(IndexerClient::class, function () {\n        $host = config('indexer.service');\n        $token = config('indexer.token');\n        try {\n            $httpClient = new Client();\n            $client = new IndexerClient($host, $httpClient, $token);\n            return $client;\n        } catch (Exception $exception) {\n            throw new \\RuntimeException('IndexerClient can not be instantiated.', 0, $exception);\n        }\n    });\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Flaravel-indexer-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Flaravel-indexer-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Flaravel-indexer-client/lists"}