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

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

dneural/php-nullnude
====================

NullNude client for PHP

1.0.0(10y ago)0121MITPHPPHP &gt;=5.4.0

Since Feb 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/dneural/php-nullnude)[ Packagist](https://packagist.org/packages/dneural/php-nullnude)[ Docs](https://github.com/dneural/php-nullnude)[ RSS](/packages/dneural-php-nullnude/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PHP SDK for NullNude API
========================

[](#php-sdk-for-nullnude-api)

[![Build Status](https://camo.githubusercontent.com/76184bcd8f2f1bbc7bc24ae337f35f0687e88292093aa79e157d1f4a06400e31/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646e657572616c2f7068702d6e756c6c6e7564652f6d61737465722e737667)](https://travis-ci.org/dneural/php-nullnude)[![Latest Stable Version](https://camo.githubusercontent.com/405b9e6468fac7abf99658ffee32a16aa7cf233a2e545eabcff6d1d0887772d0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f4c6174657374253230537461626c652d312e302e302d626c75652e737667)](https://packagist.org/packages/dneural/php-nullnude)

This PHP SDK is a wrapper for our [NullNude API](https://nullnude.com), a nudity detection/moderation service.

Use the NullNude API to instantly moderate adult content in user-submitted photos.

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

[](#installation)

The NullNude PHP SDK can be installed with [Composer](https://getcomposer.org/).

```
php composer.phar require dneural/php-nullnude dev-master

```

or by adding the repository to your **composer.json** by hand:

```
{
    "require": {
        "dneural/php-nullnude": "dev-master"
    }
}
```

and then installing the SDK by running:

```
php composer.phar install

```

Check the `examples` directory to learn how to use the SDK effectivly.

Authenticate to NullNude API
----------------------------

[](#authenticate-to-nullnude-api)

Each **application** that uses NullNude API needs to be authenticated. For that reason you will have to register an account with us. It is a very easy process and can be done at this address:

Write down your api\_key and api\_secret and you're ready to go.

Checking for nudity, regions of interest.
-----------------------------------------

[](#checking-for-nudity-regions-of-interest)

Checking if images contain nudity in them is easy. Provide an URL or a local file path of the image you would like checked to one of the few methods that our API supports.

```
