PHPackages                             minh7721/laravel-url-uploaded-file - 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. minh7721/laravel-url-uploaded-file

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

minh7721/laravel-url-uploaded-file
==================================

A package to leverage Laravel's UploadedFile functionality from URLs.

8.0.2(2y ago)046MITPHPPHP ^8.0

Since May 6Pushed 2y agoCompare

[ Source](https://github.com/minh7721/laravel-url-uploaded-file)[ Packagist](https://packagist.org/packages/minh7721/laravel-url-uploaded-file)[ RSS](/packages/minh7721-laravel-url-uploaded-file/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Uploade files from URLs in Laravel
==================================

[](#uploade-files-from-urls-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aa905a93e89a1e3f7121fe07bffb8a18b7c656eab709cb4b747d0517b94df8a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e61786f6e2f6c61726176656c2d75726c2d75706c6f616465642d66696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/naxon/laravel-url-uploaded-file)[![Tests](https://github.com/naxon/laravel-url-uploaded-file/workflows/Tests/badge.svg?branch=main)](https://github.com/naxon/laravel-url-uploaded-file/workflows/Tests/badge.svg?branch=main)[![Total Downloads](https://camo.githubusercontent.com/eb20fcd004db366fa5d9225d35102b4c07247b2f2bcceaacb59918564adb118b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e61786f6e2f6c61726176656c2d75726c2d75706c6f616465642d66696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/naxon/laravel-url-uploaded-file)

This package extends Laravel's [`UploadedFile`](https://github.com/laravel/framework/blob/8.x/src/Illuminate/Http/UploadedFile.php) functionality using file URLs instead of regular file uploads.

Read the full post in my blog:

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

[](#installation)

You can install the package via composer:

```
composer require naxon/laravel-url-uploaded-file
```

Usage
-----

[](#usage)

```
use Naxon\UrlUploadedFile\UrlUploadedFile;

$file = UrlUploadedFile::createFromUrl('https://naxon.dev/assets/img/portrait.jpg');
```

Now, because `UrlUploadedFile` extends `UploadedFile`, you can [store](https://laravel.com/docs/8.x/requests#storing-uploaded-files) it, get its [path and extension](https://laravel.com/docs/8.x/requests#storing-uploaded-files) and use `UploadedFile`'s functionality with it.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Roadmap
-------

[](#roadmap)

Version 1.0 provides basic functionality only. It was extracted from a real project I was working on. The plan for version 2.0 is to extend the functionality by adding more downloaders.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Daniel Naxon](https://github.com/NaxonD)
- [Spatie](https://github.com/spatie) - On the idea of how to [download files](https://github.com/spatie/laravel-medialibrary/blob/9dc99067cb78f6902b2f70601fb62fe16ba0f7ec/src/Downloaders/DefaultDownloader.php).
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f2cbed74179f4b5d8cfaac946240fbbc65bc8b081864e9bfd0ac0eed9be07ec?d=identicon)[minh7721](/maintainers/minh7721)

---

Top Contributors

[![Naxon](https://avatars.githubusercontent.com/u/293026?v=4)](https://github.com/Naxon "Naxon (6 commits)")[![minh7721](https://avatars.githubusercontent.com/u/57635053?v=4)](https://github.com/minh7721 "minh7721 (5 commits)")[![nguyenhiepvan](https://avatars.githubusercontent.com/u/33170716?v=4)](https://github.com/nguyenhiepvan "nguyenhiepvan (2 commits)")

---

Tags

laravellaravel-url-uploaded-filenaxon

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/minh7721-laravel-url-uploaded-file/health.svg)

```
[![Health](https://phpackages.com/badges/minh7721-laravel-url-uploaded-file/health.svg)](https://phpackages.com/packages/minh7721-laravel-url-uploaded-file)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[sopamo/laravel-filepond

Laravel backend module for filepond uploads

215272.2k3](/packages/sopamo-laravel-filepond)[illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

34268.8k](/packages/illuminatech-multipart-middleware)[genealabs/nova-file-upload-field

A Laravel Nova field.

5454.5k](/packages/genealabs-nova-file-upload-field)[yoelpc4/laravel-cloudinary

Laravel Cloudinary filesystem cloud driver.

3343.0k](/packages/yoelpc4-laravel-cloudinary)[naxon/laravel-url-uploaded-file

A package to leverage Laravel's UploadedFile functionality from URLs.

176.4k](/packages/naxon-laravel-url-uploaded-file)

PHPackages © 2026

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