PHPackages                             tetreum/kat - 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. [API Development](/categories/api)
4. /
5. tetreum/kat

ActiveLibrary[API Development](/categories/api)

tetreum/kat
===========

Kat.cr / KickAssTorrents PHP SDK (Unofficial)

213

Since Jun 3Compare

[ Source](https://github.com/tetreum/kat)[ Packagist](https://packagist.org/packages/tetreum/kat)[ RSS](/packages/tetreum-kat/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

KAT SDK [![Build Status](https://camo.githubusercontent.com/afc98f9f34ce709775f94b3bfe144cc385151809ebbe8cead7d4df4d1b3020cf/68747470733a2f2f7472617669732d63692e6f72672f7465747265756d2f6b61742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tetreum/kat) [![License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE) [![Issues](https://camo.githubusercontent.com/e81f0e888d36e949aaeb54dfd68f3ac42b2c7736aafe43fb582049caf11a3a7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7465747265756d2f6b61742e7376673f7374796c653d666c6174)](https://github.com/tetreum/kat/issues)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#kat-sdk---)

Unofficial Kat.cr / KickAssTorrents PHP SDK.

(I've only made the features that i need, if you need something, code it &amp; send a PR)

#### Install

[](#install)

```
composer require tetreum/kat dev-master

```

#### Available methods

[](#available-methods)

- Kat

    - getTorrent ($link)
    - search ($query, $page = 1, $sort = null, $maxAge = null)
- User

    - getUploads ($page = 1, $maxAge = null)
- BasicTorrent `//returned by search/getUploads`

    - getFullInfo()

#### Examples

[](#examples)

##### Search content

[](#search-content)

```
// Includes vendor libraries
require "vendor/autoload.php";

use Kat\Kat;
use Kat\Utils;

$kat = new Kat();
$r = $kat->search("WikiLeaks Insurance", [
    "field" => "seeders",
    "order" => "desc",
]);
Utils::p($r);
/*
Array
(
    [0] => Kat\BasicTorrent Object
        (
            [name] => WikiLeaks insurance 20130815 - C
            [size] => 325.39 GB
            [magnet] => magnet:?xt=urn:btih:091EED7793FDB48C5BD8488431E888DDE41A889F&dn=wikileaks+insurance+20130815+c&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%
2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
            [torrent] => https://torcache.net/torrent/091EED7793FDB48C5BD8488431E888DDE41A889F.torrent?title=[kat.cr]wikileaks.insurance.20130815.c
            [creator] =>
            [seeders] => 2
            [leechers] => 2
            [comments] => 5
            [created] => 2013-08-17 19:03:00
            [link] => https://kat.cr/wikileaks-insurance-20130815-c-t7746515.html
        )

    [1] => Kat\BasicTorrent Object
        (
            [name] => wikileaks insurance 20130815-B
            [size] => 46.48 GB
            [magnet] => magnet:?xt=urn:btih:95381785C3FB446DF35C5B4A8E5EF167DCB72011&dn=wikileaks+insurance+20130815+b&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%
2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
            [torrent] => https://torcache.net/torrent/95381785C3FB446DF35C5B4A8E5EF167DCB72011.torrent?title=[kat.cr]wikileaks.insurance.20130815.b
            [creator] => Kat\User Object
                (
                    [nick:Kat\User:private] => DWizz
                    [password:Kat\User:private] =>
                    [link:Kat\User:private] => https://kat.cr/user/DWizz/
                )

            [seeders] => 1
            [leechers] => 0
            [comments] => 1
            [created] => 2013-08-17 12:52:00
            [link] => https://kat.cr/wikileaks-insurance-20130815-b-t7745182.html
        )
    ...
)
*/
```

##### Get torrent info

[](#get-torrent-info)

```
// Includes vendor libraries
require "vendor/autoload.php";

use Kat\Kat;
use Kat\Utils;

$kat = new Kat();
$r = $kat->getTorrent("https://kat.cr/wikileaks-insurance-t4287181.html");
Utils::p($r);

/*
Kat\Torrent Object
(
    [text] => www.wikileaks.org
    [image] =>
    [downloads] => 10
    [name] => WikiLeaks insurance
    [size] => 1.39 GB
    [magnet] => magnet:?xt=urn:btih:76a36f1d11c72eb5663eeb4cf31e351321efa3a3&dn=wikileaks+insurance&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.open
bittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
    [torrent] => https://torcache.net/torrent/76A36F1D11C72EB5663EEB4CF31E351321EFA3A3.torrent?title=[kat.cr]wikileaks.insurance
    [creator] => Kat\User Object
        (
            [nick:Kat\User:private] => 23silver
            [password:Kat\User:private] =>
            [link:Kat\User:private] => https://kat.cr/user/23silver/
        )

    [seeders] => 0
    [leechers] => 0
    [comments] => 23
    [created] => 2010-07-29T01:32:22+00:00
    [link] => https://kat.cr/wikileaks-insurance-t4287181.html
)
*/
```

##### Get user uploads

[](#get-user-uploads)

```
// Includes vendor libraries
require "vendor/autoload.php";

use Kat\User;
use Kat\Utils;

$user = new User(["nick" => "DWizz"]);
$r = $user->getUploads();
Utils::p($r);

Array
(
    [0] => Kat\BasicTorrent Object
        (
            [name] => wikileaks insurance 20130815-B
            [size] => 46.48 GB
            [magnet] => magnet:?xt=urn:btih:95381785C3FB446DF35C5B4A8E5EF167DCB72011&dn=wikileaks+insurance+20130815+b&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%
2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
            [torrent] => https://torcache.net/torrent/95381785C3FB446DF35C5B4A8E5EF167DCB72011.torrent?title=[kat.cr]wikileaks.insurance.20130815.b
            [creator] => Kat\User Object
                (
                    [nick:Kat\User:private] => DWizz
                    [password:Kat\User:private] =>
                    [link:Kat\User:private] => https://kat.cr/user/DWizz/
                )

            [seeders] => 1
            [leechers] => 0
            [comments] => 1
            [created] => 2013-08-17 12:52:00
            [link] => https://kat.cr/wikileaks-insurance-20130815-b-t7745182.html
        )

    [1] => Kat\BasicTorrent Object
        (
            [name] => Wikileaks insurance 20130815-A
            [size] => 3.32 GB
            [magnet] => magnet:?xt=urn:btih:E0A092AC0F9B56C886C41335CA36F34AAED6B80C&dn=wikileaks+insurance+20130815+a&tr=udp%3A%2F%2Ftracker.publicbt.com%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%
2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce
            [torrent] => https://torcache.net/torrent/E0A092AC0F9B56C886C41335CA36F34AAED6B80C.torrent?title=[kat.cr]wikileaks.insurance.20130815.a
            [creator] => Kat\User Object
                (
                    [nick:Kat\User:private] => DWizz
                    [password:Kat\User:private] =>
                    [link:Kat\User:private] => https://kat.cr/user/DWizz/
                )

            [seeders] => 5
            [leechers] => 0
            [comments] => 1
            [created] => 2013-08-17 12:43:00
            [link] => https://kat.cr/wikileaks-insurance-20130815-a-t7745127.html
        )

)
*/
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1708730?v=4)[tetreum](/maintainers/tetreum)[@tetreum](https://github.com/tetreum)

---

Top Contributors

[![tetreum](https://avatars.githubusercontent.com/u/1708730?v=4)](https://github.com/tetreum "tetreum (7 commits)")

### Embed Badge

![Health badge](/badges/tetreum-kat/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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