Skip to content

Commit 8e3d3f2

Browse files
committed
Fix up migration to php-collective
1 parent 5ae6d5f commit 8e3d3f2

File tree

73 files changed

+758
-817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+758
-817
lines changed

.editorconfig

+2-6
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ trim_trailing_whitespace = true
1010
charset = utf-8
1111

1212
[*.bat]
13-
indent_style = space
1413
indent_size = 4
1514
end_of_line = crlf
1615

1716
[*.yml]
18-
indent_style = space
1917
indent_size = 4
2018

2119
[*.json]
22-
indent_style = space
2320
indent_size = 4
2421

25-
[*.yaml]
26-
indent_style = space
27-
indent_size = 4
22+
[*.neon]
23+
indent_style = tab

.github/workflows/ci.yml

+9-13
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php-version: ['7.4', '8.0', '8.1']
12+
php-version: ['8.1', '8.3']
1313

1414
steps:
15-
- uses: actions/checkout@v1
16-
with:
17-
fetch-depth: 1
15+
- uses: actions/checkout@v3
1816

1917
- name: Setup PHP
2018
uses: shivammathur/setup-php@v2
2119
with:
22-
php-version: '7.4'
20+
php-version: '8.1'
2321
extensions: mbstring, json, fileinfo
2422
tools: pecl
2523
coverage: pcov
@@ -37,29 +35,27 @@ jobs:
3735

3836
- name: Run PHPUnit
3937
run: |
40-
if [[ ${{ matrix.php-version }} == '7.4' ]]; then
38+
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
4139
bin/phpunit --coverage-clover=coverage.xml
4240
else
4341
bin/phpunit
4442
fi
4543
4644
- name: Code Coverage Report
47-
if: success() && matrix.php-version == '7.4'
45+
if: success() && matrix.php-version == '8.1'
4846
uses: codecov/codecov-action@v1
4947

5048
cs-stan:
5149
name: Coding Standard & Static Analysis
5250
runs-on: ubuntu-20.04
5351

5452
steps:
55-
- uses: actions/checkout@v1
56-
with:
57-
fetch-depth: 1
53+
- uses: actions/checkout@v3
5854

5955
- name: Setup PHP
6056
uses: shivammathur/setup-php@v2
6157
with:
62-
php-version: '7.4'
58+
php-version: '8.1'
6359
extensions: mbstring, json, fileinfo
6460
coverage: none
6561
tools: pecl
@@ -71,7 +67,7 @@ jobs:
7167
run: php config/composer_phive.php
7268

7369
- name: Run phpcs
74-
run: bin/phpcs --version && bin/phpcs --report=checkstyle --standard=phpcs.xml src/ tests/
70+
run: bin/phpcs --version && bin/phpcs --report=checkstyle
7571

7672
- name: Run phpstan
77-
run: bin/phpstan -V && bin/phpstan analyse src -l 5 --error-format=github
73+
run: bin/phpstan -V && bin/phpstan analyse --error-format=github

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/logs
55
/vendor/
66
/bin
7-
coverage.xml
8-
phive*.phar
7+
/coverage.xml
8+
/composer.phar
9+
/phpstan.phar
910
/composer.lock

.scrutinizer.yml

-59
This file was deleted.

composer.json

