PHPackages                             servergrove/sgcontrol-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. servergrove/sgcontrol-bundle

ActiveSymfony-bundle[API Development](/categories/api)

servergrove/sgcontrol-bundle
============================

Client for ServerGrove Control Panel API. Includes an interactive shell.

5400PHP

Since Mar 7Pushed 13y ago3 watchersCompare

[ Source](https://github.com/servergrove/SGControlBundle)[ Packagist](https://packagist.org/packages/servergrove/sgcontrol-bundle)[ RSS](/packages/servergrove-sgcontrol-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SGControlBundle
===============

[](#sgcontrolbundle)

The SGControlBundle is a Symfony2 bundle that provides command line tools to interact with the ServerGrove Control Panel. It also provides an interactive shell.

The following command line tools are provided:

- API client Command Line Interface

The API client CLI allows to connect to the ServerGrove Control Panel through a HTTP API. To connect to the API you will need to be a registered customer with access to the Control Panel and API, and you will need to enable API access in the user profile.

Installation:
-------------

[](#installation)

Download or clone the bundle. If you use deps file add it like this:

```
[SGControlBundle]
	git=git://github.com/servergrove/SGControlBundle.git
	target=/bundles/ServerGrove/Bundle/SGControlBundle

```

Add ServerGrove namespace to app/autoload.php:

```
$loader->registerNamespaces(array(
	...
	'ServerGrove' => __DIR__.'/../vendor/bundles',
	...
));

```

Enable it in your app/AppKernel.php

```
public function registerBundles()
{
	$bundles = array(
		...

		new ServerGrove\Bundle\SGControlBundle\SGControlBundle(),
	);

	...
}

```

Configuration:
--------------

[](#configuration)

By default, the API client will use our demo API secret/key combination. This only lets you runs some tests against the server but it won't allow you to access your account and servers.

You will need to enable API access in your user profile in

Once you have the API key and secret, add it to app/config.yml:

```
parameters:
	sgc_api.client.apiKey: your-key
	sgc_api.client.apiSecret: your-secret

```

Usage:
------

[](#usage)

```
./console sg:api:client call [args]

```

- call: call composed of namespace and action (ie. server/list)
- args: (optional) list of variables to send to the call (ie. serverId=abc123&amp;isActive=0)

Example:
--------

[](#example)

```
./console sg:api:client test/version
./console sg:api:client server/list
./console sg:api:client server/stop serverId=abc123

```

Interactive shell:
------------------

[](#interactive-shell)

```
./console sg:shell

```

Commands:

- help/h/? - list commands
- servers - list servers
- server \[option\] - selects a server from the servers list. option can be an numeric option from the list or a server name. A partial name can also be provided and it will select the first match
- exec cmd - executes a command in the selected server
- reboot \[server\] - reboots a server. \[server\] is optional. If not given it will use the selected server. It will ask for confirmation before proceding
- shutdown \[server\] - shuts down a server. \[server\] is optional. If not given it will use the selected server. It will ask for confirmation before proceding
- bootup \[server\] - boots up a server. \[server\] is optional. If not given it will use the selected server
- discover \[server\] - sends a discover request to server. A discover request will update server and apps information. \[server\] is optional. If not given it will use the selected server.
- domains - list domains under selected server
- domain \[option\] - selects a domain from the domains list. option can be an numeric option from the list or a domain name. A partial name can also be provided and it will select the first match
- apps - list apps under selected server
- app \[option\] - selects a app from the apps list. option can be an numeric option from the list or a app name. A partial name can also be provided and it will select the first match
- restart \[app\] - restarts an application. \[app\] is optional. If not given it will use the selected app. It will ask for confirmation before proceding
- stop \[app\] - restarts an application. \[app\] is optional. If not given it will use the selected app. It will ask for confirmation before proceding
- start \[app\] - restarts an application. \[app\] is optional. If not given it will use the selected app
- . - runs the last command again
- x/q - resets internal selections
- exit/quit - exits shell

WARNING
-------

[](#warning)

**Notice:** The API is still under heavy development, so things MAY change. Please be aware of this.

More information:
-----------------

[](#more-information)

- [List of available API calls and parameters](https://control.servergrove.com/docs/api)
- [ServerGrove Website](http://www.servergrove.com/)
- [ServerGrove Blog](http://blog.servergrove.com/)
- [ServerGrove Control Panel](https://control.servergrove.com/)
- [ServerGrove Knowledge Base](https://secure.servergrove.com/clients)
- [Follow ServerGrove @ Twitter](http://twitter.com/servergrove)
- [GitHub Downloads](http://github.com/servergrove)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/05f6e92a30f69a12acbdcd7602d53ebac895ff467d9434d5c3b37e592198b6b5?d=identicon)[pgodel](/maintainers/pgodel)

---

Top Contributors

[![pgodel](https://avatars.githubusercontent.com/u/18968?v=4)](https://github.com/pgodel "pgodel (19 commits)")

### Embed Badge

![Health badge](/badges/servergrove-sgcontrol-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/servergrove-sgcontrol-bundle/health.svg)](https://phpackages.com/packages/servergrove-sgcontrol-bundle)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
