PHPackages                             nv/semtools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nv/semtools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nv/semtools
===========

A tool for classifying and enriching English language text based on publicly available semantic API services.

0.0.4(11y ago)250[1 issues](https://github.com/strackovski/semtools/issues)MITPHPPHP &gt;=5.3.3

Since Aug 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/strackovski/semtools)[ Packagist](https://packagist.org/packages/nv/semtools)[ Docs](http://www.nv3.org/semtools)[ RSS](/packages/nv-semtools/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

semtools: toolbox for content classification and enrichment
===========================================================

[](#semtools-toolbox-for-content-classification-and-enrichment)

Provides read access wrappers to public semantic API services. Version 0.0.4 supports classification using the uClassify.com service and annotation (enrichment) using Reuters OpenCalais API.

Visit [OpenCalais](http://www.opencalais.com) and [uClassify](http://www.uclassify.com)homepages for more information about their services and to obtain an API key.

Features
--------

[](#features)

- uClassify API reader enables use of all available public classifiers.
- OpenCalais API reader enables use of the powerful enrichment service from Reuters.

How-to &amp; Examples
---------------------

[](#how-to--examples)

Below is a basic example, also available in examples/index.php file. For detailed options, please see the [API documentation](http://www.nv3.org/semtools/api).

### Classification

[](#classification)

```
use nv\semtools\Classifiers\uClassify;

header('Content-type: text/xml');

// Instantiate the reader with your API key (provided by uClassify)
$classifier = new uClassify\UclassifyReader('YOUR_API_KEY');

// Create a new request with the text to be classified and the classifier to use
$classifierRequest = new uClassify\UclassifyRequest(
    'My happy text',
    'prfekt/Myers Briggs Attitude'
);

// Execute and return the request
$classifierResponse = $classifier->read($classifierRequest);
echo $classifierResponse->getResponse();
```

Prints:

```

```

### Annotation

[](#annotation)

```
use nv\semtools\Annotators\OpenCalais;

// The content to process
$content = '';
// Instantiate a new annotator instance with your API key (provided by OpenCalais)
$annotator = new OpenCalais\OpenCalaisReader('YOUR_API_KEY');

// Create a new request with passing the content as parameter
$annotatorRequest = new OpenCalais\OpenCalaisRequest($content);

// Execute request, recieve response
$annotatorResponse = $annotator->read($annotatorRequest);

// To get the raw response
$annotatorResponse->getResponse();

// To get the response parsed to php array
print_r($annotatorResponse->getEntities());
```

Prints:

```
...
```

Check out [OpenCalais homepage](http://www.opencalais.com) for details on different response formats.

License
-------

[](#license)

Copyright 2014 Vladimir Stračkovski. MIT license. For more information please see the license file included in this project.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4296d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3004245?v=4)[Vlado Stračkovski](/maintainers/strackovski)[@strackovski](https://github.com/strackovski)

---

Top Contributors

[![strackovski](https://avatars.githubusercontent.com/u/3004245?v=4)](https://github.com/strackovski "strackovski (31 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nv-semtools/health.svg)

```
[![Health](https://phpackages.com/badges/nv-semtools/health.svg)](https://phpackages.com/packages/nv-semtools)
```

###  Alternatives

[barracudanetworks/forkdaemon-php

A library to make setup and management of forking daemons in PHP easy.

3863.8k2](/packages/barracudanetworks-forkdaemon-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
