Skip to content

Corsinvest/cv4pve-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

83 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

cv4pve-api-php ๐Ÿ”ง

cv4pve-api-php Banner

๐Ÿš€ Official PHP Client Library Suite for Proxmox VE API

License Packagist Version Packagist Downloads PHP Version

โญ We appreciate your star, it helps! โญ

   ______                _                      __
  / ____/___  __________(_)___ _   _____  _____/ /_
 / /   / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/
/ /___/ /_/ / /  (__  ) / / / / |/ /  __(__  ) /_
\____/\____/_/  /____/_/_/ /_/|___/\___/____/\__/

Corsinvest for Proxmox VE Api Client  (Made in Italy ๐Ÿ‡ฎ๐Ÿ‡น)

๐Ÿ“– About

cv4pve-api-php is a comprehensive PHP client library that provides seamless integration with Proxmox VE's REST API. Designed for developers who need to programmatically manage virtual machines, containers, storage, and cluster resources in Proxmox VE environments.

๐Ÿ“ฆ Package Suite

Package Description Status
corsinvest/cv4pve-api-php Core API Client Library โœ… Available

๐Ÿš€ Quick Start

Installation

composer require corsinvest/cv4pve-api-php

Basic Usage

<?php
require_once 'vendor/autoload.php';

use Corsinvest\ProxmoxVE\Api\PveClient;

$client = new PveClient("your-proxmox-host.com");

if ($client->login('root', 'password', 'pam')) {
    // Get cluster status
    $status = $client->getNodes()->get("pve1")->getStatus()->current();
    echo "Node Status: " . $status->getResponse()->data->status . "\n";
    
    // List VMs
    foreach ($client->getNodes()->get("pve1")->getQemu()->vmlist()->getResponse()->data as $vm) {
        echo "VM {$vm->vmid}: {$vm->name} - Status: {$vm->status}\n";
    }
}

๐ŸŒŸ Key Features

Developer Experience

  • ๐Ÿ’ก Intuitive API Structure - Mirrors Proxmox VE API hierarchy for easy navigation
  • ๐Ÿ“ Comprehensive Documentation - Detailed examples and API reference
  • ๐Ÿ”ง Easy Integration - Simple composer installation and minimal setup required
  • โšก Flexible Response Handling - Choose between object or array response formats

Core Functionality

  • ๐ŸŒ Complete API Coverage - Full implementation of Proxmox VE REST API endpoints
  • ๐Ÿ–ฅ๏ธ VM & Container Management - Create, configure, start, stop, and monitor VMs and containers
  • ๐Ÿ’พ Storage Operations - Manage storage pools, volumes, and backups
  • ๐Ÿ“Š Cluster Management - Monitor cluster status, resources, and performance

Enterprise Ready

  • ๐Ÿ” Multiple Authentication Methods - Username/password, API tokens, and two-factor authentication
  • ๐Ÿ›ก๏ธ Security First - Secure communication with SSL/TLS support
  • ๐Ÿ“ˆ Task Management - Built-in support for monitoring long-running operations
  • โฑ๏ธ Connection Management - Configurable timeouts and connection pooling

Technical Excellence

  • ๐Ÿš€ Zero Dependencies - Lightweight design using only native PHP cURL
  • ๐Ÿ—๏ธ PHP 5.5+ Compatible - Wide compatibility with modern and legacy environments
  • ๐Ÿ”„ Error Handling - Comprehensive error reporting and exception management
  • ๐Ÿ“ฑ Cross-Platform - Works on Windows, Linux, and macOS

๐Ÿ“š Documentation

๐Ÿค Community & Support

๐Ÿ†˜ Getting Help

๐Ÿข About Corsinvest

Corsinvest Srl is an Italian software company specializing in virtualization solutions. We develop professional tools and libraries for Proxmox VE that help businesses automate and manage their virtual infrastructure efficiently.

๐Ÿค Contributing

We welcome contributions from the community! Whether it's bug fixes, new features, or documentation improvements, your help makes this project better for everyone.

๐ŸŽฏ Use Cases

Perfect for:

  • ๐Ÿข Infrastructure Automation - Automate VM/CT deployment and configuration
  • ๐Ÿ“Š Monitoring & Analytics - Build custom dashboards and monitoring solutions
  • ๐Ÿ’พ Backup Management - Implement automated backup and disaster recovery workflows
  • ๐ŸŒ Multi-tenant Environments - Manage multiple Proxmox VE clusters and tenants
  • ๐Ÿ”„ DevOps Integration - Integrate with CI/CD pipelines and deployment automation

โš™๏ธ Requirements

  • PHP: 5.5.0 or higher
  • Extension: php-curl (typically included with PHP)
  • Composer: For dependency management

๐Ÿ“„ License

Copyright ยฉ Corsinvest Srl

This software is part of the cv4pve-tools suite. For licensing details, please visit LICENSE.


Part of cv4pve-tools suite | Made with โค๏ธ in Italy by Corsinvest