Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ you need dedicated 1:1 support, check out the options available on
- Only 64bit Architecture is supported.
- The class `ZipStream\Option\Method` has been replaced with the enum
`ZipStream\CompressionMethod`.
- Most clases have been flagged as `@internal` and should not be used from the
- Most classes have been flagged as `@internal` and should not be used from the
outside.
If you're using internal resources to extend this library, please open an
issue so that a clean interface can be added & published.
Expand All @@ -100,7 +100,7 @@ you need dedicated 1:1 support, check out the options available on
### Archive Options

- The class `ZipStream\Option\Archive` has been replaced in favor of named
arguments in the `ZipStream\ZipStream` constuctor.
arguments in the `ZipStream\ZipStream` constructor.
- The archive options `largeFileSize` & `largeFileMethod` has been removed. If
you want different `compressionMethods` based on the file size, you'll have to
implement this yourself.
Expand All @@ -113,7 +113,7 @@ you need dedicated 1:1 support, check out the options available on
filesizes this way.
- The archive option `deflateLevel` has been replaced with the option
`defaultDeflateLevel` and can be overridden for every file.
- The first argument (`name`) of the `ZipStream\ZipStream` constuctor has been
- The first argument (`name`) of the `ZipStream\ZipStream` constructor has been
replaced with the named argument `outputName`.
- Headers are now also sent if the `outputName` is empty. If you do not want to
automatically send http headers, set `sendHttpHeaders` to `false`.
Expand Down
2 changes: 1 addition & 1 deletion guides/ContentLength.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using the options ``SIMULATION_STRICT`` or ``SIMULATION_LAX`` in the

In the ``SIMULATION_STRICT`` mode, ``ZipStream`` will not allow to calculate the
size based on reading the whole file. ``SIMULATION_LAX`` will read the whole
file if neccessary.
file if necessary.

``SIMULATION_STRICT`` is therefore useful to make sure that the size can be
calculated efficiently.
Expand Down
2 changes: 1 addition & 1 deletion guides/Options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Here is the full list of options available to you. You can also have a look at

$zip = new ZipStream(
// Define output stream
// (argument is eiter a resource or implementing
// (argument is either a resource or implementing
// `Psr\Http\Message\StreamInterface`)
//
// Setup with `psr/http-message` & `guzzlehttp/psr7` dependencies
Expand Down
4 changes: 2 additions & 2 deletions guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ as well:
If ``composer install`` yields the following error, your installation is missing
the `mbstring extension <https://www.php.net/manual/en/book.mbstring.php>`_,
either `install it <https://www.php.net/manual/en/mbstring.installation.php>`_
or run the follwoing command:
or run the following command:

.. code-block::
Your requirements could not be resolved to an installable set of packages.
Expand Down Expand Up @@ -120,7 +120,7 @@ It is recommended to extract with another tool like
`7-zip <https://www.7-zip.org/>`_.
See `#146 <https://github.com/maennchen/ZipStream-PHP/issues/146>`_.

It is the responsability of the client code to make sure that files are not
It is the responsibility of the client code to make sure that files are not
saved with the same path, as it is not possible for the library to figure it out
while streaming a zip.
See `#154 <https://github.com/maennchen/ZipStream-PHP/issues/154>`_.
2 changes: 1 addition & 1 deletion src/ZipStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function executeSimulation(): void
/**
* Write zip footer to stream.
*
* The clase is left in an unusable state after `finish`.
* The class is left in an unusable state after `finish`.
*
* ##### Example
*
Expand Down