PHP code example of renjiangfeng / zip-file-php
1. Go to this page and download the library: Download renjiangfeng/zip-file-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
renjiangfeng / zip-file-php example snippets
return [
//以下配置只会用到一种
'ignore_config' => [//不需要打包压缩的文件
"/node_modules",
"/public",
"/storage/*.key",
"/vendor",
".env",
"/.idea",
"/packages",
"/.git",
'index.php'
],
'need_config' => [ //需要打包压缩的文件
'/app',
'/config',
'index.php'
]
];