loostie/yummy-dl

There is no license information available for the latest version (v1.0.1) of this package.

Provides a simple way to fetch data for videos on adult sites

v1.0.1 2023-02-21 14:50 UTC

This package is auto-updated.

Last update: 2025-07-21 20:16:48 UTC


README

YummyDL provides a simple way to fetch video-data on adult websites

Installation

The best way to obtain YummyDL is to download it using composer

composer require loostie/yummy-dl

Usage

To keep everything simple all sites will return the same object, which will look like this:

{
    ["found"] => bool,
    ["vidLink"] => string,
    ["thumbnail"] => string,
    ["title"] => string,
    ["tags"] => array

}

If the video data for some reason could not be retrieved, all of the above will be false

Example

<?php
require 'vendor/autoload.php'; // Composer's autoloader

use Loostie\YummyDL\RedTube;       // For RedTube
use Loostie\YummyDL\SpankBang;     // For SpankBang
use Loostie\YummyDL\Xnxx;          // For Xnxx
use Loostie\YummyDL\Xvideos;       // For Xvideos

// In this example we use Xvideos, but the procedure is the same for all of them
$video = new Xvideos();
$video->setUrl("https://xvideos.com/your_preferred_video");
$video_data = $video->getVideoData();

// This is just an example where we var_dump the response
// Then check if video data was found
var_dump($video_data);
if ($video_data->found) {
    echo $video_data->title     // The title of the video
    echo $video_data->thumbnail // Link to the video thumbnail (you could use this in <img src>)
    echo $video_data->vidLink   // Direct link to the video (not on the site), where it can be downloaded
    foreach ($video_data->tags as $tag) {
        echo $tag               // All tags for the video
    }
}

Supported Websites (NSFW LINKS)