Skip to content

Commit 8310bf8

Browse files
authored
Initial commit
0 parents  commit 8310bf8

27 files changed

Lines changed: 823 additions & 0 deletions

.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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
*.phar binary
20+
*.png binary
21+
*.jpg binary
22+
*.gif binary
23+
*.ttf binary
24+
25+
# Exclude development and metadata files from distribution archive
26+
* export-ignore
27+
/src/ -export-ignore
28+
/src/** -export-ignore
29+
/composer.json -export-ignore
30+
/README.md -export-ignore
31+
/CHANGELOG.md -export-ignore
32+
/LICENSE.md -export-ignore
33+
34+
# Avoid merge conflicts in CHANGELOG
35+
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
36+
/CHANGELOG.md merge=union

.github/CODE_OF_CONDUCT.md

Lines changed: 102 additions & 0 deletions
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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# How to contribute
2+
3+
## Prerequisites
4+
5+
- [Yii goal and values](https://github.com/yiisoft/docs/blob/master/001-yii-values.md)
6+
- [Namespaces](https://github.com/yiisoft/docs/blob/master/004-namespaces.md)
7+
- [Git commit messages](https://github.com/yiisoft/docs/blob/master/006-git-commit-messages.md)
8+
- [Exceptions](https://github.com/yiisoft/docs/blob/master/007-exceptions.md)
9+
- [Interfaces](https://github.com/yiisoft/docs/blob/master/008-interfaces.md)
10+
11+
## Getting started
12+
13+
Since Yii 3 consists of many packages, we have a [special development tool](https://github.com/yiisoft/docs/blob/master/005-development-tool.md).
14+
15+
1. [Clone the repository](https://github.com/yiisoft/yii-dev-tool).
16+
17+
2. [Set up your own fork](https://github.com/yiisoft/yii-dev-tool#using-your-own-fork).
18+
19+
3. Now you are ready. Fork any package listed in `packages.php` and do `./yii-dev install username/package`.
20+
21+
If you don't have any particular package in mind to start with:
22+
23+
- [Check roadmap](https://github.com/yiisoft/docs/blob/master/003-roadmap.md).
24+
- Check package issues at github. Usually there are some.
25+
- Ask @samdark.
26+
27+
## Reporting a Security Issue
28+
29+
If you have encountered a security-related issue with Yii, please use the [security issue form](https://www.yiiframework.com/security) to report any security issues you have encountered to us.
30+
31+
***WARNING!*** DO NOT use the issue tracker or discuss it in the public forum as it will cause more damage than help.
32+
33+
# Additional Resources
34+
35+
- [Yii coding standards](https://github.com/yiisoft/docs/blob/master/010-code-style.md)
36+
- [Forum](https://www.yiiframework.com/forum/)
37+
- [Yii3 Forum](https://forum.yiiframework.com/c/yii-3-0/63)
38+
- [GitHub pull request documentation](https://help.github.com/articles/creating-a-pull-request/)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## ✔️ Check all applicable options or remove those that do not apply
2+
| Q | A
3+
| ------------- | ---
4+
| Is bugfix? | ✔️/❌
5+
| New feature? | ✔️/❌
6+
| Breaks BC? | ✔️/❌
7+
| Fixed issues | comma-separated list of tickets # fixed by the PR, if any
8+
9+
10+
## ✍ Describe your PR in detail
11+
12+
13+
14+
15+
16+
## 📷 Screenshots - If you wish, attach an image to help us better understand the idea
17+
18+
19+
20+

.github/SECURITY.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Security Policy
2+
3+
If you have encountered a security-related issue with Yii, please use the [security issue form](https://www.yiiframework.com/security) to report any security issues you have encountered to us.
4+
5+
> ***WARNING!*** DO NOT use the issue tracker or discuss it in the public forum as it will cause more damage than help.
6+
7+
> Please note that as a non-commercial OpenSource project we are not able to pay bounties at the moment.
8+
9+
## Reporting a Vulnerability
10+
11+
For each report, we try to first confirm the vulnerability.
12+
Once confirmed, the Yii team will take the following actions:
13+
14+
- Acknowledge to the reporter that we’ve received the issue, and are
15+
working on a fix. We ask that the reporter keep the issue confidential until we announce it.
16+
- Get a fix/patch prepared.
17+
- Prepare a post describing the vulnerability, and the possible exploits.
18+
- Release new versions of all affected versions.
19+
- Prominently feature the problem in the release announcement

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
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_

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
permissions:
27+
contents: read
28+
29+
jobs:
30+
roave_bc_check:
31+
uses: yiisoft/actions/.github/workflows/bc.yml@master
32+
with:
33+
os: >-
34+
['ubuntu-latest']
35+
php: >-
36+
['8.1']

.github/workflows/build.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+
- '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+
secrets:
29+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
30+
with:
31+
os: >-
32+
['ubuntu-latest', 'windows-latest']
33+
php: >-
34+
['8.1', '8.2', '8.3']
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+
- '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']

0 commit comments

Comments
 (0)