2017 © Pedro PelĂĄez
 

symfony-bundle apihelper-bundle

Symfony3 Bundle - API short and fast usual render

image

sopinet/apihelper-bundle

Symfony3 Bundle - API short and fast usual render

  • Sunday, April 23, 2017
  • by Sopinet
  • Repository
  • 8 Watchers
  • 0 Stars
  • 348 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

Symfony2 Bundle - API short and fast usual render, (*1)

Installation

Composer

Write in terminal:, (*2)

composer require sopinet/apihelper-bundle "1.0"

AppKernel

Enable the Bundle, Add to Kernel:, (*3)

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Sopinet\ApiHelperBundle\SopinetApiHelperBundle(),
            new FOS\RestBundle\FOSRestBundle(),
            new JMS\SerializerBundle\JMSSerializerBundle(),
        );

        // ...
    }
}

Add to config

Configure FOSRestAPI:, (*4)

fos_rest:
    routing_loader:
        default_format: json

Bundle dependency

Remember, this bundle has another bundles dependency:, (*5)

https://github.com/schmittjoh/JMSSerializerBundle, (*6)

https://github.com/FriendsOfSymfony/FOSRestBundle, (*7)

Configuration about these bundles was included. If you have any problem with configuration, please, review official documentation about these bundles., (*8)

Use

use SopinetApiHelperBundle\Services\ApiHelper;
$apiHelper = $this->get('sopinet_apihelperbundle_apihelper');
...
return $apiHelper->responseOk();

TODO: More Documentation, (*9)

The Versions

23/04 2017

2.0.x-dev

2.0.9999999.9999999-dev

Symfony3 Bundle - API short and fast usual render

  Sources   Download

GPL2

The Requires

 

api bundle symfony3 sopinet

23/04 2017

2.0

2.0.0.0

Symfony3 Bundle - API short and fast usual render

  Sources   Download

GPL2

The Requires

 

api bundle symfony3 sopinet

09/08 2016

dev-master

9999999-dev

Symfony2 Bundle - API short and fast usual render

  Sources   Download

GPL2

The Requires

 

api symfony2 bundle sopinet

28/02 2016

1.0

1.0.0.0

Symfony2 Bundle - API short and fast usual render

  Sources   Download

GPL2

The Requires

 

api symfony2 bundle sopinet