Download the PHP package estgroupe/laravel-taggable without Composer

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

Laravel Taggable

Introduction

Tag support for Laravel Eloquent models using Taggable Trait.

This project extends rtconner/laravel-tagging , add the following feature specially for Chinese User:

Notice: This projcet only tested and intended only support 5.1 LTS.

:heart: This project is maintained by @Summer, member of The EST Group.

中文文档和讨论请见这里:https://phphub.org/topics/2123

Baum Nested Sets

Integarated etrepat/baum, what is Nested Sets?

A nested set is a smart way to implement an ordered tree that allows for fast, non-recursive queries. For example, you can fetch all descendants of a node in a single query, no matter how deep the tree.

Please refer the Official Project for more advance usage - etrepat/baum

Tag name rules

Tag name normalizer:$normalize_string = EstGroupe\Taggable\Util::tagName($name)

Installation:

Composer install package

Config and Migration

Change providers array at config/app.php:

Please take a close look at file: config/taggable.php

Create your own Tag.php

It's optional but suggested to use your own Tag Model:

Change config/taggable.php file:

Adding Taggable Trait

is_tagged Label

Taggable can keep track of the model Tagged Status:

First modify config/taggable.php

Add is_tagged filed to you model Migration file:

Suggesting tags

Suggesting is a small little feature you could use if you wanted to have "suggested" tags that stand out.

There is not much to it. You simply set the 'suggest' field in the database to true

And then you can fetch a list of suggested tags when you need it.

Rewrite Util class?

How do I override the Util class?

You'll need to create your own service provider. It should look something like this.

Notice: Where MyNewUtilClass is a class you have written. Your new Util class obviously needs to implement the EstGroupe\Taggable\Contracts\TaggingUtility interface.

Usage

EstGroupe\Taggable\Model\Tag has the following functions:

Tagging events

Taggable trait offer you two events:

You can listen to it as you want:

Unit testing

Common usage are tested at tests/CommonUsageTest.php file.

Running test:

Thanks


All versions of laravel-taggable with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/database Version >= 5.0
illuminate/support Version >= 5.0
baum/baum Version ~1.1
overtrue/pinyin Version ~3.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 estgroupe/laravel-taggable contains the following files

Loading the files please wait ....