https://github.com/shetabit/php-simple-zip-exctractor
Upload and extract a zip file into a directory with authentication
https://github.com/shetabit/php-simple-zip-exctractor
Last synced: 9 months ago
JSON representation
Upload and extract a zip file into a directory with authentication
- Host: GitHub
- URL: https://github.com/shetabit/php-simple-zip-exctractor
- Owner: shetabit
- License: mit
- Created: 2021-03-15T13:28:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-23T07:02:43.000Z (over 1 year ago)
- Last Synced: 2025-03-24T09:21:19.328Z (10 months ago)
- Language: PHP
- Size: 72.3 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-simple-zip-exctractor
A lightweight PHP script that allows you to upload and extract a ZIP file to a designated directory on your server. It includes built-in authentication to ensure only authorized users can access this functionality.
Benefits:
- Simplified Uploads: Upload your entire project (e.g., Vue or React built locally) as a single ZIP file, eliminating the need for manual file management through a server file manager.
- Streamlined Workflow: Save time and effort by avoiding the tedious process of uploading individual files through a server interface.
- Secure Uploads: The script incorporates authentication to prevent unauthorized access to file uploads and also throttling which prevents brute force attacks.
- Lightweight and Efficient: The script operates without requiring additional databases or temporary files, keeping your server footprint minimal.
Requirements:
- PHP with Zip extension enabled (https://www.php.net/manual/en/zip.installation.php)
Getting Started:
(Assuming you have downloaded the php-simple-zip-extractor script)
- Upload the script: Upload the php-simple-zip-extractor.php file to your desired server location.
- Configure authentication: (Specificy username and password in the file)
- Access the script: Navigate to the script's location in your web browser (e.g., http://yourdomain.com/php-simple-zip-extractor.php).
- Upload and Extract: Use the provided interface to upload your ZIP file and initiate the extraction process. The extracted files will be placed in the designated directory.
Further Enhancements (Optional):
- Implement progress tracking for larger ZIP files.
- Allow users to specify the destination directory for extracted files.
