petrepatrasc/starcraft-connection-layer
A PHP connection layer for StarCraft that provides a structured foundation for managing connections and integrating StarCraft-related communication into PHP applications. It keeps connection concerns separate from application logic for cleaner, more maintainable integrations.
php artisan vendor:publish --provider="...\ConnectionServiceProvider") and review the default connection settings before making your first call.ConnectionService class. As of 1.0.1 the main service was renamed to ConnectionService, so this is the class name you should resolve from the container (or via its facade).ConnectionService into a controller or job and open/use the default connection.use Vendor\Package\ConnectionService;
public function __construct(private ConnectionService $connections) {}
public function show()
{
return $this->connections->connection()->send($payload);
}
ConnectionService in controllers, jobs, and services so the dependency is explicit and swappable in tests.$connections->connection('reports')); keep environment-specific credentials in .env.$this->swap(ConnectionService::class, $fake)) or bind a fake in a service provider; avoid hitting real connections in tests.use statements, constructor/property type hints, app('old-name') and make() strings, facade accessors, and any custom container bindings.ConnectionService. Grep the codebase for the previous class name and update imports, DI hints, container string keys, facade accessors, and any config that referenced it. Third-party code extending or type-hinting the old class will break.php artisan config:clear locally and ensure a config rebuild happens on deploy, otherwise changes silently don't apply.composer.json and review the changelog before jumping minor/major versions in production.How can I help you explore Laravel packages today?