nass600/cosm-bundle

This bundle provides an integration with Cosm API

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2012-07-27 08:58 UTC

This package is not auto-updated.

Last update: 2024-12-07 13:17:42 UTC


README

The CosmBundle offers access to the cosm.com feed API either by using a PHP service or through the CLI for Symfony2. Is on charge of handle all the operations related to cosm feeds via the bundle CRUD interface.

Features include:

  • CRUD API for managing feeds
  • CLI commands for executing operations

What is Cosm?

Pachube is an web service provider allowing developers to connect their own data (energy and environment data from objects, devices & buildings) to the Web and to build their own applications on it.

For more information about the service, please visit: https://cosm.com

Installation

On Symfony 2.0.x:

Add CosmBundle to your vendor/bundles/ directory.

Add the following lines in your deps file:

    [Nass600CosmBundle]
      git =https://github.com/nass600/CosmBundle.git
      target=/bundles/Nass600/CosmBundle

Run the vendors script:

    ./bin/vendors update

Add the Nass600 namespace to your app/autoload.php:

<?php
    // app/autoload.php
    $loader->registerNamespaces(array(
        // your other namespaces
        'Nass600' => __DIR__.'/../vendor/bundles',
    );

Add CosmBundle to your app/AppKernel.php:

<?php
    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Nass600\CosmBundle\Nass600CosmBundle(),
        );
    }

On Symfony 2.1.x:

Add this line to your project's composer.json:

    "require": {
        // your other packages
        "nass600/cosm-bundle": "dev-master"
    },

Add CosmBundle to your app/AppKernel.php:

<?php
    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Nass600\CosmBundle\Nass600CosmBundle(),
        );
    }