{"id":13548980,"url":"https://github.com/travisghansen/kubernetes-client-php","last_synced_at":"2025-10-27T14:31:23.237Z","repository":{"id":48370020,"uuid":"147427773","full_name":"travisghansen/kubernetes-client-php","owner":"travisghansen","description":"No nonsense PHP Client for the Kubernetes API","archived":false,"fork":false,"pushed_at":"2024-04-04T00:11:01.000Z","size":53,"stargazers_count":33,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-28T21:02:24.175Z","etag":null,"topics":["api","client","k8s","kubernetes","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travisghansen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-09-04T22:31:15.000Z","updated_at":"2024-07-26T20:41:11.000Z","dependencies_parsed_at":"2024-04-02T06:25:07.027Z","dependency_job_id":"c2533712-7d91-4abb-b8ff-a6861cd1cfdb","html_url":"https://github.com/travisghansen/kubernetes-client-php","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.3142857142857143,"last_synced_commit":"463ca2156420505911b4fd200791d2910cec0a62"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fkubernetes-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fkubernetes-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fkubernetes-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fkubernetes-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travisghansen","download_url":"https://codeload.github.com/travisghansen/kubernetes-client-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861084,"owners_count":16556007,"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":["api","client","k8s","kubernetes","php"],"created_at":"2024-08-01T12:01:16.806Z","updated_at":"2025-10-27T14:31:17.919Z","avatar_url":"https://github.com/travisghansen.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Intro\nNo nonsense PHP client for the Kubernetes API.  It supports standard `REST` calls along with `watch`es for a continuous\nfeed of data.  Because no models are used it's usable with `CRD`s and other functionality/endpoints that may not be\nbuilt-in.\n\n# Example\nSee [sample.php](sample.php)\n\n# Watches\nWatches can (will) stay connected indefinitely, automatically reconnecting after server-side timeout.  The client will\nkeep track of the most recent `resourceVersion` processed to automatically start where you left off.\n\nWatch callback closures should have the following signature:\n```\n$callback = function($event, $watch)..\n```\nReceiving the watch allows access to the client (and any other details on the watch) and also provides an ability to\nstop the watch (break the loop) based off of event logic.\n\n * `GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}` (specific resource)\n * `GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs` (resource type namespaced)\n * `GET /apis/batch/v1beta1/watch/cronjobs` (resource type cluster-wide)\n * https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#watch\n\nOther notes:\n - if using labelSelectors triggered events will fire with ADDED / DELETED types if the label is added/delete\n (ie: ADDED/DELETED do not necessarily equate to literally being added/deleted from k8s)\n\n# Development\nNote on `resourceVersion` per the doc:\n\u003e When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to\n\u003e changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote\n\u003e storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; -\n\u003e if set to non zero, then the result is at least as fresh as given rv.\n\nNote that it's only changes **after** the version.\n\n## TODO\n * Introduce threads for callbacks?\n * Do codegen on swagger docs to provide and OO interface to requests/responses?\n\n## Links\n * https://github.com/swagger-api/swagger-codegen/blob/master/README.md\n * https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#api-conventions\n * https://kubernetes.io/docs/reference/using-api/client-libraries/#community-maintained-client-libraries\n * https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/\n * https://kubernetes.io/docs/reference/using-api/api-concepts/\n * https://kubernetes.io/docs/concepts/overview/kubernetes-api/\n * https://stackoverflow.com/questions/1342583/manipulate-a-string-that-is-30-million-characters-long/1342760#1342760\n * https://github.com/kubernetes/client-go/blob/master/README.md\n * https://github.com/kubernetes-client/python-base/blob/master/watch/watch.py\n * https://github.com/kubernetes-client/python/issues/124\n\n## Async\n * https://github.com/spatie/async/blob/master/README.md\n * https://github.com/krakjoe/pthreads/blob/master/README.md\n * http://php.net/manual/en/function.pcntl-fork.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisghansen%2Fkubernetes-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravisghansen%2Fkubernetes-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisghansen%2Fkubernetes-client-php/lists"}