{"id":23359778,"url":"https://github.com/firehed/php-kubesdk","last_synced_at":"2025-04-07T20:45:58.318Z","repository":{"id":62504924,"uuid":"151452405","full_name":"Firehed/php-kubesdk","owner":"Firehed","description":"PHP Kubernetes SDK","archived":false,"fork":false,"pushed_at":"2018-12-18T20:41:13.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T22:26:59.835Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Firehed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T17:26:35.000Z","updated_at":"2020-07-28T00:13:08.000Z","dependencies_parsed_at":"2022-11-02T10:15:58.873Z","dependency_job_id":null,"html_url":"https://github.com/Firehed/php-kubesdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-kubesdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-kubesdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-kubesdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-kubesdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firehed","download_url":"https://codeload.github.com/Firehed/php-kubesdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247729466,"owners_count":20986392,"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-21T11:11:57.075Z","updated_at":"2025-04-07T20:45:58.140Z","avatar_url":"https://github.com/Firehed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes SDK\n\n[![Build Status](https://travis-ci.org/Firehed/php-kubesdk.svg?branch=master)](https://travis-ci.org/Firehed/php-kubesdk)\n[![codecov](https://codecov.io/gh/Firehed/php-kubesdk/branch/master/graph/badge.svg)](https://codecov.io/gh/Firehed/php-kubesdk)\n\nA simple API wrapper for interacting with the Kubernetes API\n\n## Usage\n\nThere are two classes to interface with the Kubernetes API:\n\n- `Kubernetes\\LocalProxy` is for use on your local machine, or anywhere else the `kubectl proxy` command may be running.\n- `Kubernetes\\ServiceAccount` is for use inside of Kubernetes.\n  It will auto-detect the auth information automatically configured in all Pods.\n  This will respect the `serviceAccountName` configuration of the pod.\n\nYou will probably want to determine which one to load approximately like this:\n\n```php\n// ... PSR-11 container definition\n    Kubernetes\\Api::class =\u003e function () {\n        if (getenv('KUBERNETES_SERVICE_HOST')) {\n            return new Kubernetes\\ServiceAccount();\n        } else {\n            return new Kubernetes\\LocalProxy('http://localhost:8001');\n        }\n    },\n```\n\nThe SDK methods are defined in the [`Kubernetes\\Api`](src/Api.php) interface.\n\nNetwork timeouts default to 500ms on connect and 3000ms for the request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fphp-kubesdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirehed%2Fphp-kubesdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fphp-kubesdk/lists"}