PHPackages                             ianfortier/loom-downloader - 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. ianfortier/loom-downloader

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

ianfortier/loom-downloader
==========================

Loom Downloader is a simple PHP package to download videos from loom.com

v0.1.0(1y ago)2141[1 PRs](https://github.com/ianfortier/loom-downloader/pulls)MITPHPPHP ^8.1

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ianfortier/loom-downloader)[ Packagist](https://packagist.org/packages/ianfortier/loom-downloader)[ Docs](https://github.com/ianfortier/loom-downloader)[ GitHub Sponsors](https://github.com/ianfortier)[ RSS](/packages/ianfortier-loom-downloader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Loom Video Downloader
=====================

[](#loom-video-downloader)

A simple PHP package to download Loom videos with ease.

🚀 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require ianfortier/loom-downloader
```

🤔 Why?
------

[](#-why)

Loom doesn't provide an official API for video downloads. This package fills that gap, allowing you to:

- Create backups of your Loom videos
- Archive old content
- Have offline access to your videos

Use responsibly and only for videos you have the right to download and store.

🔧 Usage Examples
----------------

[](#-usage-examples)

The `LoomDownloader` class provides two main methods for working with Loom videos: `downloadVideo` and `saveVideo`.

### Download Video Content

[](#download-video-content)

To download the video content and get it as a binary:

```
use LoomDownloader\LoomDownloader;

$downloader = new LoomDownloader();
$videoContent = $downloader->downloadVideo('https://www.loom.com/share/your-video-id');

// $videoContent now contains the binary data of the video
// Be cautious with this method for large videos as it loads the entire video into memory
```

### Save Video to File

[](#save-video-to-file)

To download the video and save it directly to a file:

```
use LoomDownloader\LoomDownloader;

$downloader = new LoomDownloader();
$filePath = $downloader->saveVideo('https://www.loom.com/share/your-video-id', '/path/to/save/video.mp4');

echo "Video saved to: " . $filePath;
```

If you don't specify a destination, the video will be saved to a temporary directory:

```
$filePath = $downloader->saveVideo('https://www.loom.com/share/your-video-id');
echo "Video saved to: " . $filePath;
```

🛠 Laravel Integration
---------------------

[](#-laravel-integration)

While this package can be used in any PHP project, here are some examples of how you can integrate it with Laravel:

### Basic Usage in a Controller

[](#basic-usage-in-a-controller)

```
use LoomDownloader\LoomDownloader;

class LoomController extends Controller
{
    public function download(Request $request)
    {
        $downloader = new LoomDownloader();
        $filePath = $downloader->saveVideo($request->loom_url, storage_path('app/videos/loom_video.mp4'));

        return response()->download($filePath);
    }

    public function stream(Request $request)
    {
        $downloader = new LoomDownloader();
        $videoContent = $downloader->downloadVideo($request->loom_url);

        return response($videoContent)
            ->header('Content-Type', 'video/mp4')
            ->header('Content-Disposition', 'inline; filename="loom_video.mp4"');
    }
}
```

### Error Handling with Laravel Logging

[](#error-handling-with-laravel-logging)

```
use Illuminate\Support\Facades\Log;
use LoomDownloader\LoomDownloader;

class LoomController extends Controller
{
    public function download(Request $request)
    {
        try {
            $downloader = new LoomDownloader();
            $filePath = $downloader->saveVideo($request->loom_url, storage_path('app/videos/loom_video.mp4'));
            return response()->download($filePath);
        } catch (\Exception $e) {
            Log::error('Failed to download Loom video: ' . $e->getMessage());
            return response()->json(['error' => 'Failed to download video'], 500);
        }
    }
}
```

ℹ️ Important Information
------------------------

[](#ℹ️-important-information)

Before using this package, please be aware of the following:

1. **Video Access**: This package attempts to download Loom videos based on their ID. It does not implement authentication, so its ability to access private videos depends on Loom's API behavior. Use caution and respect video owners' privacy settings.
2. **Error Handling**: The package throws exceptions for invalid URLs, unavailable videos, or API errors. Make sure to handle these exceptions in your code.
3. **Video Quality**: Videos are downloaded in the format provided by Loom's API. There are no options to select different qualities or formats.
4. **Large Videos**: While the package can handle large files, be cautious when using the `downloadVideo` method as it loads the entire video into memory. For large videos, prefer the `saveVideo` method which streams the video directly to a file.
5. **Legal and Ethical Considerations**: Ensure you have the right to download and use the Loom videos. This package does not enforce access controls or address legal concerns related to video downloading. Always respect copyright and privacy rights.

🧪 Testing
---------

[](#-testing)

Run the tests with:

```
composer test
```

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT license](LICENSE.md).

---

For more detailed information or to report issues, please visit our [GitHub repository](https://github.com/ianfortier/loom-downloader).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

577d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06abf3ec43b9436d5233e60d8f66aee65e0f93f23b68c3d201023cfc192e80ea?d=identicon)[ianfortier](/maintainers/ianfortier)

---

Top Contributors

[![ianfortier](https://avatars.githubusercontent.com/u/2520657?v=4)](https://github.com/ianfortier "ianfortier (8 commits)")

---

Tags

phplaravelvideodownloadloomianfortierloom-downloader

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ianfortier-loom-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/ianfortier-loom-downloader/health.svg)](https://phpackages.com/packages/ianfortier-loom-downloader)
```

###  Alternatives

[opentok/opentok

OpenTok is a platform for creating real time streaming video applications, created by TokBox.

1413.0M10](/packages/opentok-opentok)[aminyazdanpanah/php-shaka

Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.

939.0k1](/packages/aminyazdanpanah-php-shaka)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[bjthecod3r/laravel-cloudflare-stream

A Laravel package for Cloudflare Stream.

203.4k](/packages/bjthecod3r-laravel-cloudflare-stream)

PHPackages © 2026

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