diff --git a/README.md b/README.md index d354d4f..5a0d933 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,33 @@ unrar/LICENSE.txt for details. Some modifications have been applied to the UnRAR library, mainly to allow streaming extraction of files without using threads. -[![Build Status Appveyor](https://ci.appveyor.com/api/projects/status/cbgpepx6kyax2198/branch/master?svg=true)](https://ci.appveyor.com/project/cataphract/php-rar/branch/master) -[![Build Status Travis](https://travis-ci.org/cataphract/php-rar.svg?branch=master)](https://travis-ci.org/cataphract/php-rar) -[![codecov](https://codecov.io/gh/cataphract/php-rar/branch/master/graph/badge.svg)](https://codecov.io/gh/cataphract/php-rar) +| Version | Status | +|---------|------------------------------| +| master | unmaintened :x: | +| v4.x | maintened :white_check_mark: | + +Maintained PHP Versions compatibility: + +| PHP Version | Status | +|-------------|------------------------| +| 5.x | no :x: | +| 7.x | no :x: | +| 8.0 | yes :white_check_mark: | +| 8.1 | yes :white_check_mark: | +| 8.2 | yes :white_check_mark: | +| 8.3 | yes :white_check_mark: | +| 8.4 | yes :white_check_mark: | +| 8.5 | yes :white_check_mark: | + +Installation system support: + +| Platform | Status | +|----------|------------------------| +| PECL | no :x: | +| PIE | yes :white_check_mark: | + +To install the extension, use PIE (PHP Installer Extension) with a command like: + +```bash +pie install php-win-ext/rar +``` diff --git a/appveyor.bat b/appveyor.bat deleted file mode 100644 index 24dd8e9..0000000 --- a/appveyor.bat +++ /dev/null @@ -1,31 +0,0 @@ -echo Running appveyor.bat -echo on - -CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat" - -IF NOT EXIST "C:\projects\php-sdk" ( - wget -nv http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip - 7z x -y php-sdk-binary-tools-20110915.zip -oC:\projects\php-sdk -) -IF NOT EXIST "C:\projects\php-src\Release_TS\php7ts.lib" ( - git clone --depth=1 --branch=PHP-7.1 https://github.com/php/php-src C:\projects\php-src - wget -nv http://windows.php.net/downloads/php-sdk/deps-7.1-vc14-x86.7z - 7z x -y deps-7.1-vc14-x86.7z -oC:\projects\php-src - CALL C:\projects\php-sdk\bin\phpsdk_setvars.bat - cd C:\projects\php-src - CALL buildconf.bat - CALL configure.bat --disable-all --enable-cli --with-config-file-scan-dir=C:\projects\extension\bin\modules.d --with-prefix=%APPVEYOR_BUILD_FOLDER%\bin --with-php-build=deps - nmake -) ELSE ( - echo php7ts.lib already exists - cd C:\projects\php-src - CALL C:\projects\php-sdk\bin\phpsdk_setvars.bat -) - -CALL buildconf.bat --force --add-modules-dir=%APPVEYOR_BUILD_FOLDER%\.. -CALL configure.bat --disable-all --enable-cli --enable-rar=shared --with-config-file-scan-dir=C:\projects\extension\bin\modules.d --with-prefix=%APPVEYOR_BUILD_FOLDER%\bin --with-php-build=deps -nmake || exit /b -rmdir Release_TS\php-rar /S /Q -del /S /Q "Release_TS\*.sbr" - -copy %APPVEYOR_BUILD_FOLDER%\run-tests8.php C:\projects\php-src\run-tests.php diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6560b7f..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Based on igbinary's appveyor config. - -version: '{branch}.{build}' -install: - - cmd: choco feature enable -n=allowGlobalConfirmation - - cmd: cinst wget - - cmd: mkdir %APPVEYOR_BUILD_FOLDER%\bin - -build_script: - - cmd: "%APPVEYOR_BUILD_FOLDER%\\appveyor.bat" - -test_script: - - cmd: cd C:\projects\php-src - - cmd: set NO_INTERACTION=1 - - cmd: set REPORT_EXIT_STATUS=1 - - cmd: set TZ=UTC - - cmd: 'nmake test TESTS="--show-diff --set-timeout 30 -d extension=C:\projects\php-src\Release_TS\php_rar.dll %APPVEYOR_BUILD_FOLDER%\tests"' - -after_test: -# - cmd: dir /S C:\projects\php-src\Release_TS - - cmd: 'del C:\projects\php-src\Release_TS\php_rar.*' - -cache: - - C:\ProgramData\chocolatey\lib -> appveyor.yml - - C:\projects\php-src - - C:\projects\php-sdk diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 0f5fb94..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,85 +0,0 @@ -jobs: - - template: azure-template.yml - parameters: - name: php_5_3_valgrind - displayName: PHP 5.3 ZTS (valgrind, clang) - phpVersion: '5.3' - clang: true - valgrind: true - zts: true - - - template: azure-template.yml - parameters: - name: php_5_4 - displayName: PHP 5.4 - phpVersion: '5.4' - - - template: azure-template.yml - parameters: - name: php_5_5 - displayName: PHP 5.5 - phpVersion: '5.5' - - - template: azure-template.yml - parameters: - name: php_5_6 - displayName: PHP 5.6 - phpVersion: '5.6' - - - template: azure-template.yml - parameters: - name: php_5_6_valgrind - displayName: PHP 5.6 ZTS (valgrind, clang) - phpVersion: '5.6' - clang: true - valgrind: true - zts: true - - - template: azure-template.yml - parameters: - name: php_7_0 - displayName: PHP 7.0 - phpVersion: '7.0' - - - template: azure-template.yml - parameters: - name: php_7_1 - displayName: PHP 7.1 - phpVersion: '7.1' - - - template: azure-template.yml - parameters: - name: php_7_2 - displayName: PHP 7.2 - phpVersion: '7.2' - - - template: azure-template.yml - parameters: - name: php_7_3 - displayName: PHP 7.3 - phpVersion: '7.3' - - - template: azure-template.yml - parameters: - name: php_7_4 - displayName: PHP 7.4 ZTS (valgrind, clang) - phpVersion: '7.4' - clang: true - valgrind: true - zts: true - - - template: azure-template.yml - parameters: - name: php_8_0 - displayName: PHP 8.0 ZTS - phpVersion: '8.0' - zts: true - publishCoverage: true - - - template: azure-template.yml - parameters: - name: php_8_0_valgrind - displayName: PHP 8.0 (valgrind, clang) - phpVersion: '8.0' - clang: true - valgrind: true diff --git a/azure-template.yml b/azure-template.yml deleted file mode 100644 index b23fda0..0000000 --- a/azure-template.yml +++ /dev/null @@ -1,65 +0,0 @@ -parameters: - name: ~ - displayName: ~ - phpVersion: bundled - imageName: ubuntu-20.04 - zts: false - clang: false - publishCoverage: false - valgrind: false - -jobs: - - job: ${{ parameters.name }} - displayName: ${{ parameters.displayName }} - pool: - vmImage: ${{ parameters.imageName }} - - variables: - ${{ if eq(parameters.clang, true) }}: - CC: clang - CXX: clang++ - - steps: - - checkout: self - displayName: Checkout - clean: true - submodules: recursive - - - bash: | - source test_funcs.sh - install_php ${{ parameters.phpVersion }} ${{ parameters.zts }} - displayName: Install PHP ${{ parameters.phpVersion }} - - - ${{ if eq(parameters.valgrind, true) }}: - - bash: > - sudo apt-get install valgrind - displayName: "Install Valgrind" - - - script: | - source test_funcs.sh - build_ext ${{ parameters.phpVersion }} ${{ parameters.zts }} ${{ parameters.publishCoverage }} - displayName: Build extension - - - script: | - source test_funcs.sh - run_tests ${{ parameters.phpVersion }} ${{ parameters.zts }} ${{ parameters.publishCoverage }} - ${{ if eq(parameters.valgrind, true) }}: - env: - RUN_TESTS_FLAGS: -m - displayName: Run tests - - - task: PublishTestResults@2 - displayName: Publish test results - condition: succeededOrFailed() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'report.xml' - searchFolder: '$(System.DefaultWorkingDirectory)' - mergeTestResults: true - - - ${{ if eq(parameters.publishCoverage, true) }}: - - bash: > - bash <(curl -s https://codecov.io/bash) - displayName: "Publish coverage (Codecov)" - env: - CODECOV_TOKEN: $(CODECOV_TOKEN) diff --git a/composer.json b/composer.json index af395a3..5493a5d 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "php-win-ext/rar", "type": "php-ext", "license": [ - "PHP License" + "PHP-3.01" ], "authors": [ {