Download the PHP package wuwx/laravel-taxonomy without Composer

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

Laravel Taxonomy

tests

A Drupal-inspired taxonomy package for Laravel applications. It provides:

Installation

If you prefer manual setup:

Quick Start

Attach the HasTaxonomyTerms trait to a model:

Create a vocabulary and some terms:

Assign and query:

Taxonomies And Terms

Create a taxonomy (slug is auto-generated if omitted):

Create root and child terms:

Look up terms:

Slugs are auto-generated and unique — within the same taxonomy, duplicate names produce php, php-1, php-2, etc. Taxonomy slugs are globally unique.

If a taxonomy is not hierarchical, creating child terms will throw an InvalidArgumentException.

Assigning Terms To Models

String-based term resolution requires a taxonomy:

Pivot Data

Attach terms with extra pivot data (order and metadata columns):

Checking Attached Terms

Unknown terms resolve to false.

Querying Models By Terms

Multi-Taxonomy Filtering

Filter by multiple vocabularies at once — AND between vocabularies, OR within:

Translations

name and description are translatable via spatie/laravel-translatable:

Single-language usage works as before — just pass a plain string:

Working With Trees

Term uses kalnoy/nestedset internally, so all tree operations are single-query, not recursive.

Build tree structures for menus, navigation, or selects:

Events

All attach/detach/sync operations dispatch events:

Operation Event
attachTerm / attachTerms TermAttached
detachTerm / detachTerms / detachAllTerms TermDetached
syncTerms TermsSynced

TermsSynced also includes $event->changes with attached, detached, and updated arrays.

Artisan Commands

Configuration

The default config file is config/laravel-taxonomy.php:

Both Taxonomy and Term support Route Model Binding via slug by default.

Testing


All versions of laravel-taxonomy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/database Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.93
kalnoy/nestedset Version ^6.0
spatie/laravel-sluggable Version ^3.8
spatie/laravel-translatable Version ^6.11
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 wuwx/laravel-taxonomy contains the following files

Loading the files please wait ...