Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ respect all community members.

Examples of behavior that contributes to a positive environment for our community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery, and sexual attention or advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Core team members are responsible for clarifying and enforcing our standards of acceptable behavior and will take
Core team members are responsible for clarifying and enforcing our standards of acceptable behavior and will take
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Core team members 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, and will communicate reasons for
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
the community in public spaces. Examples of representing a project or community include using an official e-mail
the community in public spaces. Examples of representing a project or community include using an official email
address, posting via an official social media account, within project GitHub, official forum or acting as an appointed
representative at an online or offline event.

Expand All @@ -54,7 +54,7 @@ deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
the community.

**Consequence**: A private, written warning from core team members, providing clarity around the nature of the violation
Expand All @@ -66,7 +66,7 @@ and an explanation of why the behavior was inappropriate. A public apology may b

**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
interactions in community spaces as well as external channels like social media. Violating these terms may lead to
interactions in community spaces as well as external channels like social media. Violating these terms may lead to
a temporary or permanent ban.

### 3. Temporary Ban
Expand Down
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These are supported funding model platforms

---
github: [terabytesoftw]
19 changes: 10 additions & 9 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
### What steps will reproduce the problem?
# Issue Report

### What is the expected result?
## What steps will reproduce the problem?

### What do you get instead?
## What is the expected result?

## What do you get instead?

### Additional info
## Additional info

| Q | A
| ---------------- | ---
| Version | 1.0.?
| PHP version |
| Operating system |
| Q | A |
| ---------------- | ----- |
| Version | 1.0.? |
| PHP version | |
| Operating system | |
14 changes: 8 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
| Q | A
| ------------- | ---
| Is bugfix? | ✔️/❌
| New feature? | ✔️/❌
| Breaks BC? | ✔️/❌
| Fixed issues | <!-- comma-separated list of tickets # fixed by the PR, if any -->
# Pull Request

| Q | A |
| ------------ | ------------------------------------------------------------------ |
| Is bugfix? | ✔️/❌ |
| New feature? | ✔️/❌ |
| Breaks BC? | ✔️/❌ |
| Fixed issues | <!-- comma-separated list of tickets # fixed by the PR, if any --> |
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
Expand Down
7 changes: 7 additions & 0 deletions .github/linters/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
paths:
.github/workflows/**/*.yml:
ignore:
- '"pull_request" section is alias node but mapping node is expected'
- '"push" section is alias node but mapping node is expected'
- "section is alias node but mapping node is expected"
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: build

permissions:
contents: read

jobs:
phpunit:
uses: php-forge/actions/.github/workflows/phpunit.yml@v2
uses: yii2-framework/actions/.github/workflows/phpunit.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
composer-command: |
composer require yiisoft/yii2:22.0.x-dev --prefer-dist --no-progress --no-interaction --no-scripts --ansi
composer-command: require yiisoft/yii2:22.0.x-dev
concurrency-group: phpunit-${{ github.workflow }}-${{ github.ref }}
hook: |

phpunit-compatibility:
uses: php-forge/actions/.github/workflows/phpunit.yml@v2
uses: yii2-framework/actions/.github/workflows/phpunit.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: Composer require checker

permissions:
contents: read
pull-requests: write

jobs:
composer-require-checker:
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@v2
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@v1
27 changes: 13 additions & 14 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: ecs

permissions:
contents: read
pull-requests: write

jobs:
easy-coding-standard:
uses: php-forge/actions/.github/workflows/ecs.yml@v2
uses: yii2-framework/actions/.github/workflows/ecs.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
on:
- pull_request
- push

name: linter

permissions:
checks: write
contents: read
statuses: write

jobs:
linter:
uses: yii2-framework/actions/.github/workflows/super-linter.yml@v1
secrets:
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 14 additions & 19 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
push: *ignore-paths

name: static analysis

permissions:
contents: read
pull-requests: write

jobs:
phpstan:
uses: php-forge/actions/.github/workflows/phpstan.yml@v2
uses: yii2-framework/actions/.github/workflows/phpstan.yml@v1
with:
concurrency-group: phpstan-${{ github.workflow }}-${{ github.ref }}
phpstan-console:
uses: php-forge/actions/.github/workflows/phpstan.yml@v2
uses: yii2-framework/actions/.github/workflows/phpstan.yml@v1
with:
configuration: 'phpstan-console.neon'
concurrency-group: phpstan-console-${{ github.workflow }}-${{ github.ref }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#code coverage
/code_coverage

#copilot
copilot

# composer vendor dir
/vendor
/composer.lock
Expand All @@ -17,6 +20,9 @@ phpunit.phar
.phpunit.cache
phpunit.xlm

# vscode
.vscode

#yii3 config packages
/config/packages

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Bug #73: Update workflow actions to use `v1` stable version instead of `main`, update `LICENSE.md` (@terabytesoftw)
- Bug #74: Update `README.md` to include `Behavior` integration section and example usage (@terabytesoftw)
- Bug #75: Update `README.md` to enhance badge visibility and improve installation instructions (@terabytesoftw)
- Bug #76: Update workflows and documentation for improved CI/CD processes and feature clarity (@terabytesoftw)

## 0.3.1 August 16, 2025

Expand Down
31 changes: 31 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SPDX-License-Identifier: BSD-3-Clause

BSD 3-Clause License

Copyright (c) 2008, Terabytesoftw (https://github.com/terabytesoftw/)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 changes: 0 additions & 27 deletions LICENSE.md

This file was deleted.

Loading
Loading