Skip to content

Commit 780d63e

Browse files
committed
initital import
0 parents  commit 780d63e

File tree

4 files changed

+659
-0
lines changed

4 files changed

+659
-0
lines changed

COPYING

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (C) 2007-2009 Paul Duncan <[email protected]>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a
4+
copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included
12+
in all copies or substantial portions of the of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
DEALINGS IN THE SOFTWARE.

README

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
ZipStream 0.2.2 README
2+
======================
3+
4+
Please see the file COPYING for licensing and warranty information. The
5+
latest version of this software is available at the following URL:
6+
7+
http://pablotron.org/software/zipstream-php/
8+
9+
Overview
10+
========
11+
A fast and simple streaming zip file downloader for PHP. Here's a
12+
simple example:
13+
14+
# create a new zipstream object
15+
$zip = new ZipStream('example.zip');
16+
17+
# create a file named 'hello.txt'
18+
$zip->add_file('some_image.jpg', 'This is the contents of hello.txt');
19+
20+
# add a file named 'image.jpg' from a local file 'path/to/image.jpg'
21+
$zip->add_file_from_path('some_image.jpg', 'path/to/image.jpg');
22+
23+
# finish the zip stream
24+
$zip->finish();
25+
26+
You can also add comments, modify file timestamps, and customize (or
27+
disable) the HTTP headers. See the class file for details. There are a
28+
couple of additional examples in the initial release announcement at the
29+
following URL:
30+
31+
http://pablotron.org/?cid=1535
32+
33+
Requirements
34+
============
35+
36+
* PHP version 5.1.2 or newer (specifically, the hash_init and
37+
hash_file functions).
38+
39+
About the Author
40+
================
41+
Paul Duncan <[email protected]>
42+
http://pablotron.org/

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "maennchen/zipstream-php",
3+
"description": " ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.",
4+
"keywords": ["zip", "stream"],
5+
"type": "library",
6+
"license": "All Rights Reserved",
7+
"authors": [
8+
{
9+
"name": "Paul Duncan",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"php": ">= 5.3"
15+
},
16+
"autoload": {
17+
"classmap": [ "zipstream.php" ]
18+
}
19+
}

0 commit comments

Comments
 (0)