Skip to content

Commit 060ee17

Browse files
committed
Initial commit
1 parent acfd20d commit 060ee17

34 files changed

+327
-655
lines changed

.github/CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing
2+
3+
...
4+
5+
__GL__ & __HF__!!  👍

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: InnoGE

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,64 @@ description: Report an Issue or Bug with the Package
33
title: "[Bug]: "
44
labels: ["bug"]
55
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
10-
- type: textarea
11-
id: what-happened
12-
attributes:
13-
label: What happened?
14-
description: What did you expect to happen?
15-
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
16-
validations:
17-
required: true
18-
- type: textarea
19-
id: how-to-reproduce
20-
attributes:
21-
label: How to reproduce the bug
22-
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
23-
placeholder: When I do X I see Y.
24-
validations:
25-
required: true
26-
- type: input
27-
id: package-version
28-
attributes:
29-
label: Package Version
30-
description: What version of our Package are you running? Please be as specific as possible
31-
placeholder: 2.0.0
32-
validations:
33-
required: true
34-
- type: input
35-
id: php-version
36-
attributes:
37-
label: PHP Version
38-
description: What version of PHP are you running? Please be as specific as possible
39-
placeholder: 8.2.0
40-
validations:
41-
required: true
42-
- type: input
43-
id: laravel-version
44-
attributes:
45-
label: Laravel Version
46-
description: What version of Laravel are you running? Please be as specific as possible
47-
placeholder: 9.0.0
48-
validations:
49-
required: true
50-
- type: dropdown
51-
id: operating-systems
52-
attributes:
53-
label: Which operating systems does with happen with?
54-
description: You may select more than one.
55-
multiple: true
56-
options:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: What did you expect to happen?
15+
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: how-to-reproduce
20+
attributes:
21+
label: How to reproduce the bug
22+
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
23+
placeholder: When I do X I see Y.
24+
validations:
25+
required: true
26+
- type: input
27+
id: package-version
28+
attributes:
29+
label: Package Version
30+
description: What version of our Package are you running? Please be as specific as possible
31+
placeholder: 2.0.0
32+
validations:
33+
required: true
34+
- type: input
35+
id: php-version
36+
attributes:
37+
label: PHP Version
38+
description: What version of PHP are you running? Please be as specific as possible
39+
placeholder: 8.2.0
40+
validations:
41+
required: true
42+
- type: input
43+
id: laravel-version
44+
attributes:
45+
label: Laravel Version
46+
description: What version of Laravel are you running? Please be as specific as possible
47+
placeholder: 9.0.0
48+
validations:
49+
required: true
50+
- type: dropdown
51+
id: operating-systems
52+
attributes:
53+
label: Which operating systems does with happen with?
54+
description: You may select more than one.
55+
multiple: true
56+
options:
5757
- macOS
5858
- Windows
5959
- Linux
60-
- type: textarea
61-
id: notes
62-
attributes:
63-
label: Notes
64-
description: Use this field to provide any other notes that you feel might be relevant to the issue.
65-
validations:
66-
required: false
60+
- type: textarea
61+
id: notes
62+
attributes:
63+
label: Notes
64+
description: Use this field to provide any other notes that you feel might be relevant to the issue.
65+
validations:
66+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/InnoGE/filament-form-faker/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/InnoGE/filament-form-faker/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/InnoGE/filament-form-faker/security/policy
1111
about: Learn how to notify us for sensitive bugs

.github/SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security Policy
2+
3+
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.

.github/dependabot.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ jobs:
5656

