-
-
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.
Merge pull request #1 from MammatusPHP/full-package
Initial package set up
- Loading branch information
Showing
28 changed files
with
11,894 additions
and
10 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,20 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[*.yaml] | ||
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,14 @@ | ||
# Ignoring files for distribution archieves | ||
.github/ export-ignore | ||
etc/ci/ export-ignore | ||
etc/qa/ export-ignore | ||
tests/ export-ignore | ||
var/ export-ignore | ||
.devcontainer.json export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
CONTRIBUTING.md export-ignore | ||
infection.json.dist export-ignore | ||
Makefile export-ignore | ||
README.md export-ignore |
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 @@ | ||
* @WyriHaximus |
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 @@ | ||
github: WyriHaximus |
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,60 @@ | ||
labelPRBasedOnFilePath: | ||
"Documentation 📚": | ||
- README.md | ||
- CONTRIBUTING.md | ||
"Dependencies 📦": | ||
- Dockerfile* | ||
- composer.* | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"Docker 🐳": | ||
- Dockerfile* | ||
- .docker/**/* | ||
"Image 🖼": | ||
- "**/*.gif" | ||
- "**/*.jpg" | ||
- "**/*.jpeg" | ||
- "**/*.png" | ||
- "**/*.webp" | ||
"CSS 👩🎨": | ||
- "**/*.css" | ||
"HTML 👷♀️": | ||
- "**/*.htm" | ||
- "**/*.html" | ||
"NEON 🦹♂️": | ||
- "**/*.neon" | ||
"MarkDown 📝": | ||
- "**/*.md" | ||
"YAML 🍄": | ||
- "**/*.yml" | ||
- "**/*.yaml" | ||
"JSON 👨💼": | ||
- "**/*.json" | ||
"Go 🐹": | ||
- "**/*.go" | ||
"JavaScript 🦏": | ||
- "**/*.js" | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"PHP 🐘": | ||
- "**/*.php" | ||
- composer.* | ||
"Configuration ⚙": | ||
- .github/* | ||
"CI 🚧": | ||
- .github/workflows/* | ||
- .scrutinizer.yml | ||
"Templates 🌲": | ||
- "**/*.twig" | ||
- "**/*.tpl" | ||
"Helm ☸": | ||
- .helm/**/* | ||
"Tests 🧪": | ||
- tests/**/* | ||
"Source 🔮": | ||
- src/**/* | ||
|
||
labelerFlags: | ||
labelOnPRUpdates: true |
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 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>WyriHaximus/renovate-config:php-package-dev" | ||
] | ||
} |
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,122 @@ | ||
repository: | ||
private: false | ||
has_issues: true | ||
has_wiki: false | ||
has_downloads: true | ||
default_branch: master | ||
allow_squash_merge: false | ||
allow_merge_commit: true | ||
allow_rebase_merge: false | ||
|
||
# Labels: define labels for Issues and Pull Requests | ||
labels: | ||
- name: "Deprecations 👋" | ||
color: ff7700 | ||
- name: "Dependabot 🤖" | ||
color: 0366d6 | ||
- name: "Dependencies 📦" | ||
color: 0025ff | ||
description: "Pull requests that update a dependency file" | ||
- name: "Image 🖼" | ||
color: 00ffff | ||
- name: "HTML 👷♀️" | ||
color: ffffff | ||
- name: "CSS 👩🎨" | ||
color: b3b3b3 | ||
- name: "JavaScript 🦏" | ||
color: ffff00 | ||
- name: "Go 🐹" | ||
color: 00ADD8 | ||
- name: "JSON 👨💼" | ||
color: 00ADD8 | ||
- name: "NEON 🦹♂️" | ||
color: CE3262 | ||
- name: "MarkDown 📝" | ||
color: 000000 | ||
- name: "YAML 🍄" | ||
color: ff1aff | ||
- name: "Templates 🌲" | ||
color: 009933 | ||
- name: "Helm ☸" | ||
color: 091C84 | ||
- name: "Tests 🧪" | ||
color: ffe6e6 | ||
- name: "Source 🔮" | ||
color: e6ffe6 | ||
- name: "Configuration ⚙" | ||
color: b3b3cc | ||
- name: "PHP 🐘" | ||
color: 8892BF | ||
description: "Hypertext Pre Processor" | ||
- name: "Docker 🐳" | ||
color: 0db7ed | ||
description: "Pull requests that relate to Docker" | ||
- name: "CI 🚧" | ||
color: ffff00 | ||
- name: "Feature 🏗" | ||
color: 66ff99 | ||
- name: "Documentation 📚" | ||
color: 6666ff | ||
- name: "Security 🕵️♀️" | ||
color: ff0000 | ||
- name: "Hacktoberfest 🎃" | ||
color: 152347 | ||
- name: "Bug 🐞" | ||
color: d73a4a | ||
description: "Something isn't working" | ||
oldname: bug | ||
- name: "Duplicate ♊" | ||
color: cfd3d7 | ||
description: "This issue or pull request already exists" | ||
oldname: duplicate | ||
- name: "Enhancement ✨" | ||
color: a2eeef | ||
description: "New feature or request" | ||
oldname: enhancement | ||
- name: "Good First Issue" | ||
color: 7057ff | ||
description: "Good for newcomers" | ||
oldname: "good first issue" | ||
- name: "Help Wanted" | ||
color: 008672 | ||
description: "Extra attention is needed" | ||
oldname: "help wanted" | ||
- name: Invalid | ||
color: e4e669 | ||
description: "This doesn't seem right" | ||
oldname: invalid | ||
- name: "Question ❓" | ||
color: d876e3 | ||
description: "Further information is requested" | ||
oldname: question | ||
- name: "Will not be fixed 🛑" | ||
color: ffffff | ||
description: "This will not be worked on" | ||
oldname: wontfix | ||
- name: "Sponsor Request ❤️" | ||
color: fedbf0 | ||
description: "Issue/PR opened by sponsor" | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
# Required. Require status checks to pass before merging. Set to null to disable | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: true | ||
# Required. The list of status checks to require in order to merge into this branch | ||
contexts: [ | ||
"Milestone Check", | ||
"✔️" | ||
] | ||
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. | ||
enforce_admins: true | ||
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [] |
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 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'master' | ||
- 'refs/heads/v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
## This workflow needs the `pull-request` permissions to work for the package diffing | ||
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions | ||
permissions: | ||
pull-requests: write | ||
contents: read | ||
jobs: | ||
ci: | ||
name: Continuous Integration | ||
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main |
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,26 @@ | ||
name: Release Management | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
- reopened | ||
- milestoned | ||
- demilestoned | ||
- ready_for_review | ||
milestone: | ||
types: | ||
- closed | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
release-managment: | ||
name: Create Release | ||
uses: WyriHaximus/github-workflows/.github/workflows/package-release-managment.yaml@main | ||
with: | ||
milestone: ${{ github.event.milestone.title }} | ||
description: ${{ github.event.milestone.title }} |
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 @@ | ||
var/* | ||
!var/.gitkeep | ||
src/Generated/* | ||
!src/Generated/.gitkeep | ||
vendor/ | ||
etc/qa/.phpunit.result.cache |
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,42 @@ | ||
# Contributing | ||
|
||
Pull requests are highly appreciated. Here's a quick guide. | ||
|
||
Fork, then clone the repo: | ||
|
||
git clone [email protected]:your-username/json.git | ||
|
||
Set up your machine: | ||
|
||
composer install | ||
|
||
Make sure the tests pass: | ||
|
||
make unit | ||
|
||
Make sure the tests pass on all supported PHP versions (requires docker): | ||
|
||
make dunit | ||
|
||
Make your change. Add tests for your change. Make the tests pass: | ||
|
||
make dunit && make unit | ||
|
||
Before committing and submitting your pull request make sure it passes PSR2 coding style, unit tests pass and pass on all supported PHP versions: | ||
|
||
make contrib | ||
|
||
Push to your fork and [submit a pull request][pr]. | ||
|
||
[pr]: https://help.github.com/articles/creating-a-pull-request/ | ||
|
||
At this point you're waiting on me. I like to at least comment on pull requests | ||
within a day or two. I may suggest some changes or improvements or alternatives. | ||
|
||
Some things that will increase the chance that your pull request is accepted: | ||
|
||
* Write tests. | ||
* Follow PSR2 (travis will also check for this). | ||
* Write a [good commit message][commit]. | ||
|
||
[commit]: http://chris.beams.io/posts/git-commit/ |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 reactive-apps | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.