generated from ergebnis/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 66dad14
Showing
38 changed files
with
9,513 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
|
||
[*.neon] | ||
indent_style = tab | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/.github/ export-ignore | ||
/.phive/ export-ignore | ||
/test/ export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php-cs-fixer.php export-ignore | ||
/.yamllint.yaml export-ignore | ||
/composer-require-checker.json export-ignore | ||
/composer.lock export-ignore | ||
/infection.json export-ignore | ||
/Makefile export-ignore | ||
/phpstan-baseline.neon export-ignore | ||
/phpstan.neon export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/psalm.xml export-ignore | ||
/rector.php export-ignore |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
* @ergebnis-bot @localheinz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# CONTRIBUTING | ||
|
||
We use [GitHub Actions](https://github.com/features/actions) as a continuous integration system. | ||
|
||
For details, take a look at the following workflow configuration files: | ||
|
||
- [`workflows/integrate.yaml`](workflows/integrate.yaml) | ||
- [`workflows/merge.yaml`](workflows/merge.yaml) | ||
- [`workflows/release.yaml`](workflows/release.yaml) | ||
- [`workflows/renew.yaml`](workflows/renew.yaml) | ||
- [`workflows/triage.yaml`](workflows/triage.yaml) | ||
|
||
## Backward-Compatibility Analysis | ||
|
||
We use [`roave/backward-compatibility-check`](https://github.com/Roave/BackwardCompatibilityCheck) to prevent breaking backwards-compatibility. | ||
|
||
Run | ||
|
||
```sh | ||
make backward-compatibility-analysis | ||
``` | ||
|
||
to run a backward-compatibility analysis. | ||
|
||
## Coding Standards | ||
|
||
We use [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`. | ||
|
||
We use [`yamllint`](https://github.com/adrienverge/yamllint) to enforce coding standards in YAML files. | ||
|
||
If you do not have `yamllint` installed yet, run | ||
|
||
```sh | ||
brew install yamllint | ||
``` | ||
|
||
to install `yamllint`. | ||
|
||
We use [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) to enforce coding standards in PHP files. | ||
|
||
Run | ||
|
||
```sh | ||
make coding-standards | ||
``` | ||
|
||
to automatically fix coding standard violations. | ||
|
||
## Dependency Analysis | ||
|
||
We use [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code. | ||
|
||
Run | ||
|
||
```sh | ||
make dependency-analysis | ||
``` | ||
|
||
to run a dependency analysis. | ||
|
||
## Mutation Tests | ||
|
||
We use [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests. | ||
|
||
Enable `Xdebug` and run | ||
|
||
```sh | ||
make mutation-tests | ||
``` | ||
|
||
to run mutation tests. | ||
|
||
## Refactoring | ||
|
||
We use [`rector/rector`](https://github.com/rectorphp/rector) to automatically refactor code. | ||
|
||
Run | ||
|
||
```sh | ||
make refactoring | ||
``` | ||
|
||
to automatically refactor code. | ||
|
||
## Security Analysis | ||
|
||
We use [`composer`](https://github.com/composer/composer) to run a security analysis. | ||
|
||
Run | ||
|
||
```sh | ||
make security-analysis | ||
``` | ||
|
||
to run a security analysis. | ||
|
||
## Static Code Analysis | ||
|
||
We use [`phpstan/phpstan`](https://github.com/phpstan/phpstan) and [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code. | ||
|
||
Run | ||
|
||
```sh | ||
make static-code-analysis | ||
``` | ||
|
||
to run a static code analysis. | ||
|
||
We also use the baseline features of [`phpstan/phpstan`](https://phpstan.org/user-guide/baseline) and [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file). | ||
|
||
Run | ||
|
||
```sh | ||
make static-code-analysis-baseline | ||
``` | ||
|
||
to regenerate the baselines in [`../phpstan-baseline.neon`](../phpstan-baseline.neon) and [`../psalm-baseline.xml`](../psalm-baseline.xml). | ||
|
||
:exclamation: Ideally, the baselines should shrink over time. | ||
|
||
## Tests | ||
|
||
We use [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) to drive the development. | ||
|
||
Run | ||
|
||
```sh | ||
make tests | ||
``` | ||
|
||
to run all the tests. | ||
|
||
## Extra lazy? | ||
|
||
Run | ||
|
||
```sh | ||
make | ||
``` | ||
|
||
to automatically refactor code, enforce coding standards, run a static code analysis, and run tests! | ||
|
||
## Help | ||
|
||
:bulb: Run | ||
|
||
```sh | ||
make help | ||
``` | ||
|
||
to display a list of available targets with corresponding descriptions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository | ||
|
||
github: | ||
- "ergebnis" | ||
- "localheinz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#### Steps required to reproduce the problem | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
#### Expected Result | ||
|
||
- | ||
|
||
#### Actual Result | ||
|
||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This pull request | ||
|
||
- [x] | ||
|
||
Follows #. | ||
Related to #. | ||
Fixes #. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
The following versions of `ergebnis/php-package-template` have active support: | ||
|
||
- `x.y.z` | ||
|
||
## Unsupported Versions | ||
|
||
The following versions of `ergebnis/php-package-template` have reached their end of life: | ||
|
||
- `x.y.z` | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you believe that you have found a security vulnerability, please send an email to `[email protected]`. Ensure to include all details required to understand the severity of the issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
|
||
updates: | ||
- allow: | ||
- dependency-type: "development" | ||
commit-message: | ||
include: "scope" | ||
prefix: "composer" | ||
directory: "/" | ||
labels: | ||
- "dependency" | ||
open-pull-requests-limit: 10 | ||
package-ecosystem: "composer" | ||
schedule: | ||
interval: "daily" | ||
versioning-strategy: "increase" | ||
|
||
- commit-message: | ||
include: "scope" | ||
prefix: "github-actions" | ||
directory: "/" | ||
labels: | ||
- "dependency" | ||
open-pull-requests-limit: 10 | ||
package-ecosystem: "github-actions" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes | ||
|
||
changelog: | ||
exclude: | ||
authors: | ||
- "dependabot" |
Oops, something went wrong.