First release

This commit is contained in:
Italo
2022-06-14 05:17:04 -04:00
commit b60b829b96
119 changed files with 9412 additions and 0 deletions

5
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
# Help me support this package
patreon: PackagesForLaravel
ko_fi: DarkGhostHunter
custom: ['https://www.buymeacoffee.com/darkghosthunter', 'https://paypal.me/darkghosthunter']

113
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@@ -0,0 +1,113 @@
name: Bug Report
description: File a bug report
title: "[X.x] What does happen that is considered an error or bug?"
labels: ["bug"]
assignees:
- DarkGhostHunter
body:
- type: markdown
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
attributes:
label: PHP & Platform
description: Exact PHP and Platform (OS) versions using this package.
placeholder: 8.1.2 - Ubuntu 22.04 x64
validations:
required: true
- type: input
id: version-laravel
attributes:
label: Laravel version
description: Exact Laravel version using this package.
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
required: true
- label: I can reproduce this bug in isolation (vanilla Laravel install)
required: true
- label: I can suggest a workaround as a Pull Request
required: false
- type: textarea
id: expectation
attributes:
label: Expectation
description: Write what you expect to (correctly) happen.
placeholder: When I do this, I expect to this to happen.
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Write what (incorrectly) happens instead.
placeholder: Instead, when I do this, I receive that.
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Paste the code to assert in a test, or just comment with the repository with the bug.
render: php
placeholder: |
$test = Laragear::make()->break();
static::assertFalse($test);
// or comment with "https://github.com/my-name/my-bug-report"
validations:
required: true
- type: textarea
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.
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

View File

@@ -0,0 +1,53 @@
name: Feature request
description: Suggest a feature for this package
title: "[X.x] Add this cool feature for this package"
labels: ["enhancement"]
assignees:
- DarkGhostHunter
body:
- type: markdown
attributes:
value: |
Thanks for contributing to this package!
New features keep this package fresh and fun for everybody to use.
- type: checkboxes
id: requirements
attributes:
label: Please check these requirements
options:
- label: This feature helps everyone using this package
required: true
- label: It's feasible and maintainable
required: true
- label: It's non breaking
required: true
- label: I issued a PR with the implementation (optional)
required: false
- type: textarea
id: description
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...
validations:
required: true
- type: textarea
id: sample
attributes:
label: Code sample
description: Sample a small snippet on how the feature works
placeholder: |
Laragear::newFeature()->cool();
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

33
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,33 @@
<!--
Thanks for contributing to this package! We only accept PR to the latest stable version.
If you're pushing a Feature:
- Title it: "[X.x] This new feature"
- Describe what the new feature enables
- Show a small code snippet of the new feature
- Ensure it doesn't break any feature.
If you're pushing a Fix:
- Title it: "[X.x] FIX: The bug name"
- Describe how it fixes in a few words.
- Ensure it doesn't break any feature.
All Pull Requests run with extensive tests for stable and latest versions of PHP and Laravel.
Ensure your tests pass or your PR may be taken down.
If you're a Patreon supporter, this PR will have priority.
Not a Patreon supporter? Become one at https://patreon.com/packagesforlaravel
-->
# Description
This feature/fix allows to...
# Code samples
```php
Laragear::sample();
```
<!-- You may delete this section if it's a FIX -->

8
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "09:00"
open-pull-requests-limit: 10

50
.github/workflows/php.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1 ]
laravel: [ 9.* ]
dependency-version: [ prefer-stable, prefer-lowest ]
include:
- laravel: 9.*
testbench: 7.*
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-progress --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
- name: Run Tests
run: composer run-script test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2