Download the PHP package coolms/taxonomy without Composer

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

coolms/taxonomy

Taxonomy trees and the nodes inside them: entities, repository contracts and the tree service. This is the domain half of the family and it depends on no framework.

What is in it

Entity\TaxonomyTree a named tree, addressed by a unique code
Entity\TaxonomyNode a node in one tree, addressed by a unique slug
Repository\*Interface the two contracts a persistence adapter implements
Service\TaxonomyTreeService move, reparent and read a subtree

Nodes form a nested set: lft, rgt and level are maintained by the tree service, and every subtree read is a range scan over them rather than a recursive walk. TaxonomyNode implements NestedSetNodeInterface from coolms/core, which is where the traversal itself lives.

It carries no Doctrine attributes

Deliberately, and it is the reason coolms/taxonomy-doctrine exists. The entities are plain classes; the ORM mapping is XML shipped beside the Doctrine adapters. Install this package alone and nothing pulls the ORM in.

The one attribute you will find is #[DiscriminatorValue], which is CoolMS's own and not Doctrine's. It is what lets a consumer subclass a node.

Subclassing a node across a package boundary

TaxonomyNode is the root of a JOINED inheritance and its discriminator map names only itself. A subclass registers itself:

CoolMS\Entity\Doctrine\Event\DiscriminatorValueSubscriber reads that attribute at loadClassMetadata and adds the child to the root's map.

⚠️ Do not add your class to this package's discriminator map. It reads as an obviously incomplete map and completing it is the edit that breaks the package: a published package cannot name a class from your application, and any consumer installing it without your code fatals on the map. The parent is not supposed to know its children.

The slug shape is part of the contract

TaxonomyNode::SLUG_PATTERN is a lowercase letter followed by lowercase letters, digits or hyphens. It is deliberately the entity-alias shape, so a node's slug is a valid entity alias by construction and a consumer that subclasses nodes into entity types needs no translation step.

Requires

coolms/core, coolms/entity, coolms/entity-doctrine (for the discriminator attribute), coolms/rql, doctrine/collections, symfony/uid.

Family


All versions of taxonomy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
coolms/core Version ^2.0
coolms/entity Version ^2.0.0-alpha3
coolms/rql Version ^1.0
doctrine/collections Version ^2.2
symfony/uid 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 contains the following files

Loading the files please wait ...