2017 © Pedro Peláez
 

library onehydra-bundle

Bundle to integrate Amara's OneHydra library with Symfony2

image

amara/onehydra-bundle

Bundle to integrate Amara's OneHydra library with Symfony2

  • Monday, January 8, 2018
  • by rossmotley
  • Repository
  • 7 Watchers
  • 1 Stars
  • 7,174 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 12 % Grown

The README.md

AmaraOneHydraBundle

Build Status Coverage Status, (*1)

Purpose

Bundle to integrate Amara's OneHydra library with Symfony2., (*2)

It's still in development so will change often., (*3)

Installation

Use composer:, (*4)

composer require amara/onehydra-bundle

Example usage

After enabling the bundle in your application, the minimal configuration for config.yml looks like:, (*5)

amara_one_hydra:
    is_uat: true
    programs:
        your_program_id:
            auth_token: authtoken1

After creating the table for the entity, you'll want to run the fetch command to populate them from the OneHydra API:, (*6)

app/console onehydra:fetch --all --programId=your_program_id

You will now be able to look up the OneHydra pages from your controllers etc., (*7)

// Get the entity from our system for the current request
$oneHydraPage = $this->get('amara_one_hydra.page_manager')->getPageByRequest($request);

if ($oneHydraPage) {
    // Get the PageInterface object which reflects what's on the OneHydra system 
    $page = $oneHydraPage->getPage();

    // Override what you want based on the content of page...
    $title = $page->getTitle();
}

Versioning

The library will be following Semantic Versioning, although we don't have a 1.0.0 release yet!, (*8)

http://semver.org/spec/v2.0.0.html, (*9)

The Versions

08/01 2018

dev-master

9999999-dev

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

08/01 2018

v1.0.0

1.0.0.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

05/01 2018

dev-doctrine-orm-1

dev-doctrine-orm-1

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

28/11 2017

v0.5.0

0.5.0.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

27/09 2017

v0.4.0

0.4.0.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

08/11 2016

v0.3.0

0.3.0.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

13/06 2016

v0.2.1

0.2.1.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley

13/06 2016

v0.2.0

0.2.0.0

Bundle to integrate Amara's OneHydra library with Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincenzo Trapani
by Ross Motley