diff --git a/.github/workflows/ci-code-style.yml b/.github/workflows/ci-code-style.yml deleted file mode 100755 index e624fe4..0000000 --- a/.github/workflows/ci-code-style.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Code Style - -on: - - push - - fork - - pull_request - -jobs: - code-style: - runs-on: ubuntu-latest - name: "Check code style" - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - tools: composer:v2 - - run: composer install --dev - shell: bash - - run: composer cs:list - shell: bash diff --git a/.github/workflows/ci-leak-test.yml b/.github/workflows/ci-leak-test.yml deleted file mode 100755 index 74a9315..0000000 --- a/.github/workflows/ci-leak-test.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Leak Tests - -on: - - push - - fork - - pull_request - -jobs: - tests: - runs-on: ubuntu-latest - name: "Running unit tests for PHP ${{ matrix.php-version }}" - strategy: - fail-fast: false - matrix: - php-version: ['8.1'] - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - tools: composer:v2 - - run: composer install - shell: bash - - run: composer test:leak - shell: bash diff --git a/.github/workflows/ci-mutant-test.yml b/.github/workflows/ci-mutant-test.yml deleted file mode 100755 index ab66989..0000000 --- a/.github/workflows/ci-mutant-test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Mutant Test - -on: - - push - - fork - - pull_request - -jobs: - tests: - runs-on: ubuntu-latest - name: "Running mutant tests for PHP 8.1" - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - tools: composer:v2 - - run: composer install - shell: bash - - run: composer test:mutant - shell: bash diff --git a/.github/workflows/ci-phpstan.yml b/.github/workflows/ci-phpstan.yml deleted file mode 100755 index b5d4b26..0000000 --- a/.github/workflows/ci-phpstan.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: PHPStan - -on: - - push - - fork - - pull_request - -jobs: - tests: - runs-on: ubuntu-latest - name: "Check PHPStan" - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - tools: composer:v2 - - run: composer install - shell: bash - - run: composer phpstan - shell: bash diff --git a/.github/workflows/ci-psalm.yml b/.github/workflows/ci-psalm.yml deleted file mode 100755 index 359c82d..0000000 --- a/.github/workflows/ci-psalm.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Psalm - -on: - - push - - fork - - pull_request - -jobs: - tests: - runs-on: ubuntu-latest - name: "Check Psalm" - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - tools: composer:v2 - - run: composer install - shell: bash - - run: composer psalm - shell: bash diff --git a/.github/workflows/ci-unit-test-coverage.yml b/.github/workflows/ci-unit-test-coverage.yml deleted file mode 100755 index 3a58517..0000000 --- a/.github/workflows/ci-unit-test-coverage.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Unit Test Coverage Report - -on: - - push - - fork - - pull_request - -jobs: - coverage: - runs-on: ubuntu-latest - name: "Generate unit test coverage report for PHP ${{ matrix.php-version }}" - strategy: - fail-fast: false - env: - XDEBUG_MODE: coverage - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - extensions: xdebug - tools: composer:v2 - - run: composer install - shell: bash - - run: composer test:coverage:xml - shell: bash - - uses: paambaati/codeclimate-action@v3.0.0 - env: - CC_TEST_REPORTER_ID: 203d856fbc3ebebe66cc94cccde4429973298c7fb919df64a1557850cc9c8345 - with: - coverageLocations: coverage.xml:clover - - uses: actions/upload-artifact@v2 - with: - name: coverage.xml - path: coverage.xml diff --git a/.github/workflows/ci-unit-test.yml b/.github/workflows/ci-unit-test.yml deleted file mode 100755 index e4e7eb5..0000000 --- a/.github/workflows/ci-unit-test.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Unit Tests - -on: - - push - - fork - - pull_request - -jobs: - tests: - runs-on: ubuntu-latest - name: "Running unit tests for PHP ${{ matrix.php-version }}" - strategy: - fail-fast: false - matrix: - php-version: ['8.1'] - steps: - - uses: actions/checkout@v2 - - name: Cache Composer dependencies - uses: actions/cache@v2 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - tools: composer:v2 - - run: composer install - shell: bash - - run: composer test - shell: bash diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php deleted file mode 100755 index 94694c7..0000000 --- a/.php-cs-fixer.dist.php +++ /dev/null @@ -1,23 +0,0 @@ -in([ - __DIR__.'/src/', - __DIR__.'/tests/' - ]) - ->exclude('var') -; - -return (new PhpCsFixer\Config()) - ->setRules([ - '@Symfony' => true, - 'method_argument_space' => [ - 'on_multiline' => 'ensure_fully_multiline', - 'keep_multiple_spaces_after_comma' => true - ], - 'declare_strict_types' => true, - 'single_quote' => false, - 'phpdoc_to_comment' => false - ]) - ->setFinder($finder) -; diff --git a/Readme.md b/Readme.md index 77874d9..913187c 100755 --- a/Readme.md +++ b/Readme.md @@ -1,28 +1,3 @@ -[![GitHub](https://img.shields.io/github/license/Syndesi/webdav)](https://github.com/Syndesi/webdav/blob/main/LICENSE) -![Packagist PHP Version Support (specify version)](https://img.shields.io/packagist/php-v/syndesi/webdav/dev-main) -![Packagist Version](https://img.shields.io/packagist/v/syndesi/webdav) -![Packagist Downloads](https://img.shields.io/packagist/dm/syndesi/webdav) +# Enhanced WebDAV Ecosystem: Documentation -[![Unit Tests](https://github.com/Syndesi/webdav/actions/workflows/ci-unit-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-unit-test.yml) -[![Mutant Test](https://github.com/Syndesi/webdav/actions/workflows/ci-mutant-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-mutant-test.yml) -[![Leak Tests](https://github.com/Syndesi/webdav/actions/workflows/ci-leak-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-leak-test.yml) -[![PHPStan](https://github.com/Syndesi/webdav/actions/workflows/ci-phpstan.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-phpstan.yml) -[![Psalm](https://github.com/Syndesi/webdav/actions/workflows/ci-psalm.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-psalm.yml) -[![Code Style](https://github.com/Syndesi/webdav/actions/workflows/ci-code-style.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-code-style.yml) -[![YML lint](https://github.com/Syndesi/webdav/actions/workflows/ci-yml-lint.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-yml-lint.yml) -[![Markdown lint](https://github.com/Syndesi/webdav/actions/workflows/ci-markdown-lint.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-markdown-lint.yml) -[![Test Coverage](https://api.codeclimate.com/v1/badges/3a6aef038839e5bb5b59/test_coverage)](https://codeclimate.com/github/Syndesi/webdav/test_coverage) -[![Maintainability](https://api.codeclimate.com/v1/badges/3a6aef038839e5bb5b59/maintainability)](https://codeclimate.com/github/Syndesi/webdav/maintainability) - -# Syndesi's WebDAV - -Extensible webdav library for modern PHP. -It isn't bound to the file system - you can use your own file provider (e.g. -[Flysystem](https://github.com/thephpleague/flysystem)), authorization workflow etc. - -It is framework agnostic. - -Links: - -- [Documentation](https://syndesi.github.io/webdav) -- [Packagist](https://packagist.org/packages/syndesi/webdav) +Central documentation for WebDAV standards and examples. diff --git a/composer.json b/composer.json deleted file mode 100755 index 573499f..0000000 --- a/composer.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "syndesi/webdav", - "description": "Extensible webdav library for modern PHP", - "type": "library", - "homepage": "https://syndesi.github.io/webdav/#/", - "license": "MIT", - "authors": [ - { - "name": "Syndesi (Sören Klein)", - "email": "soerenklein98@gmail.com", - "homepage": "https://syndesi.dev", - "role": "Developer" - } - ], - "keywords": [ - "webdav", - "webdav-server", - "cloud" - ], - "require": { - "php": "^8.1" - }, - "autoload": { - "psr-4": { - "Syndesi\\WebDAV\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Syndesi\\WebDAV\\Tests\\": "tests/" - } - }, - "require-dev": { - "vimeo/psalm": "^4.23", - "boesing/psalm-plugin-stringf": "^1.1", - "phpstan/phpstan": "^1.6", - "phpunit/php-code-coverage": "^9.2", - "infection/infection": "^0.26.10", - "friendsofphp/php-cs-fixer": "^3.8", - "phpunit/phpunit": "^9.5", - "roave/no-leaks": "^1.3", - "phpbench/phpbench": "^1.2" - }, - "scripts": { - "test": "php vendor/phpunit/phpunit/phpunit", - "test:coverage:xml": "export XDEBUG_MODE=coverage && php ./vendor/phpunit/phpunit/phpunit --coverage-clover coverage.xml", - "test:coverage:html": "export XDEBUG_MODE=coverage && php ./vendor/phpunit/phpunit/phpunit --coverage-html ./tmp", - "test:mutant": "export XDEBUG_MODE=coverage && php vendor/infection/infection/bin/infection --threads=4", - "test:leak": "export LEAK=true && php vendor/bin/roave-no-leaks", - "cs:list": "php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes --dry-run ./src", - "cs:fix": "php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes", - "psalm": "php vendor/bin/psalm --show-info=true --no-cache", - "psalm:fix": "php vendor/bin/psalm --alter --issues=MissingReturnType,InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType", - "phpstan": "vendor/bin/phpstan", - "benchmark": "vendor/bin/phpbench run --report=aggregate --progress dots", - "benchmark:csv": "vendor/bin/phpbench run --report=bare --output=csv-file", - "benchmark:plot": "python benchmark/plot/plot.py", - "yml:lint": "docker run --rm -it -v $(pwd):/data cytopia/yamllint .", - "markdown:lint": "docker run --rm -v $(pwd):/work tmknom/markdownlint '**/*.md' --ignore vendor", - "docs:serve": "docker run --rm -d -p 3000:3000 -v $(pwd)/docs:/docs sujaykumarh/docsify serve" - }, - "config": { - "allow-plugins": { - "infection/extension-installer": true - } - } -} diff --git a/docs/README.md b/docs/README.md index 77874d9..913187c 100755 --- a/docs/README.md +++ b/docs/README.md @@ -1,28 +1,3 @@ -[![GitHub](https://img.shields.io/github/license/Syndesi/webdav)](https://github.com/Syndesi/webdav/blob/main/LICENSE) -![Packagist PHP Version Support (specify version)](https://img.shields.io/packagist/php-v/syndesi/webdav/dev-main) -![Packagist Version](https://img.shields.io/packagist/v/syndesi/webdav) -![Packagist Downloads](https://img.shields.io/packagist/dm/syndesi/webdav) +# Enhanced WebDAV Ecosystem: Documentation -[![Unit Tests](https://github.com/Syndesi/webdav/actions/workflows/ci-unit-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-unit-test.yml) -[![Mutant Test](https://github.com/Syndesi/webdav/actions/workflows/ci-mutant-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-mutant-test.yml) -[![Leak Tests](https://github.com/Syndesi/webdav/actions/workflows/ci-leak-test.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-leak-test.yml) -[![PHPStan](https://github.com/Syndesi/webdav/actions/workflows/ci-phpstan.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-phpstan.yml) -[![Psalm](https://github.com/Syndesi/webdav/actions/workflows/ci-psalm.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-psalm.yml) -[![Code Style](https://github.com/Syndesi/webdav/actions/workflows/ci-code-style.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-code-style.yml) -[![YML lint](https://github.com/Syndesi/webdav/actions/workflows/ci-yml-lint.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-yml-lint.yml) -[![Markdown lint](https://github.com/Syndesi/webdav/actions/workflows/ci-markdown-lint.yml/badge.svg)](https://github.com/Syndesi/webdav/actions/workflows/ci-markdown-lint.yml) -[![Test Coverage](https://api.codeclimate.com/v1/badges/3a6aef038839e5bb5b59/test_coverage)](https://codeclimate.com/github/Syndesi/webdav/test_coverage) -[![Maintainability](https://api.codeclimate.com/v1/badges/3a6aef038839e5bb5b59/maintainability)](https://codeclimate.com/github/Syndesi/webdav/maintainability) - -# Syndesi's WebDAV - -Extensible webdav library for modern PHP. -It isn't bound to the file system - you can use your own file provider (e.g. -[Flysystem](https://github.com/thephpleague/flysystem)), authorization workflow etc. - -It is framework agnostic. - -Links: - -- [Documentation](https://syndesi.github.io/webdav) -- [Packagist](https://packagist.org/packages/syndesi/webdav) +Central documentation for WebDAV standards and examples. diff --git a/infection.json b/infection.json deleted file mode 100755 index 61fbaa5..0000000 --- a/infection.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "vendor/infection/infection/resources/schema.json", - "source": { - "directories": [ - "src" - ] - }, - "mutators": { - "@default": true, - "CastString": false - }, - "logs": { - "html": "infection.html" - } -} diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100755 index 53e07ef..0000000 --- a/phpstan.neon +++ /dev/null @@ -1,8 +0,0 @@ -parameters: - level: 8 - paths: - - src - checkGenericClassInNonGenericObjectType: false - ignoreErrors: -# - '#Method [a-zA-Z0-9\\_:()]+ should return static\([a-zA-Z0-9\\_]+\) but returns [a-zA-Z0-9\\_]+\.#' -# - '#Method [a-zA-Z0-9\\_]+::current\(\) should return [a-zA-Z0-9\\_]+ but returns object\.#' diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100755 index ee83a6f..0000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - ./src - - - - - - - - - - - - ./tests - - - diff --git a/psalm.xml b/psalm.xml deleted file mode 100755 index 9e6b2d3..0000000 --- a/psalm.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100755 index cc712a1..0000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,13 +0,0 @@ -bootEnv(dirname(__DIR__).'/.env'); -}