{"id":50107031,"url":"https://github.com/client-api/pve-php","last_synced_at":"2026-05-23T11:06:47.162Z","repository":{"id":356819250,"uuid":"1232381198","full_name":"client-api/pve-php","owner":"client-api","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T21:43:19.000Z","size":1094,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T23:38:08.015Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/client-api.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-07T21:54:50.000Z","updated_at":"2026-05-09T21:43:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/client-api/pve-php","commit_stats":null,"previous_names":["client-api/pve-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/client-api/pve-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpve-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpve-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpve-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpve-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/client-api","download_url":"https://codeload.github.com/client-api/pve-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpve-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33392826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-05-23T11:06:46.523Z","updated_at":"2026-05-23T11:06:47.122Z","avatar_url":"https://github.com/client-api.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pve-php\n\nPHP SDK for the Proxmox Virtual Environment (PVE) API. Generated from\nthe upstream `apidoc.js` via [openapi-generator-cli][gen] with custom\nMustache template overrides.\n\n\u003e **Not an official Proxmox project.** Community SDK derived from the\n\u003e upstream `apidoc.js`. Always verify against\n\u003e \u003chttps://pve.proxmox.com/pve-docs/api-viewer/\u003e.\n\nRequires PHP ≥ 7.4.\n\n## Install\n\n```bash\ncomposer require client-api/pve\n```\n\n## Usage\n\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nuse ClientApi\\Pve\\Configuration;\nuse ClientApi\\Pve\\Pve;\n\n$cfg = Configuration::getDefaultConfiguration()\n    -\u003esetHost('https://pve1.example.com:8006/api2/json')\n    -\u003esetApiKey('Authorization', 'PVEAPIToken=user@realm!tokenid=uuid-secret');\n\n$pve = new Pve($cfg);\n\n// Per-tag accessors are lazily instantiated and share the same Configuration.\n$status = $pve-\u003eqemu()-\u003eqemuVmStatus(node: 'pve1', vmid: 100);\n$nodes  = $pve-\u003enodes()-\u003enodesGetNodes();\n```\n\nThe unified `Pve` class wraps each per-tag API class (`QemuApi`,\n`LxcApi`, `ClusterApi`, `NodesApi`, …) so consumers don't need to\ninstantiate them individually.\n\n## Compound configs\n\nPVE encodes many fields as CLI-style shorthand strings\n(`net0=virtio,bridge=vmbr0,firewall=1`). Round-trip helpers are\nemitted for every compound config schema:\n\n```php\nuse ClientApi\\Pve\\Model\\PveQemuNetConfig;\n\n$cfg = new PveQemuNetConfig([\n    'model'    =\u003e 'virtio',\n    'bridge'   =\u003e 'vmbr0',\n    'firewall' =\u003e 1,\n]);\n$shorthand = $cfg-\u003etoShorthand();\n// → 'virtio,bridge=vmbr0,firewall=1'\n\n$parsed = PveQemuNetConfig::fromShorthand($shorthand);\n```\n\n## Indexed families\n\nNumbered properties (`net0..net31`, `mp0..mp255`, …) are exposed on\nevery model as a single collapsed `getNets()` / `setNets()` accessor.\nThe per-index `getNet0`/`setNet0`/… methods are filtered out of the\nclass surface (the wire format is preserved internally via a `__call`\nmagic dispatcher):\n\n```php\n$req-\u003esetNets([\n    0 =\u003e 'virtio,bridge=vmbr0',\n    3 =\u003e 'e1000,bridge=vmbr1',\n]);\n// Wire format: { \"net0\": \"virtio,bridge=vmbr0\", \"net3\": \"e1000,bridge=vmbr1\" }\n```\n\n## License\n\nApache 2.0 — see [LICENSE](./LICENSE).\n\n[gen]: https://openapi-generator.tech\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient-api%2Fpve-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclient-api%2Fpve-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient-api%2Fpve-php/lists"}