bankiru / stash-tags
Stash\Item with tags support
Installs: 18 130
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
- fabpot/php-cs-fixer: ^1.11
- satooshi/php-coveralls: ^1.0
- tedivm/stash: ~0.14.0
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is not auto-updated.
Last update: 2022-11-09 06:19:14 UTC
README
Install
composer require bankiru/stash-tags
Usage
$pool = new Pool();
$pool->setItemClass('Bankiru\Stash\TaggedItem');
$item = $pool->getItem('my-key');
$item->setTags(['tag1', 'tag2']);
$item->save();
$item = $pool->getItem('my-key');
$tags = $item->getTags();
echo 'Tags: ', implode(',', $tags);