PHPackages                             textmod/textmod-php - 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. textmod/textmod-php

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

textmod/textmod-php
===================

TextMod - php sdk

8.0.2(2y ago)027MITPHPPHP ^8.0

Since May 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/textmod/textmod-php)[ Packagist](https://packagist.org/packages/textmod/textmod-php)[ RSS](/packages/textmod-textmod-php/feed)WikiDiscussions php8 Synced 1mo ago

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

TextMod SDK for PHP
===================

[](#textmod-sdk-for-php)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![codecov](https://camo.githubusercontent.com/abec74d1acfc7de87bd670852e4ffd45f34be86a0a3df71489fefdbdce6b9e25/68747470733a2f2f636f6465636f762e696f2f67682f746578746d6f642f746578746d6f642d7068702f6272616e63682f706870382f67726170682f62616467652e7376673f746f6b656e3d4a4369377a614e524876)](https://codecov.io/gh/textmod/textmod-php)

This is an SDK for the [TextMod API](https://textmod.xyz/) that allows you to easily moderate text content for various sentiments such as spam, hate, and pornography.

Installation
------------

[](#installation)

To use the TextMod SDK for PHP, you can add it as a dependency in your `composer.json` file:

```
{
    "require": {
        "textmod/textmod-php": "^8.0"
    }
}
```

Then, run `composer install` to install the SDK.

Usage
-----

[](#usage)

To use the TextMod SDK, you'll need an API authentication token from the [TextMod website](https://textmod.xyz). Once you have that, you can create an instance of the `TextMod` class:

```
