Download the PHP package coolms/taxonomy-doctrine without Composer

On this page you can find all versions of the php package coolms/taxonomy-doctrine. 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 taxonomy-doctrine

coolms/taxonomy-doctrine

The Doctrine half of the taxonomy family: XML mapping for the two entities, and the repository implementations behind the domain's contracts.

Why the mapping is XML

coolms/taxonomy must not import the ORM, so the mapping cannot live beside the entities. It ships here instead, as src/mapping/*.orm.xml, and a consuming application points Doctrine at it:

⚠️ is_bundle must be false. With it true, dir resolves against the bundle directory rather than the path you wrote, and the failure is a non-existent-directory error at cache build - after the autoloader has happily reported every class as loadable. Loading is not mapping.

coolms/taxonomy-bundle does this for you.

What the mapping declares, and what it does not

It declares each entity's own columns and associations. id, label, createdAt, updatedAt and accessedAt are deliberately absent: they come from IdentifierProviderTrait, LabelProviderTrait and TimestampableTrait, whose CoolMS\Core\Mapping attributes TraitMappingDriver translates earlier in the driver chain.

⚠️ Do not re-declare a trait column here. The trait is its single source of truth, and a second declaration makes a trait-level change a silent per-entity divergence. In the sibling field package that mistake dropped a column default and surfaced as one line of schema drift.

If you add an entity under CoolMS\Taxonomy\Entity with no matching .orm.xml, the driver simply does not map it and nothing reports it - the class just never becomes an entity. Add the mapping in the same change as the class.

The discriminator map names only the parent

TaxonomyNode.orm.xml maps taxonomy_node to TaxonomyNode and nothing else. Subclasses register themselves through #[DiscriminatorValue]; see coolms/taxonomy. Adding a consumer's class to this file makes the package unpublishable.

Repositories

Repository\TaxonomyNodeRepository and Repository\TaxonomyTreeRepository extend CoolMS\Core\Doctrine\Repository\DoctrineRepository and implement the domain interfaces. They are not auto-discovered by a consuming application's service scan - coolms/taxonomy-bundle registers and aliases them.

Requires

coolms/core, coolms/core-doctrine, coolms/entity, coolms/taxonomy, coolms/rql, coolms/rql-doctrine (^1.0.1 - the namespace moved inside ^1.0), doctrine/orm, doctrine/persistence, symfony/dependency-injection.


All versions of taxonomy-doctrine with dependencies

PHP Build Version
Package Version
Requires coolms/core Version ^2.0
coolms/core-doctrine Version ^2.0
coolms/entity Version ^2.0.0-alpha3
coolms/rql Version ^1.0
coolms/rql-doctrine Version ^1.0.1
coolms/taxonomy Version ^2.0
doctrine/orm Version ^3.3
doctrine/persistence Version ^4.0
php Version ^8.5
symfony/dependency-injection Version ^8.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 coolms/taxonomy-doctrine contains the following files

Loading the files please wait ...