Download the PHP package csesumonpro/phpzipmaker without Composer

On this page you can find all versions of the php package csesumonpro/phpzipmaker. 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 phpzipmaker

Total Downloads License Latest Stable Version

PHP Zip Maker

Php zip maker is a simple library to create archive for your project with the selected file or folder.

Installation

Install the package through Composer.

For PHP 5.6 or 5.6~: composer require csesumonpro/phpzipmaker

Note: If your project doesn't have any composer.json file, you can use it by downloading the zip file from the github repository.

Configuration

Just need to set an .xml file in your project root with the following code: and the name must be phpzipmaker.xml

XML Description

archiveName - The name of the archive file. (optional) It will automatically get the name of your project when you do not provide any name.

archiveExtension - The extension of the archive file. (optional) It will automatically set .zip extension when you do not provide any extension.
Supported Extensions:

archiveFormDirectory - The directory of the archive file. (optional) It will automatically get the directory path of your project when you do not provide any directory path.

archiveToDirectory - The directory where the archive file will be saved. (optional) It will automatically get the directory path of your project when you do not provide any directory path.

include-file - The file that you want to include in the archive file. (required)

exclude-file - The file that you want to exclude in the archive file. (optional)

include-directory - The directory that you want to include in the archive file. (optional)

exclude-directory - The directory that you want to exclude in the archive file. (optional)

Usage

It's very easy to make an archive through the above XML config just run the below command from your project root.

php ./vendor/csesumonpro/phpzipmaker/phpzipmaker.php

UseCase

Suppose you have a project with the following structure:

If you want to include a file just use it like this:

If you want to include a file from a directory that directory already excluded you can do it

if you want to include a directory which directory have many other files and directory

if you want to exclude a file from an included directory you can do it

If you want to exclude a directory that directory already included you can do it

Reference

Packagist || Github

License

The php zip maker is an open-sourced software licensed under the MIT license


All versions of phpzipmaker with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7.0|^8.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 csesumonpro/phpzipmaker contains the following files

Loading the files please wait ....