Download the PHP package zaichaopan/taggable without Composer

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

Taggable

This Package is used to make eloquent model taggable. It can be used in laravel 5.5 or higher.

Installation

Usage

After you install the package, run migration command to add tags and taggables table

The schemas of these two tables

This packages also provides Tag and Taggable models.

Note:

Please make sure tag name is unique. After you create or update a tag, its slug value will be automatically added or updated based on its name value.

Let's say you have Activity model and you can give it tag.

The hasTags trait provides the following methods to the model which uses it

tags:

It is used to get all the tags of the model:

tag:

Note:

The tag name provided must be valid (exists in the tags table). If a tag name is invalid, it will be ignored. If a tag has already been given to a model, it will not be given again.

reTag:

It is used to update a model's tag. After calling this method on a model, all its old tags will be moved and only the new tag will remain. If the tag name provided is invalid, it will be ignored. If all the provided tag names are invalid, the model will not be retagged. It will still keep its old tags.

unTag:

It is used to remove a tag or multiple tags from a model. If a given tag name is invalid, it will be ignore. If all the given tag names are invalid, none of the model's tags will be removed.

unTagAll:

It is used to removed all the tags of the model.


All versions of taggable with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version ~5.5.0|~5.6.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 zaichaopan/taggable contains the following files

Loading the files please wait ...