Download the PHP package icap-lyon1/simple-tag-bundle without Composer

On this page you can find all versions of the php package icap-lyon1/simple-tag-bundle. 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 simple-tag-bundle

SimpleTagBundle

Symfony2 bundle to easily manage tags with any entity.

Installation

To install this bundle please follow the next steps:

First add the dependency in your composer.json file:

Then install the bundle with the command:

Enable the bundle in your application kernel:

Then update your database schema:

Then install the bundle assets:

Finally include the bundle configuration file in your app configuration file:

Now the Bundle is installed.

How to use

In order to add tags to an entity, the entity has to implements TaggableInterface example:

Then when you wish to associate an entity with a tag, simply call the icaplyon1_simpletag.manager service to create a form and process it as explained below:

To save and associate the tags with your entity, call the processForm function like this:

The processForm($form) method will retrieve the input tags, add new (not already associated) tags and remove associated tags that are not included in the input list

Functions of icaplyon1_simpletag.manager


Associate tags

if you want to associate a tag with your entity:

if you want to associate multiple tags with your entity:

Dissociate tags

if you want to dissociate a tag from your entity:

if you want to dissociate multiple tags from your entity:

Remove all tags from an entity

if you want to remove all tags from your entity (DO THIS WHEN YOU ARE DELETING YOUR ENTITY IN ORDER TO AVOID KEEPING RUBBISH IN YOUR DATABASE):

example in method:

Get tags

In your manager (php)

To get all tags for your entity:

In a twig template

To get the tags associated to an object a twig extension has been created, use it as follows:

Get all stored tags

You can get all stored tags to use them for example for autocomplete

Using php

Using twig


All versions of simple-tag-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version >=2.1,<2.3-dev
twig/twig Version *
doctrine/doctrine-bundle Version *
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 icap-lyon1/simple-tag-bundle contains the following files

Loading the files please wait ....