PHPackages                             kri55h/socialfork - 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. [Image &amp; Media](/categories/media)
4. /
5. kri55h/socialfork

ActiveLibrary[Image &amp; Media](/categories/media)

kri55h/socialfork
=================

SocialFork PHP: Download videos from TikTok, YouTube, Facebook, Snapchat, and Instagram effortlessly. Integrate seamlessly into your PHP projects to access and manage engaging content across multiple social platforms.

1.0.3(1y ago)4361MITPHPPHP &gt;=7.4

Since Jan 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KRI55H/socialFork)[ Packagist](https://packagist.org/packages/kri55h/socialfork)[ Docs](https://github.com/KRI55H/socialFork)[ RSS](/packages/kri55h-socialfork/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

SocialFork
==========

[](#socialfork)

[![Packagist Version](https://camo.githubusercontent.com/1f0c62b9a74d4bcb3921dc1b4e1f66ffd2c771d1f8341ad38a7e276a04ebdd08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72693535682f736f6369616c666f726b2e737667)](https://camo.githubusercontent.com/1f0c62b9a74d4bcb3921dc1b4e1f66ffd2c771d1f8341ad38a7e276a04ebdd08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72693535682f736f6369616c666f726b2e737667)[![Latest Version](https://camo.githubusercontent.com/d6139e004a11aa65e7557d3af1192b7a71c2f0b7be0bb34466bc1116b7e602f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b72693535682f736f6369616c666f726b)](https://camo.githubusercontent.com/d6139e004a11aa65e7557d3af1192b7a71c2f0b7be0bb34466bc1116b7e602f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b72693535682f736f6369616c666f726b)[![Packagist Downloads](https://camo.githubusercontent.com/346559a8b0ee2f6f64ebf8cfd23aecb4e68b5dd78ef0bf53d55f59349172e8e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72693535682f736f6369616c666f726b)](https://camo.githubusercontent.com/346559a8b0ee2f6f64ebf8cfd23aecb4e68b5dd78ef0bf53d55f59349172e8e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72693535682f736f6369616c666f726b)[![PHP Version](https://camo.githubusercontent.com/6a56cf7867a994b93daa4b8a842788e976da23eb6990f2fb5af1c1bb9715d2c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d6d656469756d736c617465626c7565)](https://camo.githubusercontent.com/6a56cf7867a994b93daa4b8a842788e976da23eb6990f2fb5af1c1bb9715d2c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d6d656469756d736c617465626c7565)[![License](https://camo.githubusercontent.com/6f6e2eb217f0d9f1caac491c6a88cf33418d5ab714bdd46245b6750b3ff683ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4b52493535482f736f6369616c466f726b)](https://camo.githubusercontent.com/6f6e2eb217f0d9f1caac491c6a88cf33418d5ab714bdd46245b6750b3ff683ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4b52493535482f736f6369616c466f726b)

Overview
--------

[](#overview)

SocialFork is a PHP library designed to simplify the process of downloading videos from various social media platforms.

Features
--------

[](#features)

- Supports downloading videos from popular social media platforms, including TikTok, SnapChat, Youtube, Facebook, Instagram, and Twitter.
- Requires [ffmpeg](https://ffmpeg.org/download.html) and [yt-dlp](https://github.com/yt-dlp/yt-dlp) as dependencies.

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

[](#installation)

Follow the steps below to install the required dependencies:

### Installing ffmpeg

[](#installing-ffmpeg)

#### Windows:

[](#windows)

- Visit the [official ffmpeg download page](https://ffmpeg.org/download.html).
- Follow the instructions to download and install the executable.

#### macOS:

[](#macos)

- Install Homebrew if you haven't already by following the instructions on [Homebrew's website](https://brew.sh/).
- Open a terminal and run the following command:

```
brew install ffmpeg
```

#### Linux (Debian/Ubuntu):

[](#linux-debianubuntu)

- Open a terminal and run the following command:

```
sudo apt-get update
sudo apt-get install ffmpeg
```

### Installing yt-dlp

[](#installing-yt-dlp)

1. **Windows, macOS, Linux:**

- Open a terminal and run the following command:

```
pip install -U yt-dlp
```

If you don't have `pip` installed, you can get it by following the instructions [here](https://pip.pypa.io/en/stable/installation/).

Usage
-----

[](#usage)

Now that you have the prerequisites installed, you can proceed to use Social Fork.

### 1. Install Social Fork via Composer

[](#1-install-social-fork-via-composer)

Run the following command in your project's root directory:

```
composer require kri55h/socialfork
```

### 2. Use Social Fork in your code

[](#2-use-social-fork-in-your-code)

```
use Kri55h\SocialFork;

try {
    // Instantiate SocialFork
    $socialFork = new SocialFork();

    // Set the URL of the post you want to download
    $socialFork->setUrl('');

    // Set the path where you want to store the downloaded video
    $socialFork->setDownloadPath('');

    // Set the desired name (without extension) for the downloaded video
    $socialFork->setName('');

    // Trigger the download process
    $videoSaved = $socialFork->download();

    if ($videoSaved) {
        return 'Video saved!';
    } else {
        return 'Failed to save video.';
    }
} catch (Exception $e) {
    // Handle any exceptions or errors that occurred during the process
    return 'An error occurred: ' . $e->getMessage();
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance44

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~139 days

Total

4

Last Release

437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5d26ba2098b2633c25edff5d3bd2785d5092dc8c744019026c2522f1290182a?d=identicon)[kri55h](/maintainers/kri55h)

---

Top Contributors

[![KRI55H](https://avatars.githubusercontent.com/u/65755721?v=4)](https://github.com/KRI55H "KRI55H (15 commits)")

---

Tags

phpfacebookinstagramvideoyoutubetwitterphp8TikTok php74snapchatsavervideo-saverpost-saver

### Embed Badge

![Health badge](/badges/kri55h-socialfork/health.svg)

```
[![Health](https://phpackages.com/badges/kri55h-socialfork/health.svg)](https://phpackages.com/packages/kri55h-socialfork)
```

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[chojnicki/video-platforms-parser

Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.

22226.4k](/packages/chojnicki-video-platforms-parser)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[hut6/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

102.3k](/packages/hut6-oembed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
