talaka / api-platform-mongodb-bundle
API Platform MongoDB Integration
Installs: 129
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 2
pkg:composer/talaka/api-platform-mongodb-bundle
Requires
- doctrine/mongodb-odm: ~1.1
- doctrine/mongodb-odm-bundle: ~3.0
- dunglas/api-bundle: ~1.1
This package is not auto-updated.
Last update: 2025-10-12 01:14:00 UTC
README
This bundle provides a simple integration of the Doctrine MongoDB into API Platform framework.
Installation
Install the latest version with
$ composer require talaka/api-platform-mongodb-bundle
Register the bundle in app/AppKernel.php
:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Talaka\APIPlatform\MongoDBBundle\TalakaAPIPlatformMongoDBBundle(), ); }
Configure
app/config/schema.yml
annotationGenerators: - Talaka\APIPlatform\MongoDBBundle\AnnotationGenerator\DoctrineMongoDBAnnotationGenerator namespaces: entity: AppBundle\Document # The default namespace for documents,
Usage
$ bin/schema generate-types src/ app/config/schema.yml
License
The TalakaAPIPlatformMongoDBBundle is licensed under the MIT license.