PHPackages                             tigron/skeleton-container-control - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. tigron/skeleton-container-control

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tigron/skeleton-container-control
=================================

Communication with remote containers

v1.0.4(11mo ago)010.6k↓30%MITPHP

Since Jan 22Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/tigron/skeleton-container-control)[ Packagist](https://packagist.org/packages/tigron/skeleton-container-control)[ RSS](/packages/tigron-skeleton-container-control/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

skeleton-container-control
==========================

[](#skeleton-container-control)

Description
-----------

[](#description)

This library enables the communication with a remote server. The remote server needs to have the `skeleton-container` package installed.

Installation
------------

[](#installation)

Installation via composer:

```
composer require tigron/skeleton-container-control

```

Howto
-----

[](#howto)

Initialize the service directory

```
\Skeleton\Container\Control\Config::$service_dir = $some_very_cool_directory;

```

The following skeleton console commands will be available:

```
container
 container:deprovision  Deprovision a service from a container
 container:info         Get info of a paired container
 container:list         List all paired containers
 container:pair         Pair with a new container
 container:provision    Provision a container with a new service
 container:rename       Rename a container
 container:unpair       Unpair from a container
service
 service:diff           Show differences between the local and remote service, if any
 service:list           List all known services

```

To create a service, create a directory structure like this in your service directory:

```
service_name
├── lib 	                # Libraries needed for this service
└── module                  # Contains the module for the service

```

In the module directory, at least 1 file should be added: index.php. This module will handle all the incoming requests. It is a class that should extend from 'Service\_Module'

This is an example of a very basic module:

```
