PHPackages                             mslib/resource-proxy - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mslib/resource-proxy

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mslib/resource-proxy
====================

General Ms library to get resources from a remote source (e.g. email box)

19PHP

Since May 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mslib/resource-proxy)[ Packagist](https://packagist.org/packages/mslib/resource-proxy)[ RSS](/packages/mslib-resource-proxy/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

**RESOURCE-PROXY LIBRARY**
==========================

[](#resource-proxy-library)

This library provides an easy way to get resources from a remote resource source (e.g. emails, images, documents, etc.).

It is based on ZendFramework2. The following ZF2 modules are currently used (take a look at the composer.json for a full overview about all dependencies):

```
{
    "require": {
        "zendframework/zend-mail": "2.*"
    }
}
```

**INSTALLATION**
----------------

[](#installation)

Installation is a quick 3 step process:

1. Download ResourceProxy using composer
2. Configure your sources
3. Generate your ResourceProxy implementation

### Step 1: Download ResourceProxy using composer

[](#step-1-download-resourceproxy-using-composer)

Add RemoteHost in your composer.json:

```
{
    "require": {
        "mslib/resource-proxy": "dev-master"
    }
}
```

Now tell composer to download the library by running the command:

```
$ php composer.phar update mslib/resource-proxy
```

Composer will install the library to your project's `vendor/mslib/resource-proxy` directory.

### Step 2: Configure your sources

[](#step-2-configure-your-sources)

Now that the ResourceProxy library is available in your project (through composer, for example), you need to configure all required Sources that your application needs.

In order to do that, you have to create a PHP file containing an array with a given set of configuration keys and values. You will find here below the structure of such a file.

```
