Download the PHP package aerni/zipper without Composer

On this page you can find all versions of the php package aerni/zipper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zipper

Statamic Packagist version Packagist Total Downloads

Zipper

This addon provides a simple way to zip your Statamic assets on the fly.

Installation

Install the addon using Composer:

Publish the config of the package (optional):

The following config will be published to config/zipper.php:

Basic Usage

To create a zip of your assets, you have to call the zip tag followed by the variable containing your assets. The tag returns the URL to the route that handles creating the zip. The zip will be streamed without being saved to disk. You may opt in to save the file to disk to be used on subsequent requests.

Somewhere in your content files:

Somehwere in your views:

Filename

You may optionally pass a filename using the filename parameter. The filename defaults to the timestamp when the Zip object was created. The example below binds the name of the zip to the title of the page.

Link Expiry

If you want to expire your links after a certain time, you can either set the expiry globally in the config, or use the expiry parameter on the tag. The expiry is to be set in minutes. Note, that the expiry on the tag will overide the expiry in the config.

Cleanup Old References

Zipper saves an encrypted instance of the Zip class every time it returns a URL. These reference files are stored in storage/zipper/{id}. Whenever a user downloads a zip, Zipper will retrieve and decrypt the requested Zip instance.

With time, the amound of saved reference files will grow. To get this under control, Zipper provides a scheduled command that will daily delete old reference files. Just make sure that your Scheduler is running.

Cleanup Scopes

There are a couple of cleanup scopes you can define in the config:

Option Description
expired Only delete expired references files. This only affects references of zips that used the expiry option
all Delete all reference files excluding unexpired files. This will delete references of zips that didn't use the expiry option as well as expired zips. It will not delete unexpired zips.
force Delete all reference files including unexpired files. This will completely wipe all references.

Clean Command

You may also use the clean command to delete reference files at your will. The scope defaults to expired.

Advanced Usage

You may also use this addon programmatically as shown below.


All versions of zipper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
aws/aws-sdk-php Version ^3.224
laravel/framework Version ^9.0 || ^10.0
statamic/cms Version ^4.0
stechstudio/laravel-zipstream Version ^4.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aerni/zipper contains the following files

Loading the files please wait ....