diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-09-03 09:39:02 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-09-03 09:54:54 -0400 |
commit | 1fbf6c466dc01d63ba119e4614ef9190ee9d87ff (patch) | |
tree | 09c735cae623eb60995a9fcd2c85c61497a95b1d /examples | |
parent | eca42d118e439dc0f3796650e8a68992d513f8ee (diff) | |
download | zipstream-php-1fbf6c466dc01d63ba119e4614ef9190ee9d87ff.tar.bz2 zipstream-php-1fbf6c466dc01d63ba119e4614ef9190ee9d87ff.zip |
add README.mkd, examples/examples.json, and minor comment cleanups
Diffstat (limited to 'examples')
-rw-r--r-- | examples/examples.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/examples.json b/examples/examples.json new file mode 100644 index 0000000..f754a07 --- /dev/null +++ b/examples/examples.json @@ -0,0 +1,43 @@ +{ + "examples": [{ + "file": "01-simple.php", + "text": "Basic usage example." + }, { + "file": "02-add_file_from_path.php", + "text": "Add a file from a path." + }, { + "file": "03-add_stream.php", + "text": "Add file from a resource stream." + }, { + "file": "04-add.php", + "text": "Add a dynamically-generated file." + }, { + "file": "05-send.php", + "text": "Use `ZipStream::send`." + }, { + "file": "06-file_writer.php", + "text": "Write output to a file." + }, { + "file": "07-stream_writer.php", + "text": "Write output to a resource stream." + }, { + "file": "08-datetime.php", + "text": "Use a `DateTime` instance directly." + }, { + "file": "09-version.php", + "text": "Get the version of ZipStream." + }, { + "file": "10-archive_comment.php", + "text": "Add an archive comment." + }, { + "file": "11-add_file_comment.php", + "text": "Add a file comment." + }, { + "file": "12-add_file_methods.php", + "text": "Add a file with a specific compression method." + }, { + "file": "13-add_file_times.php", + "text": "Add a file with a specific modification time." + }] +} + |