Skip to content

Commit a41a226

Browse files
Initial commit
0 parents  commit a41a226

24 files changed

+779
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4
11+
trim_trailing_whitespace = true
12+
13+
[*.php]
14+
ij_php_space_before_short_closure_left_parenthesis = false
15+
ij_php_space_after_type_cast = true
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[*.yml]
21+
indent_size = 2

.gitattributes

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Autodetect text files
2+
* text=auto eol=lf
3+
4+
# ...Unless the name matches the following overriding patterns
5+
6+
# Definitively text files
7+
*.php text
8+
*.css text
9+
*.js text
10+
*.txt text
11+
*.md text
12+
*.xml text
13+
*.json text
14+
*.bat text
15+
*.sql text
16+
*.yml text
17+
18+
# Ensure those won't be messed up with
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
22+
*.ttf binary
23+
24+
# Avoid merge conflicts in CHANGELOG
25+
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
26+
/CHANGELOG.md merge=union
27+
28+
# Exclude files from the archive
29+
/.gitattributes export-ignore
30+
/.github export-ignore
31+
/.gitignore export-ignore
32+
/.styleci.yml export-ignore
33+
/codeception.yml export-ignore
34+
/composer-require-checker.json export-ignore
35+
/docs export-ignore
36+
/phpunit.xml.dist export-ignore
37+
/psalm.xml export-ignore
38+
/rector.php export-ignore
39+
/tests export-ignore

