Download the PHP package phpaml/data-mongodb without Composer

On this page you can find all versions of the php package phpaml/data-mongodb. 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 data-mongodb

PHPAML Data MongoDB

The official MongoDB adapter for PHPAML Data.

Status: 0.1.0-alpha.5. The in-memory and official transports are tested against MongoDB 8.2 running as a replica set.

PHPAML Data · Changelog

Why this adapter?

PHPAML Data MongoDB brings typed PHPAML entities and a familiar query workflow to MongoDB while preserving MongoDB-specific behavior. It does not pretend that a document database is relational SQL.

Install

In a PHPAML project:

In any Composer project:

The official transport requires ext-mongodb and mongodb/mongodb.

Five-minute example

Supported portable operators are =, !=, >, >=, <, <=, and in.

Identifier contracts

#[DocumentId] uses MongoDB ObjectId by default. PHPAML exposes it as a string in the entity and converts it for database operations. Use an explicit string contract when the identifier must remain textual:

Platform relationship

The adapter is discovered automatically when it is present in Composer's autoload. Use aml data:doctor to inspect the configured server and transaction capabilities.

Current scope

This alpha intentionally does not claim SQL feature parity. Public document relations, declarative indexes, document migrations, and aggregation pipelines remain future work. Server transactions require a compatible MongoDB topology, normally a replica set.

Tests

License

PHPAML Data MongoDB is open-source software licensed under the MIT License.


All versions of data-mongodb with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-mongodb Version *
phpaml/data Version ^0.1@alpha || ^0.2@alpha
mongodb/mongodb Version ^2.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 phpaml/data-mongodb contains the following files

Loading the files please wait ...