Skip to content

efiorello/api_generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

ApiGeneratorBundle

WARNING! Bundle now in development, not for use in production environment!

Latest Stable Version Total Downloads License

The ApiGeneratorBundle bundle allows you to generate JSON CRUD APIs for your doctrine entities, with json schemas derived from Doctrine Metadata, Annotations and the Symfony Validator component.

Documentation

For documentation, see:

Resources/doc/

Read the documentation

Installation

Install through composer:

First step: require bundle

composer require lube/api-generator-bundle

Second step: enable bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new JMS\AopBundle\JMSAopBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        new JMS\DiExtraBundle\JMSDiExtraBundle($this),

        new Knp\JsonSchemaBundle\KnpJsonSchemaBundle(),
        new HadesArchitect\JsonSchemaBundle\JsonSchemaBundle(),

        new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
        new Lube\GeneratorBundle\LubeGeneratorBundle(),
    );
}

Usage

$ app/console api:generate:json
$ app/console api:generate

API endpoints are now available, check the generated controllers and test the endpoints!

Contributing

See CONTRIBUTING file.

Credits

The design is heavily inspired by the Doctrine CRUD Generator.

This bundle relies on JMSSerializer, JMSDiExtraBundle, NelmioApiDocBundle, JsonSchemaBundle.

License

This bundle is released under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 69.3%
  • HTML 30.7%