PHPackages                             gpenverne/putio-drive-sdk - 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. gpenverne/putio-drive-sdk

ActiveBundle[API Development](/categories/api)

gpenverne/putio-drive-sdk
=========================

A bundle for explore putio files

0.1.39(8y ago)257[1 PRs](https://github.com/gpenverne/putio-drive-sdk/pulls)MITPHPPHP &gt;=5.4

Since Feb 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gpenverne/putio-drive-sdk)[ Packagist](https://packagist.org/packages/gpenverne/putio-drive-sdk)[ RSS](/packages/gpenverne-putio-drive-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (11)Versions (24)Used By (0)

putio-drive-sdk
===============

[](#putio-drive-sdk)

\## Installation Install the bundle:

```
$ composer require gpenverne/putio-drive-sdk
```

Load bunle in AppKernel:

```
    new Gpenverne\PutioDriveBundle\PutioDriveBundle(),
```

### Configuration

[](#configuration)

```
parameters:
    putio:
        client_id: your-client-id
        client_secret: your-client-secret
        callback_route: callback_route

```

With your custom route in callback\_route (for example, to display a success message)

Add your endpoints to your routing.yml or use our controllers endpoints:

```
putio.callback:
    path:     /putio/callback
    defaults: { _controller: putio.drive.controller:callbackAction }

putio.redirect:
    path:     /putio/redirect
    defaults: { _controller: putio.drive.controller:redirectAction }

```

### obtain the user token

[](#obtain-the-user-token)

Call the previous created route (putio.redirect) . After access granted, user will be redirected to previous configured "callback\_route" parameter

### retrieving the token

[](#retrieving-the-token)

Once token obtained, "events.putio.token" event is dispatched.
This event is handled by putio drive service, and you can retrieve it using putio.drive service:

```
// In a controller:
$token = $this->container->get('putio.drive')->getToken();
```

### using the putio php sdk

[](#using-the-putio-php-sdk)

You can use our builtin file/folder finder:

```
$putioDrive = $this->container->get('putio.drive');
$putioDrive->setToken($token);

// Retrieving a folder
$folder = $putioDrive->findByPath('/MyMovies');

// Retrieving files in the folder
// Will return FileInterface and FolderInterface
// cf. (psr-cloud-files)[https://packagist.org/packages/gpenverne/psr-cloud-files]
$files = $folder->getFiles();

// Or retrieve a full path file
// Will return FileInterface
// cf. (psr-cloud-files)[https://packagist.org/packages/gpenverne/psr-cloud-files]
$file = $putioDrive->findByPath('/MyMovies/MyMovie.mp4');

// Retrieving the download url:
$file = $putioDrive->findByPath('/MyMovies/MyMovie.mp4');
$downloadUrl = $file->getLink();
```

Thanks to , you can easily make api calls:

```
// In a controller, using the previous catched token:
$putioApiClient = $this->container->get('putio.drive')->getApiClient();

// In a controller, using a custom token:
$putioApiClient = $this->container->get('putio.drive')->getApiClient('custom token');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~7 days

Recently: every ~18 days

Total

22

Last Release

3209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b0ca6784da22eba6703bff3e3395910b9e4619f67f6c56c975f103d02b561c3?d=identicon)[gpenverne](/maintainers/gpenverne)

---

Top Contributors

[![gpenverne](https://avatars.githubusercontent.com/u/401993?v=4)](https://github.com/gpenverne "gpenverne (35 commits)")

---

Tags

apicloudletmestreamputioapiput.io

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gpenverne-putio-drive-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gpenverne-putio-drive-sdk/health.svg)](https://phpackages.com/packages/gpenverne-putio-drive-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)

PHPackages © 2026

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