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):

Basic Usage

To create a zip of your assets, you must 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, but you may opt-in to save the file to disk for later use.

Somewhere in your content files:

Somewhere in your views:

Filename

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

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 override the expiry in the config.

Cleanup Old References

Zipper saves an encrypted instance of the Zip class every time it returns a URL. This class is later retrieved and decrypted when a user downloads a zip. These reference files are stored in storage/zipper/{id}.

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

Cleanup Scopes

There are a couple of cleanup scopes to choose from 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 expired zips and zips that didn't use the expiry option. 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.2
laravel/framework Version ^10.0 || ^11.0
statamic/cms Version ^5.0
stechstudio/laravel-zipstream Version ^5.0
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 ....