Download the PHP package contenir/contenir-db-model without Composer

On this page you can find all versions of the php package contenir/contenir-db-model. 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 contenir-db-model

contenir-db-model

A small data mapper for php-db/phpdb. Entities are plain PHP classes with typed properties, described by attributes. There are no base classes and no magic __get/__set.

Status: 2.0 pre-release. 2.0 is a rewrite and is not compatible with 1.x. See UPGRADE-2.0.md. 1.x remains available from the v1.0.* tags.

Requirements

Installation

The latest development version is v2.x-dev. Until php-db/phpdb 0.6.0 and this package's 2.0.0 are tagged, the consuming project needs "minimum-stability": "dev" and "prefer-stable": true.

With laminas/laminas-component-installer, the ConfigProvider (Mezzio) or Module (laminas-mvc) is registered automatically. See container integration for configuration.

At a glance

Documentation

Read in this order:

  1. Mapping entities: attributes, keys, validation rules
  2. Type conversion: built-in and custom converters, nulls
  3. Persisting entities: EntityManager saves, deletes, locking and transactions
  4. Repositories and finders: criteria, streaming, custom queries and repositories
  5. Relations: lazy collections, LazyRelationsTrait, preload()
  6. Identity map: one object per row, and memory in long-running processes
  7. Entity lifecycle: hydration, refresh and change tracking in detail
  8. Sensitive data: SensitiveString and redaction
  9. Metadata caching: PSR-16 cache for production
  10. Container integration: configuration, factories, entity manager lifetime

Upgrading from 1.x: UPGRADE-2.0.md. Changes: CHANGELOG.md.

Console tools for generating entities from tables, upgrading 1.x entities and validating mappings against the schema are in contenir-db-model-tools.

llms.txt indexes these pages and lists the key rules for LLM tooling.

Development

Mago is required. It is a standalone binary, installed with brew install mago or see the Mago docs.

The integration suite runs against in-memory SQLite by default. To run it against MySQL or PostgreSQL, set DB_PLATFORM (and DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD as needed). compose.yml starts both databases:

Every test recreates the fixture schema, including a crm schema or database, so use a disposable database and a user allowed to create it. CI runs the suite on SQLite, MySQL 8.4 and PostgreSQL 17.

test-coverage-branches runs each test directory in its own process and merges the results, because Xdebug 3.4's --path-coverage intermittently crashes on long runs. Pass -- --clover clover.xml or -- --html build/coverage for report files.

QA configuration comes from php-db/phpdb-qa-tools.

License

BSD-3-Clause. See LICENSE.md.


All versions of contenir-db-model with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0 || ~8.4.0 || ~8.5.0
php-db/phpdb Version 0.6.x-dev
psr/container Version ^1.1 || ^2.0
psr/simple-cache Version ^1.0 || ^2.0 || ^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 contenir/contenir-db-model contains the following files

Loading the files please wait ...