+22-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phauthentic/file-storage",
2+
"name": "php-collective/file-storage",
33
"description": "File Storage",
44
"keywords": ["storage", "files", "file storage", "file system", "persistence", "media", "image processing", "agnostic"],
55
"type": "library",
@@ -8,40 +8,47 @@
88
{
99
"name": "Florian Krämer",
1010
"role": "Maintainer"
11+
},
12+
{
13+
"name": "Mark Scherer",
14+
"role": "Maintainer"
1115
}
1216
],
1317
"require": {
1418
"php": ">=7.4",
1519
"ext-fileinfo": "*",
1620
"ext-json": "*",
1721
"ext-mbstring": "*",
18-
"phauthentic/file-storage-factories": "^1.0",
22+
"php-collective/file-storage-factories": "^1.0",
1923
"psr/http-message": "^1.0"
2024
},
2125
"require-dev": {
22-
"phauthentic/file-storage-image-processor": "^1.0"
26+
"phpunit/phpunit": "^10.3",
27+
"php-collective/code-sniffer": "^0.2.1",
28+
"php-collective/file-storage-image-processor": "^1.0"
2329
},
2430
"suggest": {
25-
"phauthentic/file-storage-image-processor": "For image processing"
31+
"php-collective/file-storage-image-processor": "For image processing"
2632
},
2733
"minimum-stability": "dev",
2834
"prefer-stable": true,
2935
"config": {
30-
"bin-dir": "bin",
31-
"process-timeout": 0,
32-
"sort-packages": true
36+
"sort-packages": true,
37+
"allow-plugins": {
38+
"dealerdirect/phpcodesniffer-composer-installer": true
39+
}
3340
},
3441
"autoload": {
3542
"psr-4": {
36-
"Phauthentic\\Infrastructure\\Storage\\": "src/"
43+
"PhpCollective\\Infrastructure\\Storage\\": "src/"
3744
},
3845
"files": [
3946
"src/functions.php"
4047
]
4148
},
4249
"autoload-dev": {
4350
"psr-4": {
44-
"Phauthentic\\Test\\": "tests/"
51+
"PhpCollective\\Test\\": "tests/"
4552
}
4653
},
4754
"scripts": {
@@ -57,17 +64,14 @@
5764
"test-coverage-html": [
5865
"phpunit --coverage-html tmp/coverage/"
5966
],
60-
"cscheck": [
61-
"phpcs src/ tests/ --standard=phpcs.xml -s"
62-
],
63-
"csfix": [
64-
"phpcbf src/ tests/ --standard=phpcs.xml"
67+
"cs-check": [
68+
"phpcs -s"
6569
],
66-
"analyze": [
67-
"phpstan analyse src/"
70+
"cs-fix": [
71+
"phpcbf"
6872
],
69-
"phive": [
70-
"php config/composer_phive.php"
73+
"stan": [
74+
"phpstan analyze src/"
7175
]
7276
}
7377
}

contributing.md

-100
This file was deleted.

docs/Architecture.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ We think there is a need to explain why we have picked the dependencies we have,
4242

4343
The dependencies have been selected based on the code quality and amount of further dependencies they would introduce.
4444

45-
There are two dependencies, one of them `phauthentic/file-storage-factories` is just to abstract the real dependency `flysystem\flysystem`.
45+
There are two dependencies, one of them `php-collective/file-storage-factories` is just to abstract the real dependency `flysystem\flysystem`.
4646

4747
Flysystem is the underlying storage abstraction library that provides the functionality to write to different storage backends.

docs/Example.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ declare(strict_types=1);
55

66
require 'vendor/autoload.php';
77

8-
use Phauthentic\Infrastructure\Storage\Factories\LocalFactory;
9-
use Phauthentic\Infrastructure\Storage\FileFactory;
10-
use Phauthentic\Infrastructure\Storage\PathBuilder\PathBuilder;
11-
use Phauthentic\Infrastructure\Storage\Processor\Image\ImageProcessor;
12-
use Phauthentic\Infrastructure\Storage\Processor\Image\ImageVariant;
13-
use Phauthentic\Infrastructure\Storage\FileStorage;
14-
use Phauthentic\Infrastructure\Storage\StorageAdapterFactory;
15-
use Phauthentic\Infrastructure\Storage\StorageService;
8+
use PhpCollective\Infrastructure\Storage\Factories\LocalFactory;
9+
use PhpCollective\Infrastructure\Storage\FileFactory;
10+
use PhpCollective\Infrastructure\Storage\PathBuilder\PathBuilder;
11+
use PhpCollective\Infrastructure\Storage\Processor\Image\ImageProcessor;
12+
use PhpCollective\Infrastructure\Storage\Processor\Image\ImageVariant;
13+
use PhpCollective\Infrastructure\Storage\FileStorage;
14+
use PhpCollective\Infrastructure\Storage\StorageAdapterFactory;
15+
use PhpCollective\Infrastructure\Storage\StorageService;
1616
use Intervention\Image\ImageManager;
1717

1818
/*******************************************************************************

docs/Installation-and-Setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Install it via [Composer](https://getcomposer.org/)
66

77
```sh
8-
composer require phauthentic/file-storage
8+
composer require php-collective/file-storage
99
```
1010

1111
If you want to manually install it we assume you know what you're doing by not using Composer.
@@ -15,7 +15,7 @@ If you want to manually install it we assume you know what you're doing by not u
1515
To use the image processing feature you'll need to add this repository as well:
1616

1717
```sh
18-
composer require phauthentic/file-storage-image-processor
18+
composer require php-collective/file-storage-image-processor
1919
```
2020

2121
## Development Tools

0 commit comments

Comments
 (0)