From 1fbf6c466dc01d63ba119e4614ef9190ee9d87ff Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 3 Sep 2018 09:39:02 -0400 Subject: add README.mkd, examples/examples.json, and minor comment cleanups --- examples/examples.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 examples/examples.json (limited to 'examples/examples.json') 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." + }] +} + -- cgit v1.2.3