diff --git a/.gitattributes b/.gitattributes index 029da0a..eba151e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,5 +3,6 @@ .gitignore export-ignore .php_cs export-ignore bootstrap.php export-ignore +logo.svg export-ignore phpunit.xml export-ignore tests export-ignore diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be8b354..cbade9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: extensions: bz2, dom, iconv, fileinfo, openssl, xml, zlib key: cache-v1 PHPUNIT_COVERAGE: 0 + PHP_INI: date.timezone='UTC', memory_limit=-1, opcache.enable=1, opcache.enable_cli=1 strategy: matrix: @@ -34,14 +35,31 @@ jobs: if: matrix.os == 'ubuntu-latest' run: sudo apt-get install unzip p7zip-full + - + name: Set JIT args + if: matrix.php == '8.0' + run: echo "PHP_INI=\"$PHP_INI, opcache.jit_buffer_size=256M\"" >> $GITHUB_ENV + - name: Install PHP with extensions + if: matrix.php == '7.4' uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} + php-version: 7.4 extensions: ${{ env.extensions }} coverage: pcov - ini-values: date.timezone='UTC', memory_limit=-1 + ini-values: ${{ env.PHP_INI }} + tools: composer:v2 + + - + name: Install PHP 8.0 with extensions + if: matrix.php == '8.0' + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: ${{ env.extensions }} + coverage: pcov + ini-values: date.timezone='UTC', memory_limit=-1, opcache.enable=1, opcache.enable_cli=1, opcache.jit_buffer_size=256M tools: composer:v2 - diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 0aa5464..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,43 +0,0 @@ -checks: - php: true - -filter: - paths: [ "src/*" ] - excluded_paths: [ "vendor/*", "tests/*" ] - -tools: - external_code_coverage: false - -build: - environment: - php: - version: 8.0 - pecl_extensions: - - zip - mysql: false - node: false - postgresql: false - mongodb: false - elasticsearch: false - redis: false - memcached: false - neo4j: false - rabbitmq: false - nodes: - analysis: - environment: - php: 8.0 - tests: - override: - - php-scrutinizer-run - dependencies: - before: - - composer self-update - - composer update --no-interaction --prefer-dist --no-progress - tests: - before: - - - command: composer test:coverage - coverage: - file: 'build/logs/clover.xml' - format: 'clover' diff --git a/README.RU.md b/README.RU.md index 1c9ed17..d336771 100644 --- a/README.RU.md +++ b/README.RU.md @@ -1,12 +1,11 @@ -`PhpZip` -======== +
+ `PhpZip` - php библиотека для продвинутой работы с ZIP-архивами. -[![Build Status](https://travis-ci.org/Ne-Lexa/php-zip.svg?branch=master)](https://travis-ci.org/Ne-Lexa/php-zip) +[![Build Status](https://github.com/Ne-Lexa/php-zip/workflows/build/badge.svg)](https://github.com/Ne-Lexa/php-zip/actions) [![Code Coverage](https://scrutinizer-ci.com/g/Ne-Lexa/php-zip/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Ne-Lexa/php-zip/?branch=master) [![Latest Stable Version](https://poser.pugx.org/nelexa/zip/v/stable)](https://packagist.org/packages/nelexa/zip) [![Total Downloads](https://poser.pugx.org/nelexa/zip/downloads)](https://packagist.org/packages/nelexa/zip) -[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D%205.5-8892BF.svg)](https://php.net/) [![License](https://poser.pugx.org/nelexa/zip/license)](https://packagist.org/packages/nelexa/zip) [English Documentation](README.md) diff --git a/README.md b/README.md index 53deb81..16eae49 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -`PhpZip` -======== + + `PhpZip` is a php-library for extended work with ZIP-archives. [![Build Status](https://github.com/Ne-Lexa/php-zip/workflows/build/badge.svg)](https://github.com/Ne-Lexa/php-zip/actions) diff --git a/composer.json b/composer.json index 188afa5..758f45a 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,6 @@ "archive", "extract", "winzip", - "zipalign", "ziparchive" ], "homepage": "https://github.com/Ne-Lexa/php-zip", diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..3ed9c84 --- /dev/null +++ b/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file