PHPackages                             tbn/apigenerator-bundle - 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. [API Development](/categories/api)
4. /
5. tbn/apigenerator-bundle

AbandonedArchivedLibrary[API Development](/categories/api)

tbn/apigenerator-bundle
=======================

Get an ajax crud api out of the box

1439PHP

Since Jan 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/thomasbeaujean/ApiGenerator)[ Packagist](https://packagist.org/packages/tbn/apigenerator-bundle)[ RSS](/packages/tbn-apigenerator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

/!\\ DEPRECATED
===============

[](#-deprecated)

This bundle is not maintained anymore, if you are looking for an API out of the box, please check

Installation
============

[](#installation)

```
	composer require "tbn/apigenerator-bundle"

```

Enable the bundle in the AppKernel for the dev environment
----------------------------------------------------------

[](#enable-the-bundle-in-the-appkernel-for-the-dev-environment)

```
	...
	new tbn\ApiGeneratorBundle\ApiGeneratorBundle();
   ...

```

Add routing
-----------

[](#add-routing)

```
	tbn_api_generator:
	    resource: "@ApiGeneratorBundle/Resources/config/routing.yml"

```

Add routing for development environment
---------------------------------------

[](#add-routing-for-development-environment)

```
	tbn_api_generator_dev:
	    resource: "@ApiGeneratorBundle/Resources/config/routing_dev.yml"

```

Configuration
=============

[](#configuration)

```
	api_generator:
	    default: #The default behaviour for all entities
	        create: false #optionnal
	        update: false #optionnal
	        delete: false #optionnal
	        get_one: false      #optionnal #get one entity (only foreign keys are sent)
	        get_one_deep: false #optionnal #get one entity but the foreign entities are completed normalized too
	        get_all: false      #optionnal #get all entities
	        get_all_deep: false #optionnal #get all entities but the foreign entities are completed normalized too
	    entity:  #Specify the rights for specific entities
                    user: #the entity alias
                        class: "FrontBundle\\Entity\\SomeEntity" #mandatory
	            create: true  #optionnal
	            update: false #optionnal
	            delete: true  #optionnal
	            get_one: true #optionnal
	            get_one_deep: true #optionnal
	            get_all: true #optionnal
	            get_all_deep: true #optionnal

```

Usage
=====

[](#usage)

Go to the url:

```
	htpp://your_app/_apigenerator-configuration

```

It displays the entities and the rights associated for the Api Generator

TODO
====

[](#todo)

Persist OneToMany collections

Remove entities

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ea8a2617988a793aef214fa41de59c562bd141343046102e6bf87d6db4cc354?d=identicon)[thomasbeaujean](/maintainers/thomasbeaujean)

---

Top Contributors

[![thomasbeaujean](https://avatars.githubusercontent.com/u/5817919?v=4)](https://github.com/thomasbeaujean "thomasbeaujean (3 commits)")

### Embed Badge

![Health badge](/badges/tbn-apigenerator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tbn-apigenerator-bundle/health.svg)](https://phpackages.com/packages/tbn-apigenerator-bundle)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
