rackspace/php-opencloud
PHP SDK for Rackspace OpenCloud/OpenStack services. Manage Cloud Servers, Files, DNS, Load Balancers, Databases, Monitoring, and Identity via a unified API with authentication, region support, and common resource helpers for building cloud integrations.
rackspace/php-opencloud (v1.16.0) remains a viable fit for OpenStack-dependent applications, particularly for compute (Nova), object storage (Swift), and load balancer services. The new release introduces targeted fixes and enhancements (e.g., security groups, ports in server creation, temporary URL fixes), aligning with common IaaS/PaaS workflows..env remains viable for credentials, though no new auth methods (e.g., OAuth2/JWT) are added.openstack:list-servers) can leverage new features like load balancer nodes.foreach changes, constructor strictness).array() constructor deprecation)?password_hash() defaults)?spatie/laravel-openstack) that could replace this SDK?$this->app->bind('openstack.nova', function ($app) {
if (version_compare(PHP_VERSION, '8.0.0') >= 0) {
throw new \RuntimeException('PHP 8+ not supported by rackspace/php-opencloud; use a fork or alternative.');
}
return OpenCloud\Common\Service::client('compute-1.1', [...]);
});
config/openstack.php to include PHP version guards and fallback URLs.composer.json to avoid risks:
"config": {
"platform-check": false,
"preferred-install": "dist"
},
"require": {
"php": "~7.4.0",
"rackspace/php-opencloud": "1.16.0"
}
"rackspace/php-opencloud": "1.16.0"
$client = new \GuzzleHttp\Client();
$response = $client->post('https://openstack-api/servers', [
'auth' => ['user', 'pass'],
'json' => ['server' => [...]]
]);
Illuminate\Cache to track SDK failures and route to fallback.ServerCreatedWithPorts) to decouple logic.Cache::remember) for frequently accessed data (e.g., object listings).How can I help you explore Laravel packages today?