Skip to content

Commit e345ff8

Browse files
committed
WIP
1 parent 6099894 commit e345ff8

30 files changed

+591
-477
lines changed

.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: codebar Solutions AG

.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_slug/:package_name/discussions/new?category=q-a
4+
url: https://github.com/codebar-ag/laravel-pwa/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_slug/:package_name/discussions/new?category=ideas
7+
url: https://github.com/codebar-ag/laravel-pwa/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_slug/:package_name/security/policy
10+
url: https://github.com/codebar-ag/laravel-pwa/security/policy
1111
about: Learn how to notify us for sensitive bugs

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-pwa` 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) codebar Solutions AG <[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: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
# :package_description
2-
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:
10-
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-->
1+
# This is my package laravel-pwa
2+
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-pwa.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-pwa)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/codebar-ag/laravel-pwa/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/codebar-ag/laravel-pwa/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/codebar-ag/laravel-pwa/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/codebar-ag/laravel-pwa/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/codebar-ag/laravel-pwa.svg?style=flat-square)](https://packagist.org/packages/codebar-ag/laravel-pwa)
7+
178
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
189

1910
## Support us
2011

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)
12+
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-pwa.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-pwa)
2213

2314
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).
2415

@@ -29,20 +20,20 @@ We highly appreciate you sending us a postcard from your hometown, mentioning wh
2920
You can install the package via composer:
3021

3122
```bash
32-
composer require :vendor_slug/:package_slug
23+
composer require codebar-ag/laravel-pwa
3324
```
3425

3526
You can publish and run the migrations with:
3627

3728
```bash
38-
php artisan vendor:publish --tag=":package_slug-migrations"
29+
php artisan vendor:publish --tag="laravel-pwa-migrations"
3930
php artisan migrate
4031
```
4132

4233
You can publish the config file with:
4334

4435
```bash
45-
php artisan vendor:publish --tag=":package_slug-config"
36+
php artisan vendor:publish --tag="laravel-pwa-config"
4637
```
4738

4839
This is the contents of the published config file:
@@ -55,14 +46,14 @@ return [
5546
Optionally, you can publish the views using
5647

5748
```bash
58-
php artisan vendor:publish --tag=":package_slug-views"
49+
php artisan vendor:publish --tag="laravel-pwa-views"
5950
```
6051

6152
## Usage
6253

6354
```php
64-
$variable = new VendorName\Skeleton();
65-
echo $variable->echoPhrase('Hello, VendorName!');
55+
$laravelPWA = new CodebarAg\LaravelPWA();
56+
echo $laravelPWA->echoPhrase('Hello, CodebarAg!');
6657
```
6758

6859
## Testing
@@ -85,7 +76,7 @@ Please review [our security policy](../../security/policy) on how to report secu
8576

8677
## Credits
8778

88-
- [:author_name](https://github.com/:author_username)
79+
- [Rhys Lees](https://github.com/43909932+RhysLees)
8980
- [All Contributors](../../contributors)
9081

9182
## License

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "codebar-ag/laravel-pwa",
3+
"description": "This is my package laravel-pwa",
44
"keywords": [
5-
":vendor_name",
5+
"codebar Solutions AG",
66
"laravel",
7-
":package_slug"
7+
"laravel-pwa"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/codebar-ag/laravel-pwa",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
13+
"name": "Rhys Lees",
14+
"email": "[email protected].com",
1515
"role": "Developer"
1616
}
1717
],
1818
"require": {
19-
"php": "^8.4",
19+
"php": "^8.3",
2020
"spatie/laravel-package-tools": "^1.16",
2121
"illuminate/contracts": "^10.0||^11.0"
2222
},
@@ -35,13 +35,13 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"VendorName\\Skeleton\\": "src/",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
38+
"CodebarAg\\LaravelPWA\\": "src/",
39+
"CodebarAg\\LaravelPWA\\Database\\Factories\\": "database/factories/"
4040
}
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests/",
44+
"CodebarAg\\LaravelPWA\\Tests\\": "tests/",
4545
"Workbench\\App\\": "workbench/app/"
4646
}
4747
},
@@ -63,10 +63,10 @@
6363
"extra": {
6464
"laravel": {
6565
"providers": [
66-
"VendorName\\Skeleton\\SkeletonServiceProvider"
66+
"CodebarAg\\LaravelPWA\\LaravelPWAServiceProvider"
6767
],
6868
"aliases": {
69-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
69+
"LaravelPWA": "CodebarAg\\LaravelPWA\\Facades\\LaravelPWA"
7070
}
7171
}
7272
},

config/pwa.php

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?php
2+
3+
return [
4+
'name' => env('APP_NAME'),
5+
6+
'manifest' => [
7+
'name' => env('APP_NAME'),
8+
'short_name' => env('APP_NAME'),
9+
10+
'start_url' => '/',
11+
12+
'background_color' => '#ffffff',
13+
'theme_color' => '#000000',
14+
15+
'display' => 'standalone',
16+
'orientation' => 'any',
17+
18+
'status_bar' => 'default',
19+
20+
'icons' => [
21+
'72x72' => [
22+
'path' => '/favicons/icon-72x72.png',
23+
'purpose' => 'any',
24+
],
25+
'96x96' => [
26+
'path' => '/favicons/icon-96x96.png',
27+
'purpose' => 'any',
28+
],
29+
'128x128' => [
30+
'path' => '/favicons/icon-128x128.png',
31+
'purpose' => 'any',
32+
],
33+
'144x144' => [
34+
'path' => '/favicons/icon-144x144.png',
35+
'purpose' => 'any',
36+
],
37+
'152x152' => [
38+
'path' => '/favicons/icon-152x152.png',
39+
'purpose' => 'any',
40+
],
41+
'192x192' => [
42+
'path' => '/favicons/icon-192x192.png',
43+
'purpose' => 'any',
44+
],
45+
'512x512' => [
46+
'path' => '/favicons/icon-192x192.png',
47+
'purpose' => 'any',
48+
],
49+
],
50+
51+
'splash' => [
52+
'640x1136' => '/splash_screens/splash-640x1136.png',
53+
'750x1334' => '/splash_screens/splash-750x1334.png',
54+
'828x1792' => '/splash_screens/splash-828x1792.png',
55+
'1125x2436' => '/splash_screens/splash-1125x2436.png',
56+
'1242x2208' => '/splash_screens/splash-1242x2208.png',
57+
'1242x2688' => '/splash_screens/splash-1242x2688.png',
58+
'1536x2048' => '/splash_screens/splash-1536x2048.png',
59+
'1668x2224' => '/splash_screens/splash-1668x2224.png',
60+
'1668x2388' => '/splash_screens/splash-1668x2388.png',
61+
'2048x2732' => '/splash_screens/splash-2048x2732.png',
62+
],
63+
64+
// 'shortcuts' => [
65+
// [
66+
// 'name' => 'Shortcut Link 1',
67+
// 'description' => 'Shortcut Link 1 Description',
68+
// 'url' => '/shortcutlink1',
69+
// 'icons' => [
70+
// 'src' => '/splash_screens/icon-72x72.png',
71+
// 'purpose' => 'any',
72+
// ],
73+
// ],
74+
// [
75+
// 'name' => 'Shortcut Link 2',
76+
// 'description' => 'Shortcut Link 2 Description',
77+
// 'url' => '/shortcutlink2',
78+
// ],
79+
// ],
80+
81+
'custom' => [],
82+
],
83+
84+
'cache' => [
85+
'store' => env('CACHE_STORE', 'database'),
86+
'expiration' => 60,
87+
],
88+
89+
'tenant' => [
90+
'enabled' => true,
91+
92+
'model' => \App\Models\Team::class,
93+
94+
'cache' => [
95+
'store' => env('CACHE_STORE', 'database'),
96+
'expiration' => 60,
97+
],
98+
],
99+
];

config/skeleton.php

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

0 commit comments

Comments
 (0)