@@ -18,7 +18,7 @@ composer require sightengine/client-php
1818
1919You will need your API USER and API SECRET to initialize the client. You can find both of them on your Sightengine account.
2020``` php
21- require __DIR__ . '/vendor/autoload.php' ;
21+ use Sightengine\SightenginClient ;
2222
2323$client = new SightengineClient('{api_user}', '{api_secret}');
2424```
@@ -34,26 +34,26 @@ Several moderation engines are available for you to choose from (nudity detectio
3434``` php
3535# Detect nudity in an image
3636
37- $output = $client->check('nudity')->image('http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg')
37+ $output = $client->check([ 'nudity'] )->image('http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg')
3838
39- # Detect nudity, weapons, alcohol, drugs and faces in an image, along with image properties and type
40- $output = $client->check('nudity', 'type', 'properties', 'wad', 'face')->image('http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg')
39+ # Detect nudity, weapons, alcohol, drugs, likely fruadulant users, celebrities and faces in an image, along with image properties and type
40+ $output = $client->check([ 'nudity', 'type', 'properties', 'wad', 'face', 'scam', 'celebrity'] )->image('http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg')
4141```
4242
4343## Moderate a local image:
4444``` php
4545# Detect nudity in an image
46- $output = $client->check('nudity')->image('/full/path/to/image.jpg')
46+ $output = $client->check([ 'nudity'] )->image('/full/path/to/image.jpg')
4747
4848# Detect nudity, weapons, alcohol, drugs and faces in an image, along with image properties and type
49- $output = $client->check('nudity', 'type', 'properties', 'wad', 'face')->image('/full/path/to/image.jpg')
49+ $output = $client->check([ 'nudity', 'type', 'properties', 'wad', 'face'] )->image('/full/path/to/image.jpg')
5050```
5151
5252# Video and Stream Moderation
5353The first step to detect nudity in a video stream is to submit the video stream to the API.
5454
5555``` php
56- $client->check('nudity')->video('http://www.quirksmode.org/html5/videos/big_buck_bunny.webm', 'https://example.com/yourcallback')
56+ $client->check([ 'nudity'] )->video('http://www.quirksmode.org/html5/videos/big_buck_bunny.webm', 'https://example.com/yourcallback')
5757```
5858
5959# Feedback
0 commit comments