suitcore / filegrabber
Grab a file from outer space and save into your universe.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/suitcore/filegrabber
Requires
- guzzlehttp/guzzle: ~6.0
- illuminate/support: ~5.5|~5.6|~5.7
- suitcore/file: dev-master
This package is not auto-updated.
Last update: 2025-10-26 11:13:15 UTC
README
What is it?
Grab a file from outer space and save into your universe.
How To use ?
install via composer :
composer require suitcore/filegrabber
Use in your code :
<?php use Suitcore\FileGrabber\FileGrabber; $url = 'https://somewhere_on_the_internet/file_name'; $file = app(FileGrabber::class)->from($url); // or you can use facade instead use FileGrab; // or use Suitcore\FileGrabber\Facades\FileGrab; $url = 'https://somewhere_on_the_internet/file_name'; $file = FileGrab::from($url);
Result
If success, the result is class Suitcore\File\File which is inherit from Symfony\Component\HttpFoundation\File\File.
If not, you will get boolean false as the result.
Deal With Large Files or Stream Mode
You can add second parameter with value true.
$file = app(FileGrabber::class)->from($url, true); // or $file = FileGrab::from($url, true);
What Next ?
Since the file exists in temporary folder so after file grabbed, then modify or move it to another place.
// move to another folder $file->move('/home/my/another/folder', 'new_name_with.extension');