skqr / hateoas-bundle
GOintegro HATEOAS Bundle
Requires
- php: >=5.4.0
- doctrine/doctrine-bundle: *
- doctrine/orm: *
- skqr/hateoas: *
- symfony/doctrine-bridge: *
- symfony/framework-bundle: *
- symfony/monolog-bundle: *
Requires (Dev)
- codeception/codeception: 2.2.*
- codeclimate/php-test-reporter: dev-master
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: *
- dev-develop
- v0.10.10
- v0.10.9
- v0.10.8
- v0.10.7
- v0.10.6
- v0.10.5
- v0.10.4
- v0.10.3
- v0.10.2
- v0.10.1
- 0.10.0
- dev-master / 0.9.x-dev
- v0.9.22
- v0.9.21
- v0.9.20
- v0.9.19
- v0.9.18
- v0.9.17
- v0.9.16
- v0.9.15
- v0.9.14
- v0.9.13
- v0.9.12
- v0.9.11
- v0.9.10
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- dev-feature/split-lib
- dev-feature/api-21-open-source
This package is not auto-updated.
Last update: 2026-03-16 14:27:59 UTC
README
This is a Symfony 2 bundle for the GOintegro HATEOAS lib that uses a Doctrine 2 entity map and a RAML API definition to conjure a HATEOAS API, following the JSON-API specification.
You don't get scaffolds. You get a working API.
You get a working API with features sweeter than a Bobcat's self-esteem.
Try it out
Check out the example app project, so you can feel the magic in your finger tips without much ado.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require skqr/hateoas-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new GoIntegro\Bundle\HateoasBundle\GoIntegroHateoasBundle(),
);
}
}
?>
Step 3: Add these parameters
# app/config/parameters.yml
# HATEOAS API
api.base_url: "http://api.gointegro.com"
api.url_path: "/api/v2"
api.resource_class_path: "Rest2/Resource"
Step 4: Add these routes
# app/config/routing.yml
# Place it underneath it all - it contains a catch-all route.
go_integro_hateoas:
resource: "@GoIntegroHateoasBundle/Resources/config/routing.yml"
prefix: /api/v2
Usage
Check out the library docs for more info.