diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 047c827..ee1b8f7 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,6 +1,3 @@ -# Help me support this package - +# Let's keep it free and up to date github: DarkGhostHunter -patreon: PackagesForLaravel -ko_fi: DarkGhostHunter -custom: ['https://www.buymeacoffee.com/darkghosthunter', 'https://paypal.me/darkghosthunter'] +custom: "https://paypal.me/darkghosthunter" diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 9aaef6c..aeab82b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,8 @@ name: Bug Report -description: File a bug report +description: | + File a bug report to be fixed. + + Sponsors get priority issues, PRs, fixes and requests. Not a sponsor? [You're a just click away!](https://github.com/sponsors/DarkGhostHunter). title: "[X.x] What does happen that is considered an error or bug?" labels: ["bug"] assignees: @@ -9,6 +12,7 @@ body: attributes: value: | Thanks for taking the time to fill out this bug report! + The more detailed this bug report is, the faster it can be reviewed and fixed. - type: input id: version-php-os @@ -18,6 +22,14 @@ body: placeholder: 8.1.2 - Ubuntu 22.04 x64 validations: required: true + - type: input + id: version-db + attributes: + label: Database + description: Exact DB version using this package, if applicable. + placeholder: MySQL 8.0.28 + validations: + required: false - type: input id: version-laravel attributes: @@ -26,28 +38,12 @@ body: placeholder: 9.2.3 validations: required: true - - type: input - id: version-authenticator - attributes: - label: Authenticator type - description: If applicable, exact authenticator you're using. - placeholder: YubiKey 5, iPhone 7s, Samsung Galaxy S11+... - validations: - required: false - - type: input - id: version-os-browser - attributes: - label: OS and Browser versions - description: If applicable, exact OS and Browser versions - placeholder: Android 12.0 - Chrome 102.0.5005.99 - validations: - required: false - type: checkboxes id: requirements attributes: label: Have you done this? options: - - label: I am willing to share my stack trace and logs + - label: I have checked my logs and I'm sure is a bug in this package. required: true - label: I can reproduce this bug in isolation (vanilla Laravel install) required: true @@ -58,7 +54,7 @@ body: attributes: label: Expectation description: Write what you expect to (correctly) happen. - placeholder: When I do this, I expect to this to happen. + placeholder: When I do this, I expect to happen that. validations: required: true - type: textarea @@ -73,7 +69,7 @@ body: id: reproduction attributes: label: Reproduction - description: Paste the code to assert in a test, or just comment with the repository with the bug. + description: Paste the code to assert in a test, or just comment with the repository with the bug to download. render: php placeholder: | $test = Laragear::make()->break(); @@ -87,27 +83,8 @@ body: id: logs attributes: label: Stack trace & logs - description: If you have a stack trace, you can copy it here. You may hide sensible information. - placeholder: This is automatically formatted into code, no need for backticks. + description: If you have a **full** stack trace, you can copy it here. You may hide sensible information. + placeholder: This is automatically formatted into code, no need for ``` backticks. render: shell validations: required: false - - type: textarea - id: attestation-assertion - attributes: - label: Attestation / Assertion objects - description: If applicable, add the Attestation and Assertion objects you have debugged. - placeholder: This is automatically formatted into Javascript, no need for backticks. - render: javascript - validations: - required: false - - type: dropdown - id: supporter - attributes: - label: Are you a Patreon supporter? - description: Patreon supporters get priority review, fixing and responses. Are you not? [Become one!](https://patreon.com/packagesforlaravel) - options: - - Yes, with my username - - No, don't give priority to this - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index c9ea26b..cc1acf3 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,5 +1,8 @@ name: Feature request -description: Suggest a feature for this package +description: | + Suggest a feature for this package. + + Sponsors get priority issues, PRs, fixes and requests. Not a sponsor? [You're a just click away!](https://github.com/sponsors/DarkGhostHunter). title: "[X.x] Add this cool feature for this package" labels: ["enhancement"] assignees: @@ -28,7 +31,12 @@ body: attributes: label: Description description: Describe how the feature works - placeholder: This new feature would accomplish this, and would be cool to integrate it to the package because... + placeholder: | + This new feature would accomplish... + + It could be implemented by doing... + + And it would be cool because... validations: required: true - type: textarea @@ -41,13 +49,3 @@ body: render: php validations: required: true - - type: dropdown - id: supporter - attributes: - label: Are you a Patreon supporter? - description: Patreon supporters get priority review, fixing and responses. Are you not? [Become one!](https://patreon.com/packagesforlaravel) - options: - - Yes, with my username - - No, don't give priority to this - validations: - required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 20d7f5a..200a6d1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,23 +1,22 @@ # Description @@ -29,5 +28,3 @@ This feature/fix allows to... ```php Laragear::sample(); ``` - - diff --git a/.github/assets/buymeacoffee.png b/.github/assets/buymeacoffee.png deleted file mode 100644 index 7ce4b19..0000000 Binary files a/.github/assets/buymeacoffee.png and /dev/null differ diff --git a/.github/assets/ko-fi.png b/.github/assets/ko-fi.png deleted file mode 100644 index f4f27df..0000000 Binary files a/.github/assets/ko-fi.png and /dev/null differ diff --git a/.github/assets/patreon.png b/.github/assets/patreon.png deleted file mode 100644 index 1161c33..0000000 Binary files a/.github/assets/patreon.png and /dev/null differ diff --git a/.github/assets/paypal.png b/.github/assets/paypal.png deleted file mode 100644 index d28f8f6..0000000 Binary files a/.github/assets/paypal.png and /dev/null differ diff --git a/.github/assets/support.png b/.github/assets/support.png new file mode 100644 index 0000000..8276da2 Binary files /dev/null and b/.github/assets/support.png differ diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 868d7b5..b7bcd8f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow -name: "Tests" +name: Tests on: push: @@ -21,6 +21,7 @@ jobs: - name: "Find non-printable ASCII characters" run: | ! LC_ALL=C.UTF-8 find ./src -type f -name "*.php" -print0 | xargs -0 -- grep -PHn "[^ -~]" + syntax_errors: name: "1️⃣ Syntax errors" runs-on: "ubuntu-latest" @@ -34,10 +35,8 @@ jobs: - name: "Checkout code" uses: "actions/checkout@v3" - - name: "Install dependencies" - uses: "ramsey/composer-install@v2" - with: - dependency-versions: "highest" + - name: "Validate Composer configuration" + run: "composer validate --strict" - name: "Check source code for syntax errors" run: "composer exec -- parallel-lint src/" @@ -51,6 +50,7 @@ jobs: strategy: matrix: php-version: + - "8.0" - "8.1" laravel-constrain: - "9.*" @@ -89,19 +89,14 @@ jobs: - name: "Set up PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.1" tools: "phpstan" + php-version: "latest" - name: "Checkout code" uses: "actions/checkout@v3" - - name: "Validate Composer configuration" - run: "composer validate --strict" - - name: "Install dependencies" uses: "ramsey/composer-install@v2" - with: - dependency-versions: "highest" - name: "Execute static analysis" run: "composer exec -- phpstan analyze -l 5 src/" @@ -119,7 +114,7 @@ jobs: - name: "Check exported files" run: | EXPECTED="LICENSE.md,README.md,composer.json" - CURRENT="$(git archive HEAD | tar --list --exclude="src" --exclude="src/*" --exclude=".stubs" --exclude=".stubs/*" --exclude="stubs" --exclude="stubs/*" --exclude="lang" --exclude="lang/*" --exclude="config" --exclude="config/*" --exclude="database" --exclude="database/*" --exclude="resources" --exclude="resources/*" --exclude="routes" --exclude="routes/*" | paste -s -d ",")" + CURRENT="$(git archive HEAD | tar --list --exclude="src" --exclude="src/*" --exclude=".stubs" --exclude=".stubs/*" --exclude="routes" --exclude="routes/*" --exclude="stubs" --exclude="stubs/*" --exclude="lang" --exclude="lang/*" --exclude="config" --exclude="config/*" --exclude="database" --exclude="database/*" --exclude="resources" --exclude="resources/*" | paste -s -d ",")" echo "CURRENT =${CURRENT}" echo "EXPECTED=${EXPECTED}" test "${CURRENT}" == "${EXPECTED}" diff --git a/README.md b/README.md index f2eb251..84000fc 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ public function login(AssertedRequest $request) > You want to add two-factor authentication to your app? Check out [Laragear TwoFactor](https://github.com/Laragear/TwoFactor). -## Keep this package free +## Become a sponsor -[![Patreon](.github/assets/patreon.png)](https://patreon.com/packagesforlaravel)[![Ko-fi](.github/assets/ko-fi.png)](https://ko-fi.com/DarkGhostHunter)[![Buymeacoffee](.github/assets/buymeacoffee.png)](https://www.buymeacoffee.com/darkghosthunter)[![PayPal](.github/assets/paypal.png)](https://www.paypal.com/paypalme/darkghosthunter) +[![](.github/assets/support.png)](https://github.com/sponsors/DarkGhostHunter) Your support allows me to keep this package free, up-to-date and maintainable. Alternatively, you can **[spread the word!](http://twitter.com/share?text=I%20am%20using%20this%20cool%20PHP%20package&url=https://github.com%2FLaragear%2FWebAuthn&hashtags=PHP,Laravel)**