PHP code example of orkhanahmadov / laravel-zip-validator
1. Go to this page and download the library: Download orkhanahmadov/laravel-zip-validator 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/ */
orkhanahmadov / laravel-zip-validator example snippets
new ZipContent('*.jpg');
php
use Orkhanahmadov\ZipValidator\Rules\ZipContent;
public function rules()
{
return [
'file' => [
'
php
new ZipContent(['thumb.jpg' => 100000]);
php
new ZipContent(['thumb.jpg' => 100000, 'logo.png']);
php
new ZipContent('thumb.jpg|thumb.png|thumb.svg');
php
new ZipContent(['thumb.jpg|thumb.png' => 100000]);
php
new ZipContent(['thumb.jpg', 'style.css'], false);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.