PHPackages                             bstien/laravel-torrent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bstien/laravel-torrent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bstien/laravel-torrent
======================

Search for torrents with this package

0.1.0(11y ago)18514MITPHP

Since Mar 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bstien/laravel-torrent)[ Packagist](https://packagist.org/packages/bstien/laravel-torrent)[ RSS](/packages/bstien-laravel-torrent/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel Torrent
===============

[](#laravel-torrent)

A package for [Laravel 5](http://laravel.com/) to scrape for torrents.

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

[](#installation)

Add this to your `composer.json`:

```
"require": {
    "bstien/laravel-torrent": "dev-master"
}
```

Register the facade and ServiceProvider in `config/app.php`:

```
'providers' => [
    // ...
    'Stien\Torrent\TorrentServiceProvider',
];

'aliases' => [
    // ...
    'Torrent    => 'Stien\Torrent\Facades\Torrent',
];
```

Usage
-----

[](#usage)

### Regular search

[](#regular-search)

Returns an array with `Stien\Torrent\Result\Torrent`-objects if matches are found. If not, an empty array is returned.

```
use Stien\Torrent\Facades\Torrent;
# You can register this to your facades-array in config/app.php if you like

$torrents = Torrent::search("Modern Family");

foreach( $torrents as $torrent )
{
    echo $torrent->getTitle();
}

# To search within a specific category, use any of the constants in
# Stien\Torrent\Categories.
```

### Search in category

[](#search-in-category)

Include a category as the second argument to `Torrent::search()`. See constants in `Stien\Torrent\Categories` for reference.

It defaults to `Categories::ALL` if none are given.

```
use Stien\Torrent\Facades\Torrent;
use Stien\Torrent\Categories as CAT;

$torrents = Torrent::search("Die Hard", CAT::MOVIES_HD);
```

Implement your own adapter
--------------------------

[](#implement-your-own-adapter)

To extend this package with another adapter, create a new class and have it implement `Stien\Torrent\TorrentAdapterInterface`.

Register your adapter with the scraper

```
use Stien\Torrent\Facades\Torrent;

$myAdapter = new MyAdapter();
$myAdapter->setHttpClient(new \GuzzleHttp\Client);

Torrent::addAdapter( $myAdapter );
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

4140d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1901556?v=4)[Bastian Stien](/maintainers/bstien)[@bstien](https://github.com/bstien)

---

Top Contributors

[![bstien](https://avatars.githubusercontent.com/u/1901556?v=4)](https://github.com/bstien "bstien (29 commits)")

### Embed Badge

![Health badge](/badges/bstien-laravel-torrent/health.svg)

```
[![Health](https://phpackages.com/badges/bstien-laravel-torrent/health.svg)](https://phpackages.com/packages/bstien-laravel-torrent)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k18.5M67](/packages/spatie-crawler)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)

PHPackages © 2026

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