PHPackages                             zf3belcebur/doctrine-orm-fast-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zf3belcebur/doctrine-orm-fast-api

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

zf3belcebur/doctrine-orm-fast-api
=================================

Quickly create an automatic API CRUD with your Doctrine ORM connection

v1.0.2(6y ago)049Apache-2.0PHPPHP ^7.1

Since Sep 4Pushed 6y agoCompare

[ Source](https://github.com/Belcebur/zf3belcebur-doctrine-orm-fast-api)[ Packagist](https://packagist.org/packages/zf3belcebur/doctrine-orm-fast-api)[ RSS](/packages/zf3belcebur-doctrine-orm-fast-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

zf3belcebur-doctrine-orm-fast-api
=================================

[](#zf3belcebur-doctrine-orm-fast-api)

Quickly create an automatic API CRUD with your Doctrine ORM connection

See
---

[](#see)

-

Installation
------------

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
composer require zf3belcebur/doctrine-orm-fast-api
```

Then add `ZF3Belcebur\DoctrineORMFastApi` to your `config/application.config.php`

How to use?
-----------

[](#how-to-use)

`ZF3Belcebur\DoctrineORMFastApi\Controller\IndexController` extends `AbstractRestfulController` and provide the automatic code to all methods.

- All views return a JsonModel

### Config your custom route, by default /bapi

[](#config-your-custom-route-by-default-bapi)

```
 [
    return [
        ...other configs
        'ZF3Belcebur\DoctrineORMFastApi' => [
            'route' => [
                'bapi' => [
                    'type' => \Zend\Router\Http\Literal::class,
                    'options' => [
                        'route' => '/my-custom-url',
                    ],
                ],
            ],
        ],
    ];
]
```

#### Get available api's

[](#get-available-apis)

- go to url `/bapi`

#### get list

[](#get-list)

- go to url `/bapi/entity-name`

#### get list

[](#get-list-1)

- get EntityManager or Paginator Object from route params

```
