Download the PHP package renjiangfeng/zip-file-php without Composer

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

ZipFilePhp

zip-file-php是一个根据配置文件对文件进行压缩打包的laravel包

安装

composer require renjiangfeng/zip-file-php

开始使用

添加Provider
执行命令
会创建配置文件

分别有两种命令根据上面的两种配置进行打包压缩,配置文件写法基本沿用.gitignore文件的写法

1.忽略法

php artisan zip:ignore 会根据 ignore_config 的列表忽略掉不需要打包的文件,可以自定义压缩包的名称, php artisan zip:ignore demo 会打包为demo.zip在根目录,默认appignore.zip

2.罗列法

php artisan zip:forConfig 会根据 need_config 的罗列列表对文件进行打包,压缩包的名称同上,默认app.zip

备注

请确保PHP开启ZipArchive类,能实现压缩解压功能

Windows环境:

Windows环境:

  • 首先需要从官网上下载,下载地址 https://windows.php.net/downloads/pecl/releases/zip/
  • 打开官网列表后需要查找适合自己的PHP版本和系统的zip,我的PHP版本是7.1的,这里我选择的版本号是1.13.5
  • 下载完后解压,把里面的php_zip.dll文件放到PHP的扩展文件夹里 Linux可使用php -i | grep extension_dir找到扩展目录 Windows一般在PHP安装目录下的ext子目录中
  • php_zip.dll文件放进去后,打开PHP的配置文件php.ini,添加extension=php_zip.dll或者取消extension=php_zip.dll前的 :,保存后,重启apache/nginx服务器

All versions of zip-file-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 renjiangfeng/zip-file-php contains the following files

Loading the files please wait ....