2017 © Pedro Peláez
 

symfony-bundle redisbrowser-bundle

Provides a Redis-Data Browser

image

filth/redisbrowser-bundle

Provides a Redis-Data Browser

  • Friday, March 20, 2015
  • by filth
  • Repository
  • 2 Watchers
  • 4 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

RedisBrowserBundle

Symfony2 - Browser for the Redis key-value storage., (*1)

demo demo, (*2)

Installation

Step 1: Download the 'FilthRedisBrowserBundle'

Ultimately, the FilthRedisBrowserBundle files should be downloaded to the 'vendor/bundles/Filth/RedisBrowserBundle' directory., (*3)

You can accomplish this several ways, depending on your personal preference. The first method is the standard Symfony2 method., (*4)

Using the vendors script, (*5)

Add the following lines to your deps file:, (*6)

    [FilthRedisBrowserBundle]
        git=https://github.com/filthz/RedisBrowserBundle.git
        target=/bundles/Filth/RedisBrowserBundle

Now, run the vendors script to download the bundle:, (*7)

``` bash $ php bin/vendors install, (*8)


***Using submodules*** If you prefer instead to use git submodules, then run the following: ``` bash $ git submodule add git://github.com/filthz/RedisBrowserBundle.git vendor/bundles/Filth/RedisBrowserBundle $ git submodule update --init

Step 2: Configure the Autoloader

Now you will need to add the Filth namespace to your autoloader:, (*9)

``` php <?php // app/autoload.php, (*10)

$loader->registerNamspaces(array( // ... 'Filth' => DIR.'/../vendor/bundles', ));, (*11)

### Step 3: Enable the bundle

Finally, enable the bundle in the kernel:

```php
<?php
// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Filth\RedisBrowserBundle\FilthRedisBrowserBundle(),
    );
}

Step 4: Add Routing

// app/routing.yml

_filth_redis_browser_index:
    pattern:  /redis
    defaults: { _controller: FilthRedisBrowserBundle:RedisBrowser:index }

_filth_redis_browser_show:
    pattern:  /redis/{key}/{clientid}/show
    defaults: { _controller: FilthRedisBrowserBundle:RedisBrowser:show }
````    

You can adapt the routing to suit your needs.

### Step 5: Register redis Clients

Now you need to make the 'FilthRedisBrowserBundle' know, which Redis Clients it should monitor.

```yml
// app/config.yml

filth_redis_browser:
   clients:
       - { alias: snc_redis.default_client }

Alias is the name of the service, where the Redis client is avaible. The bundle will make a call to this service and work with the client from that., (*12)

We are done! Open /redis url in your browser and enjoy., (*13)

The Versions

20/03 2015

dev-master

9999999-dev https://github.com/filthz/RedisBrowserBundle

Provides a Redis-Data Browser

  Sources   Download

MIT

The Requires

 

by Avatar filth

redis symfony2 bundle object oo filth