Download the PHP package ntdash/zipstore without Composer

On this page you can find all versions of the php package ntdash/zipstore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zipstore

ZIPStore

A PHP library for generating and streaming virtual ZIP archives on-the-fly without consuming disk space. Perfect for constraint environments where storage is limited.

Table of Contents

Overview

ZipStore enables you to add files to a virtual ZIP store and then read from it as if it were a native file resource, using familiar seek() and read() operations. The library generates ZIP file components on-demand while reading file contents live, making it ideal for serving large file downloads with minimal memory and disk overhead.

Call open() at any point to capture a snapshot of the store's current entry list into an independent OpenedStore — a seekable read view over the ZIP data as it stood at that moment. The Store itself remains open: you can keep calling addFile() after open(), and those additions will not affect already-taken snapshots. Calling open() multiple times yields independent OpenedStore instances, each with its own cursor, each reflecting the state of the store at the time of that call.

Key Features

Important Limitations

ZipStore focuses on stream-friendly ZIP generation and does not support:

These limitations are by design to keep the library lightweight and performant. For complex ZIP operations, consider using php-zip extension directly.

Requirements

Installation

Install via Composer:

Quick Start

Basic Usage

Advanced Reading

Adding Files with Custom Names

Handling Duplicates

Control how duplicate entry names are handled:

Stream to Output

Common pattern for sending ZIP to client. open() snapshots the store at this point — call getSize() on the returned OpenedStore to get the exact byte count before streaming begins:

Advanced Features

Custom Entry File Handlers

By default, ZipStore uses the file system to read file contents. You can provide custom implementations of ZipStoreEntryFile to handle non-filesystem sources like database BLOBs, S3 objects, or in-memory streams.

Registering Custom File Handler

Set your custom file handler globally before creating entries:

Important: The custom class must implement both __serialize() and __unserialize() magic methods for proper serialization support.

Seeking Behavior

The OpenedStore::seek() method supports all fseek() behaviors:

Configuration Options

Store Constructor Options

Architecture

Core Components

Examples

Simple File Download Server

Backup Logs Files

ZIP From Database BLOBs

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of zipstore with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
nesbot/carbon Version ^2.73.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ntdash/zipstore contains the following files

Loading the files please wait ...