PHPackages                             titasgailius/laravel-stream-remote - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. titasgailius/laravel-stream-remote

ActiveLibrary[File &amp; Storage](/categories/file-storage)

titasgailius/laravel-stream-remote
==================================

Stream remote files

1.0.0(6y ago)31.1k1[3 PRs](https://github.com/TitasGailius/laravel-stream-remote/pulls)MITPHP

Since May 25Pushed 3y agoCompare

[ Source](https://github.com/TitasGailius/laravel-stream-remote)[ Packagist](https://packagist.org/packages/titasgailius/laravel-stream-remote)[ RSS](/packages/titasgailius-laravel-stream-remote/feed)WikiDiscussions master Synced 3w ago

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

Stream Remote Files
===================

[](#stream-remote-files)

With this package you can stream remote contents right from your Laravel application.

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

[](#installation)

```
composer require titasgailius/laravel-stream-remote

```

Usage
-----

[](#usage)

The `streamRemoteDownload` method may be used to generate a response that turns contents of a remote resource to a downloadable response without having to write anything to disk.

This method accepts a url, file name and an optional array of headers as it's arguments:

```
return response()->streamRemoteDownload('https://example.com/remote/file.zip', 'archive.zip');
```

Advanced
--------

[](#advanced)

You may specify headers of the response, content-disposition value and chunk size of the streamed content:

```
return response()->streamRemoteDownload('https://example.com/remote/file.zip', 'archive.zip', [
    'Content-Type' => 'application/zip'
], 'attachment', 1024);
```

This is a full signature of the `streamRemoteDownload` method:

```
public function streamRemoteDownload(
    string $url,
    string $name = null,
    array $headers = [],
    string $disposition = 'attachment',
    int $chunk = 2048
): StreamedResponse;
```

Tests
-----

[](#tests)

This package is covered with tests that are store in `tests` directory. Run `./vendor/bin/phpunit` to run the test suite.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

2223d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12625773?v=4)[Titas Gailius](/maintainers/TitasGailius)[@TitasGailius](https://github.com/TitasGailius)

---

Top Contributors

[![TitasGailius](https://avatars.githubusercontent.com/u/12625773?v=4)](https://github.com/TitasGailius "TitasGailius (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/titasgailius-laravel-stream-remote/health.svg)

```
[![Health](https://phpackages.com/badges/titasgailius-laravel-stream-remote/health.svg)](https://phpackages.com/packages/titasgailius-laravel-stream-remote)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[google/cloud

Google Cloud Client Library

1.2k16.5M57](/packages/google-cloud)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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