PHP code example of llprod / yasfbrowsingapi
1. Go to this page and download the library: Download llprod/yasfbrowsingapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
llprod / yasfbrowsingapi example snippets
// Ключ, полученный на https://developer.tech.yandex.ru
$SfBrowsing = new YaSfBrowsing\YaSfBrowsingAPI('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa');
// URL, который вы хотите проверить
$find = $SfBrowsing->find('https://neon.today');
// Ключ, полученный на https://developer.tech.yandex.ru
$SfBrowsing = new YaSfBrowsing\YaSfBrowsingAPI('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa');
// URL, который вы хотите проверить
$adult = $SfBrowsing->adult('https://adult.url');