Skip to content

Commit

Permalink
Normalized package files
Browse files Browse the repository at this point in the history
  • Loading branch information
shudd3r committed Oct 3, 2022
2 parents 4276bd8 + cf0b57a commit ccd5f75
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
.gitattributes export-ignore
.gitignore export-ignore
phpunit.xml.dist export-ignore
phpcs.xml.dist export-ignore
cs-fixer.php.dist export-ignore
phpcs.xml.dist export-ignore
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.idea/
vendor/
build/
temp/
/.dev/
/vendor/
/composer.lock
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Shudd3r <q3.shudder@gmail.com>
Copyright (c) 2022 Shudd3r <q3.shudder@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
[![LICENSE](https://img.shields.io/github/license/polymorphine/dev.svg?color=blue)](LICENSE)
### Development tools & coding standard scripts for Polymorphine libraries

## Coding Standards
Combination of [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
and [CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) with custom
settings added as dev dependency of Polymorphine packages.
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) testing library.
- Combination of [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
and [CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) with custom
settings added as dev dependency of Polymorphine packages.
- Package skeleton scripted with [Skeletons](https://github.com/shudd3r/skeletons) engine.

### Installation with [Composer](https://getcomposer.org/)
```bash
composer require --dev polymorphine/dev
```

#### PHP-CS-Fixer
`PHP-CS-Fixer` will automatically fix code formatting, and `CodeSniffer`
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
"email": "q3.shudder@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "3.9.*",
"squizlabs/php_codesniffer": "^3.7.1",
"phpunit/phpunit": "^9.5.21",
"php-coveralls/php-coveralls": "^2.5.2"
},
"autoload": {
"psr-4": {
"Polymorphine\\Dev\\": "src/"
Expand All @@ -19,14 +27,6 @@
"Polymorphine\\Dev\\Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "3.9.*",
"squizlabs/php_codesniffer": "^3.7.1",
"phpunit/phpunit": "^9.5.21",
"php-coveralls/php-coveralls": "^2.5.2"
},
"scripts": {
"test-cs": [
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
cacheResultFile="temp/.phpunit.result.cache"
cacheResultFile=".dev/temp/.phpunit.result.cache"
colors="true"
bootstrap="vendor/autoload.php"
>
Expand Down

0 comments on commit ccd5f75

Please sign in to comment.