Download the PHP package bridn/taxonomy without Composer

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

CakePHP 3.x Taxonomy Plugin

Simple Taxonomy Plugin, you will be able to add tags or categories etc. to your entity.

Requirements

1 - First, use Migrations plugin to create tables

cd to your app path
src/Console/cake migrations migrate -p Taxonomy

More information about Migrations at : http://github.com/cakephp/migrations

2 - Load the Taxonomy plugin (app/config/bootstrap.php)

Plugin::load('Taxonomy', ['bootstrap' => false, 'routes' => true]);

3 - Add behaviors to your Table model :

public function initialize(array $config)
{
    $this->addBehavior('Taxonomy.TaxonomySync');
    $this->addBehavior('Taxonomy.TaxonomyFinder');
}

The Taxonomy plugin use polymorph associations, it is automatically associated to your model.

4 - Use the TaxonomyHelper to add tags to your content.

Add the helper to your content controller.

public $helpers = ['Taxonomy.Taxonomy'];

After each query on your content, the plugin will return an object and an array of terms attached to your content. The first parameter 'tag' will be used to group your terms in DB (don't translate this), the second must include your entity object, the third is an array of cakephp form params (label, row etc.) e.g. for a french form :

<?= $this->Taxonomy->input('tag', $article, ['label' => __d('Taxonomy', 'Mots clés')]) ?>
<?= $this->Taxonomy->input('category', $article, ['label' => __d('Taxonomy', 'Categorie')]) ?>

5 - Queries in controller

To return all terms by table and type (articles controller) :

$articles = $this->{$this->name}->find('all');
$categories = $this->{$this->name}->listAllTermsByType('category');
$this->set(compact('articles', 'categories'));

Or

To return all relationships used by a table for a given term id (articles controller):

$categories = $this->{$this->name}->listAllByTableAndByTerm($id);
$this->set(compact('categories'));

6 - Note

Separate your words with ";"


All versions of taxonomy with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.19
cakephp/cakephp Version 3.0.x-dev
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 bridn/taxonomy contains the following files

Loading the files please wait ....