.github/CODE_OF_CONDUCT.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
As contributors and maintainers of this project, and in order to keep community open and welcoming, we ask to
6+
respect all community members.
7+
8+
## Our Standards
9+
10+
Examples of behavior that contributes to a positive environment for our community include:
11+
12+
* Demonstrating empathy and kindness toward other people
13+
* Being respectful of differing opinions, viewpoints, and experiences
14+
* Giving and gracefully accepting constructive feedback
15+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
16+
* Focusing on what is best not just for us as individuals, but for the overall community
17+
18+
Examples of unacceptable behavior by participants include:
19+
20+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
21+
* Trolling, insulting or derogatory comments, and personal or political attacks
22+
* Public or private harassment
23+
* Publishing others' private information, such as a physical or email address, without their explicit permission
24+
* Other conduct which could reasonably be considered inappropriate in a professional setting
25+
26+
## Enforcement Responsibilities
27+
28+
Core team members are responsible for clarifying and enforcing our standards of acceptable behavior and will take
29+
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
30+
or harmful.
31+
32+
Core team members have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
33+
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
34+
moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
39+
the community in public spaces. Examples of representing a project or community include using an official e-mail
40+
address, posting via an official social media account, within project GitHub, official forum or acting as an appointed
41+
representative at an online or offline event.
42+
43+
## Enforcement
44+
45+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting core team members. All
46+
complaints will be reviewed and investigated promptly and fairly.
47+
48+
All core team members are obligated to respect the privacy and security of the reporter of any incident.
49+
50+
## Enforcement Guidelines
51+
52+
Core team members will follow these Community Impact Guidelines in determining the consequences for any action they
53+
deem in violation of this Code of Conduct:
54+
55+
### 1. Correction
56+
57+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
58+
the community.
59+
60+
**Consequence**: A private, written warning from core team members, providing clarity around the nature of the violation
61+
and an explanation of why the behavior was inappropriate. A public apology may be requested.
62+
63+
### 2. Warning
64+
65+
**Community Impact**: A violation through a single incident or series of actions.
66+
67+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
68+
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
69+
interactions in community spaces as well as external channels like social media. Violating these terms may lead to
70+
a temporary or permanent ban.
71+
72+
### 3. Temporary Ban
73+
74+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
75+
76+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified
77+
period of time. No public or private interaction with the people involved, including unsolicited interaction with those
78+
enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
79+
80+
### 4. Permanent Ban
81+
82+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate
83+
behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
84+
85+
**Consequence**: A permanent ban from any sort of public interaction within the community.
86+
87+
## Attribution
88+
89+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at
90+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
91+
92+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
93+
94+
For answers to common questions about this code of conduct, see the FAQ at
95+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
96+
[https://www.contributor-covenant.org/translations][translations].
97+
98+
[homepage]: https://www.contributor-covenant.org
99+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
100+
[Mozilla CoC]: https://github.com/mozilla/diversity
101+
[FAQ]: https://www.contributor-covenant.org/faq
102+
[translations]: https://www.contributor-covenant.org/translations

.github/ISSUE_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### What steps will reproduce the problem?
2+
3+
### What is the expected result?
4+
5+
### What do you get instead?
6+
7+
8+
### Additional info
9+
10+
| Q | A
11+
| ---------------- | ---
12+
| Version | 1.0.?
13+
| PHP version |
14+
| Operating system |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Is bugfix? | ✔️/❌
4+
| New feature? | ✔️/❌
5+
| Breaks BC? | ✔️/❌
6+
| Fixed issues | <!-- comma-separated list of tickets # fixed by the PR, if any -->

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
9+
# Maintain dependencies for Composer
10+
- package-ecosystem: "composer"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
versioning-strategy: increase-if-necessary

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'infection.json.dist'
10+
- 'psalm.xml'
11+
12+
push:
13+
paths-ignore:
14+
- 'docs/**'
15+
- 'README.md'
16+
- 'CHANGELOG.md'
17+
- '.gitignore'
18+
- '.gitattributes'
19+
- 'infection.json.dist'
20+
- 'psalm.xml'
21+
22+
name: build
23+
24+
jobs:
25+
phpunit:
26+
uses: php-forge/actions/.github/workflows/phpunit.yml@main
27+
secrets:
28+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
29+
with:
30+
os: >-
31+
['ubuntu-latest', 'windows-latest']
32+
php: >-
33+
['8.1', '8.2', '8.3']
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'infection.json.dist'
10+
- 'phpunit.xml.dist'
11+
- 'psalm.xml'
12+
13+
push:
14+
paths-ignore:
15+
- 'docs/**'
16+
- 'README.md'
17+
- 'CHANGELOG.md'
18+
- '.gitignore'
19+
- '.gitattributes'
20+
- 'infection.json.dist'
21+
- 'phpunit.xml.dist'
22+
- 'psalm.xml'
23+
24+
name: dependency-check
25+
26+
jobs:
27+
composer-require-checker:
28+
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main
29+
with:
30+
os: >-
31+
['ubuntu-latest']
32+
php: >-
33+
['8.1']

.github/workflows/ecs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'infection.json.dist'
10+
- 'phpunit.xml.dist'
11+
12+
push:
13+
branches: ['main']
14+
paths-ignore:
15+
- 'docs/**'
16+
- 'README.md'
17+
- 'CHANGELOG.md'
18+
- '.gitignore'
19+
- '.gitattributes'
20+
- 'infection.json.dist'
21+
- 'phpunit.xml.dist'
22+
23+
name: ecs
24+
25+
jobs:
26+
easy-coding-standard:
27+
uses: php-forge/actions/.github/workflows/ecs.yml@main
28+
secrets:
29+
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
30+
with:
31+
os: >-
32+
['ubuntu-latest']
33+
php: >-
34+
['8.1']

.github/workflows/mutation.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'psalm.xml'
10+
11+
push:
12+
paths-ignore:
13+
- 'docs/**'
14+
- 'README.md'
15+
- 'CHANGELOG.md'
16+
- '.gitignore'
17+
- '.gitattributes'
18+
- 'psalm.xml'
19+
20+
name: mutation test
21+
22+
jobs:
23+
mutation:
24+
uses: php-forge/actions/.github/workflows/roave-infection.yml@main
25+
secrets:
26+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
27+
with:
28+
os: >-
29+
['ubuntu-latest']
30+
php: >-
31+
['8.1']

0 commit comments

Comments
 (0)