Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via composer

maennchen/zipstream-php 3.1.0

ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.
Package summary
Share
0
issues
1
license
1
MIT
Package created
13 Nov 2013
Version published
21 Jun 2023
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
maennchen/zipstream-php@3.1.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of maennchen/zipstream-php 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does maennchen/zipstream-php do?

The maennchen/zipstream-php package is a PHP library designed for streaming zip files dynamically. It offers a faster, disk-saving method of working with zipped files, as it eliminates the need to write zip files to the disk on your server. Furthermore, it's compatible with S3 buckets and any PSR7 Stream. The package is an ideal solution for applications that need to rapidly download zip files without affecting server performance.

How do you use maennchen/zipstream-php?

To use maennchen/zipstream-php, you first need to install it via Composer, the dependency manager for PHP. You can add the package to your project's dependencies with the following command:

composer require maennchen/zipstream-php

Then, you can use it in your PHP code. Here's a basic example showing how to create a ZipStream object and add files:

// Autoload the dependencies
require 'vendor/autoload.php';

// create a new zipstream object
$zip = new ZipStream\ZipStream(
    outputName: 'example.zip',
    sendHttpHeaders: true,  // enable output of HTTP headers
);

// create a file named 'hello.txt'
$zip->addFile(
    fileName: 'hello.txt',
    data: 'This is the contents of hello.txt',
);

// add a file named 'some_image.jpg' from a local file 'path/to/image.jpg'
$zip->addFileFromPath(
    fileName: 'some_image.jpg',
    path: 'path/to/image.jpg',
);

// finish the zip stream
$zip->finish();

Where are the maennchen/zipstream-php docs?

The comprehensive documentation for maennchen/zipstream-php is readily available online. To access a detailed guide featuring install instructions, usage examples, troubleshooting advice, and more, visit https://maennchen.github.io/ZipStream-PHP/.