Skip to content

Commit e3589ed

Browse files
1.x
0 parents  commit e3589ed

30 files changed

Lines changed: 1972 additions & 0 deletions

‎.editorconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.yml]
18+
indent_size = 2

‎.gitattributes‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
/.github export-ignore
5+
/tests export-ignore
6+
7+
/.editorconfig export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/.styleci.yml export-ignore
11+
/.travis.yml export-ignore
12+
13+
/.phpunit.result.cache export-ignore
14+
/phpunit.xml export-ignore
15+
/phpunit.xml.dist export-ignore
16+
17+
/mago.toml export-ignore
18+
/mago-lint-baseline.toml export-ignore
19+
/mago-analyze-baseline.toml export-ignore

‎.github/FUNDING.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Help me support this package
2+
3+
github: DarkGhostHunter
4+
patreon: PackagesForLaravel
5+
ko_fi: DarkGhostHunter
6+
custom: ['https://www.buymeacoffee.com/darkghosthunter', 'https://paypal.me/darkghosthunter']
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Bug Report
2+
description: |
3+
File a bug report to be fixed.
4+
5+
Sponsors get priority issues, PRs, fixes and requests. Not a sponsor? You're a just click away! https://github.com/sponsors/DarkGhostHunter.
6+
title: "[X.x] What does happen that is considered an error or bug?"
7+
labels: [ "bug" ]
8+
type: "bug"
9+
assignees:
10+
- DarkGhostHunter
11+
body:
12+
- type: markdown
13+
attributes:
14+
value: |
15+
Thanks for taking the time to fill out this bug report!
16+
17+
The more detailed this bug report is, the faster it can be reviewed and fixed.
18+
- type: input
19+
id: version-php-os
20+
attributes:
21+
label: PHP & Platform
22+
description: Exact PHP and Platform (OS) versions using this package.
23+
placeholder: 8.1.2 - Ubuntu 22.04 x64
24+
validations:
25+
required: true
26+
- type: input
27+
id: version-db
28+
attributes:
29+
label: Database
30+
description: Exact DB version using this package, if applicable. Put "N/A" if not applicable.
31+
placeholder: MySQL 8.0.28
32+
validations:
33+
required: false
34+
- type: input
35+
id: version-laravel
36+
attributes:
37+
label: Laravel version
38+
description: Exact Laravel version using this package.
39+
placeholder: 9.2.3
40+
validations:
41+
required: true
42+
- type: input
43+
id: repository
44+
attributes:
45+
label: Reproduction repository (issue will be closed if this is not valid)
46+
description: The URL of a public GitHub repository which reproduces the problem. **Please do not link to your actual project**, instead link a _minimal_ reproduction in a fresh project without any unnecessary code. **This issue will be automatically closed and not reviewed if this is missing. Please make sure to format the URL starting with `https://github.com` - only repositories hosted on GitHub are accepted.** Try this command for a quick start = `curl -sL https://raw.githubusercontent.com/Laragear/ReplicateIssue/main/create-issue.sh | bash`
47+
validations:
48+
required: true
49+
- type: textarea
50+
id: expectation
51+
attributes:
52+
label: Expectation
53+
description: Write what you expect to (correctly) happen.
54+
placeholder: When I do this, I expect to happen that.
55+
validations:
56+
required: true
57+
- type: textarea
58+
id: description
59+
attributes:
60+
label: Description
61+
description: Write what (incorrectly) happens instead.
62+
placeholder: Instead, when I do this, I receive that.
63+
validations:
64+
required: true
65+
- type: textarea
66+
id: reproduction
67+
attributes:
68+
label: Steps to reproduce
69+
description: Paste the code to assert in a test, or just comment with the repository with the bug to download.
70+
render: php
71+
placeholder: |
72+
$test = Laragear::make()->break();
73+
74+
static::assertFalse($test);
75+
76+
// or comment with "https://github.com/my-name/my-bug-report"
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: logs
81+
attributes:
82+
label: Stack trace & logs
83+
description: If you have a **full** stack trace, you can copy it here. You may hide sensible information.
84+
placeholder: This is automatically formatted into code, no need for ``` backticks.
85+
render: shell
86+
validations:
87+
required: false
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Feature request
2+
description: |
3+
Suggest a feature for this package.
4+
5+
Sponsors get priority issues, PRs, fixes and requests. Not a sponsor? You're a just click away! https://github.com/sponsors/DarkGhostHunter.
6+
title: "[X.x] Add this cool feature for this package"
7+
labels: ["enhancement"]
8+
assignees:
9+
- DarkGhostHunter
10+
body:
11+
- type: markdown
12+
attributes:
13+
value: |
14+
Thanks for contributing to this package!
15+
New features keep this package fresh and fun for everybody to use.
16+
17+
Your features are accepted at the **sole discretion of the maintainer**.
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Description
22+
description: Describe how the feature works
23+
placeholder: |
24+
This new feature would accomplish...
25+
26+
It could be implemented by doing...
27+
28+
And it would be cool because...
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: sample
33+
attributes:
34+
label: Code sample
35+
description: Sample a small snippet on how the feature works
36+
placeholder: |
37+
Laragear::newFeature()->cool();
38+
render: php
39+
validations:
40+
required: true

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--
2+
Thanks for contributing to this package! We only accept PR to the latest stable version.
3+
4+
If you're pushing a FEATURE:
5+
- Title it: "[X.x] This new feature"
6+
- Describe what the new feature enables
7+
- Show a small code snippet of the new feature
8+
- Ensure it doesn't break any feature.
9+
10+
If you're pushing a FIX:
11+
- Title it: "[X.x] FIX: The bug name"
12+
- Describe how it fixes in a few words.
13+
- Ensure it doesn't break any feature.
14+
15+
All Pull Requests run with extensive tests for stable and latest versions of PHP and Laravel.
16+
Ensure your tests pass or your PR may be taken down.
17+
18+
If you're a Sponsor, this PR will have priority.
19+
Not a Sponsor? Become one at https://github.com/sponsors/DarkGhostHunter
20+
-->
21+
22+
# Description
23+
24+
This feature/fix allows to...
25+
26+
# Code samples
27+
28+
```php
29+
Laragear::sample();
30+
```
31+
32+
## Functional changes
33+
34+
- [ ] Code-style has been fixed (optionally by running the [Laravel Pint](https://laravel.com/docs/13.x/pint)).
35+
- [ ] Changes have been tested to **not break** existing functionality.
36+
- [ ] Documentation has been updated (if this is a feature).
37+

‎.github/assets/support.png‎

69 KB
Loading

‎.github/dependabot.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
time: "09:00"
8+
timezone: "America/Santiago"
9+
open-pull-requests-limit: 2
10+
groups:
11+
php-dependencies:
12+
patterns:
13+
- "*" # Groups all action updates into one PR to avoid noise
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "weekly"
18+
day: "tuesday"
19+
time: "09:00"
20+
timezone: "America/Santiago"
21+
open-pull-requests-limit: 2
22+
groups:
23+
actions:
24+
patterns:
25+
- "*" # Groups all action updates into one PR to avoid noise

‎.github/workflows/test.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tests
2+
3+
concurrency:
4+
group: ${{ github.ref }}
5+
# If there is already one running, stop the previous and start the new one.
6+
cancel-in-progress: true
7+
8+
on:
9+
push:
10+
branches:
11+
- "*.x"
12+
pull_request:
13+
types: [opened, synchronize, reopened]
14+
15+
jobs:
16+
test:
17+
name: Testing under PHP 8.5 and PHPUnit
18+
uses: Laragear/.github/.github/workflows/test-php-8.5-phpunit.yml@main
19+
secrets: inherit # required to pass org-wide secrets.

‎.gitignore‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.idea
2+
.zed
3+
build
4+
coverage
5+
vendor
6+
report
7+
8+
composer.lock
9+
10+
.phpunit.cache
11+
.phpunit.result.cache
12+
.phpunit.xml.dist.bak
13+
.phpunit.xml.bak

0 commit comments

Comments
 (0)