Download the PHP package amitkolloldey/laravel-taggify without Composer

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

Laravel Taggify - Eloquent Tagging Package

This package will allow user to add Tagging system in the Laravel 7 application.

You can provide combination of string or id or model to create tags. It will check if a tag is already exists in the tags table. If not it will create a new tag and attach with the model. It also comes with some useful helpers and Scopes.

Composer Install

Run the migrations

Migrate The database tables

It will migrate tags , taggables tables

Setup your models

To creat a many to many polymorphic relation with your model and tags you need to use the Taggify trait.

Usage

To attach/create new tags it uses addTags method. This method takes an array containing models or id or name of the tags you want to attach to your model and of course you can all use combination of these.

Attaching or Creating tags

Or

The name will generate a unique slug for the tag and will increment the count column. The count column will represent how many times the tag's being used.

Detaching given tags

The remove tags will detach the given tags and decrement the count column.

Detaching all tags

It will detach all the tags associated with the model and decrement the count column.

Re tag

It will detach Previous Tags and attach Given Tags and decrement the count column.

Scopes

withAnyTag

Gets The Models Associated with Any Given Tags.

withAllTags

Finds The Models Where Given All Tags Are In Common.

popular

It will give the most popular tags based on count column.

unPopular

Gets Less Used Tags based on count column.

unUsed

Gets Unused Tags based on count column.

usedMoreThan

Return tags that are used more than given times based on count column.

usedLessThan

Return tags that are used less than given times based on count column.

Helpers

The package comes with 2 useful helpers, which you can use throughout your application.

popular_tags_by_model

Gets Popular Tags In A Specific Model.

popular_tags

Gets Popular Tags In All Models

Inverse Relation in Tag Model

use items() method and give a model

Inverse Polymorphic Between Tag and A Model.

You can also add inverse relationship by extending the AmitKD\LaravelTaggify\Models\Tag model

Credits


All versions of laravel-taggify with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
illuminate/database Version >= 5.0|^6.0|^7.0
illuminate/support Version >= 5.0|^6.0|^7.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 amitkolloldey/laravel-taggify contains the following files

Loading the files please wait ....