Download the PHP package doctrine/mongodb-maker-bundle without Composer

On this page you can find all versions of the php package doctrine/mongodb-maker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mongodb-maker-bundle

Doctrine MongoDB MakerBundle

A Symfony MakerBundle extension to generate MongoDB ODM code.

Description

The MongoDB MakerBundle extends Symfony's MakerBundle to provide code generators tailored for MongoDB Object Document Mapper (ODM). It streamlines the process of creating MongoDB documents, repositories, and fixtures within your Symfony application.

This bundle integrates seamlessly with:

Installation

Install the bundle via Composer:

Then, register the bundle in your config/bundles.php:

Usage

Once installed, the bundle provides Maker commands to generate MongoDB-specific code.

Available Commands

Run php bin/console list make to see all available makers:

The MongoDB MakerBundle provides the following commands:

Examples

Create a MongoDB Document

Generate a new MongoDB document with properties:

Follow the interactive prompts. Example output:

This generates a Product document class in src/Document/Product.php:

You can also add relations (ReferenceOne, ReferenceMany, EmbedOne, EmbedMany) between documents by entering relation as the field type and following the prompts.

Running make:document again on an existing document lets you add more fields to it.

Add an Index to a Document

Add a regular, unique, or search index to an existing document:

Follow the interactive prompts to select the document, the index type, and the fields to index. After adding an index, remember to run:

to create the index in the database.

License

The MongoDB MakerBundle is licensed under the MIT License. See the LICENSE file for details.

Support

For issues, feature requests, or questions, please open an issue on the GitHub repository or reach out to the Doctrine community.


All versions of mongodb-maker-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-mongodb Version ^2.1
doctrine/mongodb-odm Version ^2.16
doctrine/mongodb-odm-bundle Version ^5.6
symfony/http-kernel Version ^7.4|^8
symfony/maker-bundle Version ^1.67
symfony/polyfill-php85 Version ^1.33
symfony/uid Version ^7.4|^8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package doctrine/mongodb-maker-bundle contains the following files

Loading the files please wait ...