Skip to content

Commit 6c7e270

Browse files
authored
Initial commit
0 parents  commit 6c7e270

28 files changed

+829
-0
lines changed

.editorconfig

+21
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

+39
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+
# Ignore some meta files when creating an archive of this repository
25+
/.github export-ignore
26+
/.editorconfig export-ignore
27+
/.gitattributes export-ignore
28+
/.gitignore export-ignore
29+
/.phpunit-watcher.yml export-ignore
30+
/.styleci.yml export-ignore
31+
/infection.json.dist export-ignore
32+
/phpunit.xml.dist export-ignore
33+
/psalm.xml export-ignore
34+
/tests export-ignore
35+
/docs export-ignore
36+
37+
# Avoid merge conflicts in CHANGELOG
38+
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
39+
/CHANGELOG.md merge=union

.github/CODE_OF_CONDUCT.md

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Yii Contributor Code of Conduct
2+
3+
## Our Pledge
4+
5+
As contributors and maintainers of this project, and in order to keep Yii 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/CONTRIBUTING.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Prerequisites
2+
3+
- [Yii goal and values](https://github.com/yiisoft/docs/blob/master/001-yii-values.md)
4+
- [Namespaces](https://github.com/yiisoft/docs/blob/master/004-namespaces.md)
5+
- [Git commit messages](https://github.com/yiisoft/docs/blob/master/006-git-commit-messages.md)
6+
- [Exceptions](https://github.com/yiisoft/docs/blob/master/007-exceptions.md)
7+
- [Interfaces](https://github.com/yiisoft/docs/blob/master/008-interfaces.md)
8+
9+
# Getting started
10+
11+
Since Yii 3 consists of many packages, we have a [special development tool](https://github.com/yiisoft/docs/blob/master/005-development-tool.md).
12+
13+
1. [Clone the repository](https://github.com/yiisoft/yii-dev-tool).
14+
15+
2. [Set up your own fork](https://github.com/yiisoft/yii-dev-tool#using-your-own-fork).
16+
17+
3. Now you are ready. Fork any package listed in `packages.php` and do `./yii-dev install username/package`.
18+
19+
If you don't have any particular package in mind to start with:
20+
21+
- [Check roadmap](https://github.com/yiisoft/docs/blob/master/003-roadmap.md).
22+
- Check package issues at github. Usually there are some.
23+
- Ask @samdark.

.github/FUNDING.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
open_collective: yiisoft
4+
github: [yiisoft]

.github/ISSUE_TEMPLATE.md

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

.github/PULL_REQUEST_TEMPLATE.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Is bugfix? | ✔️/❌
4+
| New feature? | ✔️/❌
5+
| Breaks BC? | ✔️/❌

.github/SECURITY.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Security Policy
2+
3+
Please use the [security issue form](https://www.yiiframework.com/security) to report to us any security issue you
4+
find in Yii. DO NOT use the issue tracker or discuss it in the public forum as it will cause more damage than help.
5+
6+
Please note that as a non-commercial OpenSource project we are not able to pay bounties at the moment.

.github/dependabot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions.
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
# Too noisy. See https://github.community/t/increase-if-necessary-for-github-actions-in-dependabot/179581
9+
open-pull-requests-limit: 0
10+
11+
# Maintain dependencies for Composer
12+
- package-ecosystem: "composer"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"
16+
versioning-strategy: increase-if-necessary

.github/workflows/bc.yml_

+33
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+
push:
13+
branches: ['master']
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: backwards compatibility
25+
26+
jobs:
27+
roave_bc_check:
28+
uses: yiisoft/actions/.github/workflows/bc.yml@master
29+
with:
30+
os: >-
31+
['ubuntu-latest']
32+
php: >-
33+
['8.1']

.github/workflows/build.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
branches: ['master']
14+
paths-ignore:
15+
- 'docs/**'
16+
- 'README.md'
17+
- 'CHANGELOG.md'
18+
- '.gitignore'
19+
- '.gitattributes'
20+
- 'infection.json.dist'
21+
- 'psalm.xml'
22+
23+
name: build
24+
25+
jobs:
26+
phpunit:
27+
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
28+
with:
29+
os: >-
30+
['ubuntu-latest', 'windows-latest']
31+
php: >-
32+
['8.1', '8.2', '8.3']
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+
- 'psalm.xml'
12+
13+
push:
14+
branches: ['master']
15+
paths-ignore:
16+
- 'docs/**'
17+
- 'README.md'
18+
- 'CHANGELOG.md'
19+
- '.gitignore'
20+
- '.gitattributes'
21+
- 'infection.json.dist'
22+
- 'phpunit.xml.dist'
23+
- 'psalm.xml'
24+
25+
name: Composer require checker
26+
27+
jobs:
28+
composer-require-checker:
29+
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
30+
with:
31+
os: >-
32+
['ubuntu-latest']
33+
php: >-
34+
['8.1', '8.2', '8.3']

.github/workflows/mutation.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
branches: ['master']
13+
paths-ignore:
14+
- 'docs/**'
15+
- 'README.md'
16+
- 'CHANGELOG.md'
17+
- '.gitignore'
18+
- '.gitattributes'
19+
- 'psalm.xml'
20+
21+
name: mutation test
22+
23+
jobs:
24+
mutation:
25+
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
26+
with:
27+
os: >-
28+
['ubuntu-latest']
29+
php: >-
30+
['8.2']
31+
secrets:
32+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/rector.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
name: rector
13+
14+
jobs:
15+
rector:
16+
uses: yiisoft/actions/.github/workflows/rector.yml@master
17+
secrets:
18+
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
19+
with:
20+
os: >-
21+
['ubuntu-latest']
22+
php: >-
23+
['8.3']

0 commit comments

Comments
 (0)