An open API service indexing awesome lists of open source software.

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.

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