5757
- name: Execute tests
5858
run: vendor/bin/pest --ci
59+

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
branch: main
3131
commit_message: Update CHANGELOG
3232
file_pattern: CHANGELOG.md
33+

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-speculation-rules-api` will be documented in this file.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) InnoGE [email protected].com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,24 @@
1-
# :package_description
1+
# Laravel Speculation Rules API
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
<!--delete-->
8-
---
9-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/innoge/laravel-speculation-rules-api.svg?style=flat-square)](https://packagist.org/packages/innoge/laravel-speculation-rules-api)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/innoge/laravel-speculation-rules-api/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/innoge/laravel-speculation-rules-api/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/innoge/laravel-speculation-rules-api/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/innoge/laravel-speculation-rules-api/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/innoge/laravel-speculation-rules-api.svg?style=flat-square)](https://packagist.org/packages/innoge/laravel-speculation-rules-api)
107

11-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
12-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
13-
3. Have fun creating your package.
14-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
15-
---
16-
<!--/delete-->
17-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
18-
19-
## Support us
20-
21-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
22-
23-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
24-
25-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
8+
...
269

2710
## Installation
2811

2912
You can install the package via composer:
3013

3114
```bash
32-
composer require :vendor_slug/:package_slug
33-
```
34-
35-
You can publish and run the migrations with:
36-
37-
```bash
38-
php artisan vendor:publish --tag=":package_slug-migrations"
39-
php artisan migrate
15+
composer require innoge/laravel-speculation-rules-api
4016
```
4117

4218
You can publish the config file with:
4319

4420
```bash
45-
php artisan vendor:publish --tag=":package_slug-config"
21+
php artisan vendor:publish --tag="laravel-speculation-rules-api-config"
4622
```
4723

4824
This is the contents of the published config file:
@@ -52,17 +28,16 @@ return [
5228
];
5329
```
5430

55-
Optionally, you can publish the views using
56-
57-
```bash
58-
php artisan vendor:publish --tag=":package_slug-views"
59-
```
60-
6131
## Usage
6232

6333
```php
64-
$variable = new VendorName\Skeleton();
65-
echo $variable->echoPhrase('Hello, VendorName!');
34+
<html>
35+
...
36+
<body>
37+
...
38+
@specualtionRulesApi
39+
</body>
40+
</html>
6641
```
6742

6843
## Testing
@@ -85,8 +60,8 @@ Please review [our security policy](../../security/policy) on how to report secu
8560

8661
## Credits
8762

88-
- [:author_name](https://github.com/:author_username)
89-
- [All Contributors](../../contributors)
63+
- [Daniel Seuffer](https://github.com/authanram)
64+
- [All Contributors](../../contributors) &nbsp;❤️
9065

9166
## License
9267

composer.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "innoge/laravel-speculation-rules-api",
3+
"description": "A package to add speculation rules to your Laravel application.",
44
"keywords": [
5-
":vendor_name",
6-
"laravel",
7-
":package_slug"
5+
"InnoGE",
6+
"laravel"
87
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
8+
"homepage": "https://github.com/innoge/laravel-speculation-rules-api",
109
"license": "MIT",
1110
"authors": [
1211
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
12+
"name": "Daniel Seuffer",
13+
"email": "[email protected].com",
1514
"role": "Developer"
1615
}
1716
],
@@ -21,9 +20,10 @@
2120
"illuminate/contracts": "^10.0||^11.0"
2221
},
2322
"require-dev": {
23+
"larastan/larastan": "^2.9",
2424
"laravel/pint": "^1.14",
25+
"mockery/mockery": "^1.6",
2526
"nunomaduro/collision": "^8.1.1||^7.10.0",
26-
"larastan/larastan": "^2.9",
2727
"orchestra/testbench": "^9.0.0||^8.22.0",
2828
"pestphp/pest": "^2.34",
2929
"pestphp/pest-plugin-arch": "^2.7",
@@ -35,13 +35,12 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"VendorName\\Skeleton\\": "src/",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
38+
"InnoGE\\LaravelSpeculationRulesApi\\": "src/"
4039
}
4140
},
4241
"autoload-dev": {
4342
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests/",
43+
"InnoGE\\LaravelSpeculationRulesApi\\Tests\\": "tests/",
4544
"Workbench\\App\\": "workbench/app/"
4645
}
4746
},
@@ -73,11 +72,8 @@
7372
"extra": {
7473
"laravel": {
7574
"providers": [
76-
"VendorName\\Skeleton\\SkeletonServiceProvider"
77-
],
78-
"aliases": {
79-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
80-
}
75+
"InnoGE\\LaravelSpeculationRulesApi\\LaravelSpeculationRulesApiServiceProvider"
76+
]
8177
}
8278
},
8379
"minimum-stability": "dev",

config/skeleton.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/speculation-rules-api.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
return [
4+
'prerender' => [
5+
//
6+
],
7+
'prefetch' => [
8+
//
9+
],
10+
];

0 commit comments

Comments
 (0)