PHPackages                             naxon/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. naxon/laravel-url-uploaded-file

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

naxon/laravel-url-uploaded-file
===============================

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

1.0.0(5y ago)176.4k9[4 issues](https://github.com/Naxon/laravel-url-uploaded-file/issues)[2 PRs](https://github.com/Naxon/laravel-url-uploaded-file/pulls)MITPHPPHP ^7.4

Since Oct 25Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)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

30

—

LowBetter than 64% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

2025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24058881886002c85bca400b27d324b588b8296540e23f5be27b0dd54fd6f369?d=identicon)[Naxon](/maintainers/Naxon)

---

Top Contributors

[![Naxon](https://avatars.githubusercontent.com/u/293026?v=4)](https://github.com/Naxon "Naxon (6 commits)")

---

Tags

laravellaravellaravel-url-uploaded-filenaxon

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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