A PHP library providing a unified interface for reading, extracting, and creating archives across 20+ formats with automatic driver selection.
UnifiedArchive is a PHP library that provides a unified interface for managing archive files across multiple formats like ZIP, RAR, 7z, and TAR. It solves the problem of dealing with different archive libraries and system dependencies by automatically selecting the best available driver, ensuring consistent functionality regardless of the server configuration.
PHP developers who need to handle archive operations (reading, extracting, creating) in applications that must work across varied hosting environments without relying on specific PHP extensions or system utilities.
Developers choose UnifiedArchive for its seamless abstraction over multiple archive formats and drivers, eliminating compatibility headaches and providing a single, reliable API that works everywhere, even when system configurations cannot be modified.
UnifiedArchive - an archive manager with unified interface for different formats (bundled with cli utility). Supports all formats with basic operations (reading, extracting and creation) and popular formats specific features (compression level, password-protection, comment)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a single, consistent interface for over 20 archive formats, abstracting the complexities of different drivers and ensuring cross-environment compatibility without needing to learn multiple libraries.
Automatically chooses the best available driver—from PHP extensions to pure PHP—based on system configuration, optimizing performance and portability as highlighted in the 'How it works' section.
Supports advanced operations like reading, extracting, creating, appending, and removing files, with format-specific capabilities such as password protection and compression level adjustment for popular formats.
Includes a console archive manager for command-line operations without external software, enhancing portability for scripts and tools, as demonstrated in the 'Built-in console archive manager' section.
Performance varies significantly depending on the selected driver; pure PHP drivers are slower than native extensions, which can impact high-throughput applications, as acknowledged in the driver hierarchy.
Requires managing multiple drivers, some of which depend on external utilities or specific PHP extensions, leading to installation and maintenance overhead, as seen in the 'Install new driver' instructions.
While basic operations are supported for many formats, advanced features like password protection are only available for popular formats like ZIP, RAR, and 7z, leaving gaps for less common types.