Download the PHP package nishthatechnosoft/php-file-manager without Composer
On this page you can find all versions of the php package nishthatechnosoft/php-file-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nishthatechnosoft/php-file-manager
More information about nishthatechnosoft/php-file-manager
Files in nishthatechnosoft/php-file-manager
Package php-file-manager
Short Description A modern, web-based file manager with advanced features like bulk operations, archive handling, and path-based navigation
License MIT
Homepage https://github.com/dhiraj-nishthatechnosoft/php-file-manager
Informations about the package php-file-manager
PHP File Manager
PHP File Manager
[
](L## Sup## - Path-based na- PSR-12 co## Auth## Author
Dhiraj Dhiman
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
---Dhiman**
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
โญ If you find this project useful, please consider giving it a star on GitHub!Comprehensive documentation
Author
Dhiraj Dhiman
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
---- Bulk operations support
- Archive handling (ZIP/TAR.GZ)
- Modern responsive UI
- PSR-12 compliant code
- Comprehensive documentation
Author
Dhiraj Dhiman
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
--- Dhiman**
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
โญ If you find this project useful, please consider giving it a star on GitHub! Dhiman**
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
โญ If you find this project useful, please consider giving it a star on GitHub!ocumentation](https://github.com/dhiraj-nishthatechnosoft/php-file-manager/wiki)
- ๐ Issue Tracker
- ๐ฌ DiscussionsDocumentation
- ๐ Issue Tracker
- ๐ฌ DiscussionsNSE)
A modern, feature-rich web-based file manager built with PHP 8.0+. This package provides a complete file management solution with advanced features like bulk operations, archive handling, path-based navigation, and a responsive user interface.
โจ Features
๐ Security
- Password-based authentication with session management
- Path traversal protection preventing unauthorized access
- File type validation with configurable allowed extensions
- File size limits to prevent abuse
- CSRF protection and secure session handling
๐ File Operations
- Create, edit, rename, and delete files and directories
- Upload files with drag-and-drop support
- Download files and directories
- Copy and move items between directories
- Bulk operations for multiple files/folders
๐ฆ Archive Management
- Create archives (ZIP format) from selected files/folders
- Extract archives (ZIP, TAR.GZ, TGZ) to current or custom directory
- Bulk archive creation for multiple items
- Archive preview before extraction
๐จ Modern Interface
- Responsive design works on desktop and mobile
- Path-based navigation with autocomplete suggestions
- File type icons with visual file identification
- Drag-and-drop file uploads
- Real-time feedback with SweetAlert2 notifications
โก Advanced Features
- Path autocomplete for quick navigation
- File size formatting (B, KB, MB, GB)
- Last modified timestamps
- Directory breadcrumbs
- Keyboard shortcuts for common actions
๐ฆ Installation
Via Composer (Recommended)
Manual Installation
- Download the latest release
- Extract to your project directory
- Install dependencies:
composer install
๐ Quick Start
Basic Usage
Using Configuration File
Create filemanager-config.php:
Then in your PHP file:
โ๏ธ Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
root_path |
string | $_SERVER['DOCUMENT_ROOT'] |
Root directory for file operations |
upload_path |
string | {root_path}/uploads |
Directory for file uploads |
password |
string | 'admin123' |
Authentication password |
max_file_size |
integer | 52428800 (50MB) |
Maximum file upload size in bytes |
allowed_extensions |
array | See below | Array of allowed file extensions |
session_name |
string | 'php_file_manager' |
Session name for authentication |
enable_compression |
boolean | true |
Enable file compression features |
enable_bulk_operations |
boolean | true |
Enable bulk file operations |
enable_archive_operations |
boolean | true |
Enable archive creation/extraction |
Default Allowed Extensions
๐ฏ Usage Examples
Custom Authentication
Restricted File Types
Production Configuration
๐ก๏ธ Security Considerations
- Change Default Password: Always use a strong, unique password
- Restrict File Types: Only allow necessary file extensions
- Set Upload Limits: Configure appropriate file size limits
- Use HTTPS: Always serve over encrypted connections
- Restrict Access: Use
.htaccessor server config to limit access - Regular Updates: Keep the package updated for security patches
Example .htaccess Protection
๐ง Advanced Usage
Custom Resource Management
Integration with Frameworks
Laravel Integration
Symfony Integration
๐จ Customization
Custom Styling
Override the default CSS by including your own stylesheet after the package CSS:
Custom JavaScript
Extend functionality by adding your own JavaScript:
๐งช Development
Requirements
- PHP 8.0 or higher
- Composer
- Extensions: zip, phar, json, session
Setup Development Environment
Running Tests
Code Style
๐ Changelog
Version 1.0.0
- Initial release
- Complete file management functionality
- PSR-12 compliant code
- Composer package structure
- Comprehensive documentation
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Contribution Guidelines
- Follow PSR-12 coding standards
- Add tests for new functionality
- Update documentation as needed
- Ensure backward compatibility
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Built with modern PHP practices
- Uses SweetAlert2 for notifications
- Inspired by popular file managers
- Community feedback and contributions
๐ Support
- Issues: GitHub Issues
- Documentation: GitHub Wiki
- Discussions: GitHub Discussions
๐ Links
Made with โค๏ธ by Dhiraj Dhiman
Features
- ๐ Secure Authentication - Password-protected access with session management
- ๐ File & Folder Operations - Create, rename, delete, copy, and move files/folders
- ๐ฆ Archive Support - Create and extract ZIP/TAR.GZ archives
- ๏ฟฝ Bulk Operations - Select and operate on multiple files simultaneously
- ๐ค๏ธ Path-Based Navigation - Direct path input with auto-suggestions
- ๐ File Editor - Built-in text editor for code files
- โฌ๏ธ File Upload - Drag and drop file uploads
- ๐จ Modern UI - Clean, responsive interface with dark mode support
- ๐ Search & Filter - Quick file search and filtering
- ๐ File Information - File sizes, modification dates, and permissions
Installation
Via Composer (Recommended)
Manual Installation
- Download the latest release from GitHub
- Extract files to your web directory
- Install dependencies:
Quick Start
Basic Usage
Advanced Configuration
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
root_path |
string | $_SERVER['DOCUMENT_ROOT'] |
Root directory for file operations |
upload_path |
string | {root_path}/uploads |
Directory for uploaded files |
max_file_size |
int | 52428800 (50MB) |
Maximum file upload size in bytes |
allowed_extensions |
array | See config | Array of allowed file extensions |
password |
string | admin123 |
Authentication password |
session_name |
string | php_file_manager |
Session variable name |
enable_compression |
bool | true |
Enable/disable compression features |
enable_bulk_operations |
bool | true |
Enable/disable bulk operations |
enable_archive_operations |
bool | true |
Enable/disable archive operations |
Security Features
- Path Validation - Prevents directory traversal attacks
- File Type Filtering - Configurable allowed file extensions
- Size Limits - Configurable file size restrictions
- Session Management - Secure session handling with timeouts
- Input Sanitization - All user inputs are sanitized
- CSRF Protection - Cross-Site Request Forgery protection
API Reference
FileManager Class
Constructor
Methods
Configuration Class
Methods
FileController Class
File Operations
Bulk Operations
Archive Operations
Frontend Features
Path-Based Navigation
- Direct path input with
/prefix for absolute paths - Auto-suggestions while typing paths
- Keyboard navigation (arrow keys, enter)
- Automatic directory creation
Bulk Operations
- Multi-select with checkboxes
- Keyboard shortcuts (Ctrl+A for select all)
- Bulk copy, move, delete, and archive operations
File Editor
- Syntax highlighting for common file types
- Auto-save functionality
- Full-screen editing mode
Browser Support
- Chrome 60+
- Firefox 55+
- Safari 11+
- Edge 16+
Requirements
- PHP 8.0 or higher
- PHP Extensions:
zip,phar,json - Web server (Apache, Nginx, etc.)
Development
Running Tests
Code Style Check
Static Analysis
Fix Code Style
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
v1.0.0 (2025-01-29)
- Initial release
- Complete file management functionality
- Path-based navigation system
- Bulk operations support
- Archive handling (ZIP/TAR.GZ)
- Modern responsive UI
- PSR-12 compliant code
- Comprehensive documentation
Support
Author
Dhiraj Dhiman
- GitHub: @dhiraj-nishthatechnosoft
- Email: [email protected]
โญ If you find this project useful, please consider giving it a star on GitHub!
- ๐ Markdown files
- ๐ฆ Archive files
- ๐ผ๏ธ Image files
- ๐ต Audio files
- ๐ฌ Video files
- ๐ Other files
Security Considerations
- Change Default Password: Always change the default password in production
- Restrict Access: Consider additional IP-based restrictions
- File Permissions: Set appropriate file system permissions
- HTTPS: Use HTTPS in production environments
- File Type Validation: The system restricts editable file types for security
Requirements
- PHP 5.6 or higher
- Web server (Apache, Nginx, etc.)
- ZipArchive extension for archive functionality
- Write permissions on the target directory
Troubleshooting
Common Issues
- Permission Denied: Ensure web server has write permissions
- Upload Fails: Check
upload_max_filesizeandpost_max_sizein php.ini - Archive Creation Fails: Ensure ZipArchive extension is installed
- Can't Edit Files: Check if file extension is in ALLOWED_EXTENSIONS array
Error Messages
- "File not found": File doesn't exist or was moved
- "Permission denied": Insufficient file system permissions
- "Upload failed": File too large or upload directory not writable
- "Archive creation failed": ZipArchive extension not available
License
This project is open source and available under the MIT License.
Contributing
Feel free to submit issues, fork the repository, and create pull requests for any improvements.
Changelog
Version 1.0
- Initial release
- Basic file management operations
- Archive creation functionality
- Responsive web interface
- Security features
All versions of php-file-manager with dependencies
ext-zip Version *
ext-phar Version *
ext-json Version *
ext-session Version *