https://github.com/hettiger/keywordshandler
Handle strings and arrays of keywords for the purposes of storage in a database or output to a view.
https://github.com/hettiger/keywordshandler
Last synced: 10 months ago
JSON representation
Handle strings and arrays of keywords for the purposes of storage in a database or output to a view.
- Host: GitHub
- URL: https://github.com/hettiger/keywordshandler
- Owner: hettiger
- License: mit
- Created: 2013-06-03T19:18:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-04T11:03:19.000Z (about 13 years ago)
- Last Synced: 2025-03-29T20:11:54.913Z (about 1 year ago)
- Language: PHP
- Size: 110 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# keywordsHandler #
Handle strings and arrays of keywords for the purposes of storage in a database or output to a view.
## How to use ##
Simply require the app/KeywordsHandler.php file or autoload it with composers neat autoloader.
Once you've instantiated the class it provides easy access to all it's functions.
```
#!php
getSeparatedKeywords($keywordsString);
$tidyKeywords = $KeywordsHandler->getTidySeparatedKeywords($keywordsString);
$listTidyKeywords = $KeywordsHandler->getKeywordsString($tidyKeywords);
```
## Testing ##
You can test this Class, with PHPUnit by Sebastian Bergmann.
Just run composer install --dev and vendor/bin/phpunit