Skip to content

Commit ccd5f75

Browse files
committed
Normalized package files
2 parents 4276bd8 + cf0b57a commit ccd5f75

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
.gitattributes export-ignore
44
.gitignore export-ignore
55
phpunit.xml.dist export-ignore
6-
phpcs.xml.dist export-ignore
76
cs-fixer.php.dist export-ignore
7+
phpcs.xml.dist export-ignore

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.idea/
2-
vendor/
3-
build/
4-
temp/
1+
/.dev/
2+
/vendor/
53
/composer.lock

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Shudd3r <q3.shudder@gmail.com>
3+
Copyright (c) 2022 Shudd3r <q3.shudder@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
[![LICENSE](https://img.shields.io/github/license/polymorphine/dev.svg?color=blue)](LICENSE)
77
### Development tools & coding standard scripts for Polymorphine libraries
88

9-
## Coding Standards
10-
Combination of [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
11-
and [CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) with custom
12-
settings added as dev dependency of Polymorphine packages.
9+
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) testing library.
10+
- Combination of [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
11+
and [CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) with custom
12+
settings added as dev dependency of Polymorphine packages.
13+
- Package skeleton scripted with [Skeletons](https://github.com/shudd3r/skeletons) engine.
14+
15+
### Installation with [Composer](https://getcomposer.org/)
16+
```bash
17+
composer require --dev polymorphine/dev
18+
```
1319

1420
#### PHP-CS-Fixer
1521
`PHP-CS-Fixer` will automatically fix code formatting, and `CodeSniffer`

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
"email": "q3.shudder@gmail.com"
1010
}
1111
],
12+
"minimum-stability": "stable",
13+
"require": {
14+
"php": "^7.4 || ^8.0",
15+
"friendsofphp/php-cs-fixer": "3.9.*",
16+
"squizlabs/php_codesniffer": "^3.7.1",
17+
"phpunit/phpunit": "^9.5.21",
18+
"php-coveralls/php-coveralls": "^2.5.2"
19+
},
1220
"autoload": {
1321
"psr-4": {
1422
"Polymorphine\\Dev\\": "src/"
@@ -19,14 +27,6 @@
1927
"Polymorphine\\Dev\\Tests\\": "tests/"
2028
}
2129
},
22-
"minimum-stability": "stable",
23-
"require": {
24-
"php": "^7.4 || ^8.0",
25-
"friendsofphp/php-cs-fixer": "3.9.*",
26-
"squizlabs/php_codesniffer": "^3.7.1",
27-
"phpunit/phpunit": "^9.5.21",
28-
"php-coveralls/php-coveralls": "^2.5.2"
29-
},
3030
"scripts": {
3131
"test-cs": [
3232
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
5-
cacheResultFile="temp/.phpunit.result.cache"
5+
cacheResultFile=".dev/temp/.phpunit.result.cache"
66
colors="true"
77
bootstrap="vendor/autoload.php"
88
>

0 commit comments

Comments
 (0)