Download the PHP package zupolgec/gdown-php without Composer
On this page you can find all versions of the php package zupolgec/gdown-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zupolgec/gdown-php
More information about zupolgec/gdown-php
Files in zupolgec/gdown-php
Package gdown-php
Short Description Google Drive Public File Downloader when Curl/Wget Fails - PHP implementation
License MIT
Informations about the package gdown-php
GDown PHP
⚠️ VIBE-CODED: This entire package was coded in a single AI-powered session. Proceed with confidence! 🎵
Google Drive Public File Downloader when Curl/Wget Fails - PHP Implementation
GDown PHP is a PHP port of the popular Python gdown library, providing robust downloading of public files from Google Drive.
Features
- ✅ Folder downloads - Download entire Google Drive folders (up to 50 files)
- ✅ Skip security notices - Download large files that curl/wget can't handle
- ✅ File info preview - Check file name and size BEFORE downloading (unique to PHP version!)
- ✅ Fuzzy URL parsing - Extract file IDs from any Google Drive URL format
- ✅ Resume support - Continue interrupted downloads
- ✅ Google Docs/Sheets/Slides - Download with format conversion (PDF, DOCX, XLSX, PPTX, etc.)
- ✅ Speed limiting - Control download bandwidth
- ✅ Proxy support - Download through HTTP/HTTPS proxies
- ✅ Cookie support - Use browser cookies for authenticated access
- ✅ Progress display - Real-time download progress
- ✅ CLI and Library - Use as command-line tool or integrate into your application
Installation
Via Composer
Global Installation (for CLI usage)
Usage
Command Line Interface
Basic Download
Fuzzy URL Extraction
Download Folders
Get File Info (Without Downloading)
Output:
Download Google Docs/Sheets/Slides
Resume Downloads
Speed Limiting
Proxy Support
All Options
PHP Library Usage
Basic Download
Get File Info Before Downloading
Advanced Usage
Fuzzy URL Matching
Download Folders
Example: Testing with Your Provided URL
Comparison with Python gdown
Feature Parity
| Feature | Python gdown | GDown PHP |
|---|---|---|
| Download large files | ✅ | ✅ |
| Fuzzy URL parsing | ✅ | ✅ |
| Resume downloads | ✅ | ✅ |
| Speed limiting | ✅ | ✅ |
| Proxy support | ✅ | ✅ |
| Cookie support | ✅ | ✅ |
| Google Docs formats | ✅ | ✅ |
| Folder download | ✅ | ✅ |
| File info preview | ❌ | ✅ NEW! |
Unique PHP Features
- File Info Preview: Check file size and name before downloading (not available in Python version)
- Native Composer Integration: Seamless integration with PHP projects
- Type Safety: Full PHP 8.0+ type declarations for better IDE support
Requirements
- PHP 8.0 or higher
- ext-curl
- ext-json
- ext-mbstring
Development
Install Dependencies
Run Tests
Code Style
Static Analysis
FAQ
I get a 'Permission Denied' error
Make sure the Google Drive file permission is set to 'Anyone with the link'.
I set 'Anyone with Link' but still can't download
Google restricts access when downloads are concentrated. Try:
- Download your browser cookies using an extension like "Get cookies.txt LOCALLY"
- Move
cookies.txtto~/.cache/gdown/cookies.txt - Run download again
How do I download private files?
Use the cookie method above. GDown will use your browser's authentication cookies.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details.
Credits
- Inspired by wkentaro/gdown (Python)
- Developed with ❤️ for the PHP community
Links
All versions of gdown-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.0
psr/log Version ^3.0
symfony/console Version ^6.0|^7.0
symfony/css-selector Version ^6.0|^7.0
symfony/dom-crawler Version ^6.0|^7.0