Download the PHP package idct/sonata-admin-mongodb-bundle without Composer

On this page you can find all versions of the php package idct/sonata-admin-mongodb-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 sonata-admin-mongodb-bundle

idct/sonata-admin-mongodb-bundle

Doctrine MongoDB ODM persistence backend for Sonata Admin โ€” full CRUD, filtering, sorting, pagination, exports and ACL management for MongoDB documents, the same way sonata-project/doctrine-orm-admin-bundle provides it for relational databases.

Latest Stable Version PHP Symfony Doctrine MongoDB ODM Sonata Admin

codecov Test Quality assurance Lint Symfony Lint Documentation


๐Ÿšจ This is a HARD FORK

idct/sonata-admin-mongodb-bundle is a hard fork of sonata-project/doctrine-mongodb-admin-bundle, not a soft fork or a temporary patch:

If you need exact upstream behaviour, stay on sonata-project/doctrine-mongodb-admin-bundle. If you want a modernised base on PHP 8.4+ / Symfony 7.4+ and don't mind moving with us, this is the right place.

The MIT license, Thomas Rabaix's original copyright, and every upstream contributor's attribution are preserved โ€” see LICENSE and the 74-entry author roster in composer.json.


What this bundle does

Installs next to sonata-project/admin-bundle and provides every persistence-layer concern Sonata Admin needs in order to drive an admin UI against a MongoDB collection:

If Sonata Admin can do it for SQL via the ORM bundle, this bundle is the piece that lets you do the same for MongoDB.


Requirements

Floor Tested up to
PHP 8.4 8.5
Symfony 7.4 8.0
Sonata Admin Bundle 4.39 latest 4.x
Doctrine MongoDB ODM 2.6 latest 2.x
Doctrine MongoDB ODM Bundle 5.0 latest 5.x
Doctrine Persistence 4.0 latest 4.x
MongoDB server 4.0+ 7.x

Both PHP 8.4 and PHP 8.5 are supported and exercised in CI. Symfony 7.4 (the current LTS) and 8.0 are the only supported Symfony lines.


Installation

Prerequisites

You should already have a Symfony 7.4+ application with Sonata Admin Bundle and Doctrine MongoDB ODM Bundle installed โ€” this bundle is the glue between them, not a replacement for either.

Install

Symfony Flex registers the bundle automatically. If you're not using Flex, add it to config/bundles.php manually:

Declare an admin

Tag any Sonata Admin service with manager_type: doctrine_mongodb and Sonata will resolve it through this bundle's implementations:

Optional bundle config

The bundle ships sane defaults; the only config tree it owns is per-type template overrides for list and show columns:


Testing

The test suite has three layers:

  1. Pure unit tests โ€” fast, no external services. Mock Sonata interfaces and exercise our classes in isolation. Most of tests/Builder/, tests/Filter/, tests/FieldDescription/.
  2. Component tests โ€” build an in-memory DocumentManager against a real MongoDB server, persist fixtures, exercise full flows. PagerTest, ProxyQueryTest, ModelManagerTest's integration cases, ObjectAclManipulatorTest.
  3. Functional tests โ€” boot the test kernel (tests/App/AppKernel.php) and drive a real Sonata admin in a real browser via Symfony Panther. tests/Functional/.

Layers 2 and 3 need a MongoDB server. Layer 3 additionally needs a Firefox WebDriver.

Quick start (recommended)

docker-compose.yml brings up:

Selenium also exposes noVNC at http://127.0.0.1:7900 (password secret) if you want to watch the browser drive the suite.

Running individual layers

Local without docker

If you already have MongoDB and a non-snap Firefox + geckodriver on your PATH, leave PANTHER_SELENIUM_HOST unset:

Panther will start its own Firefox process. This is the path GitHub Actions uses โ€” see .github/workflows/test.yaml.

Quality gates

The CI workflow runs four gates; matching commands run locally as:

All four must be green before a change can land โ€” see AGENTS.md ยง7 for the definition of done.


Documentation

For the public API and configuration shape, upstream Sonata's documentation applies as-is: docs.sonata-project.org/projects/SonataDoctrineMongoDBAdminBundle.

Fork-specific material:


Support

For bugs or feature ideas in this fork, open an issue on the fork's repository.

For general Sonata Admin questions, the upstream StackOverflow tag remains the best place.


License

composer.json.


All versions of sonata-admin-mongodb-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-mongodb Version *
doctrine/collections Version ^2.0
doctrine/mongodb-odm Version ^2.6
doctrine/mongodb-odm-bundle Version ^5.0
doctrine/persistence Version ^4.0
sonata-project/admin-bundle Version ^4.39
sonata-project/exporter Version ^3.0
sonata-project/form-extensions Version ^2.0
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/doctrine-bridge Version ^7.4 || ^8.0
symfony/form Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/property-access Version ^7.4 || ^8.0
twig/twig Version ^3.0
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 idct/sonata-admin-mongodb-bundle contains the following files

Loading the files please wait ...