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)17514MITPHP

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 1mo ago

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 54% 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

4088d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe04a6b9f66149b537c7b7a69d00151cef9fb21ea62e5e78d6ac3ef064226229?d=identicon)[bstien](/maintainers/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

[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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