Skip to content

Commit 73fdeda

Browse files
authored
Initial commit
0 parents  commit 73fdeda

File tree

29 files changed

+527
-0
lines changed

29 files changed

+527
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: yuges-code

.github/workflows/testing.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: 🧪 Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 5
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
os: [ubuntu-latest]
19+
php: [8.4]
20+
laravel: ['10.*', '11.*', '12.*']
21+
stability: [prefer-stable]
22+
include:
23+
- laravel: 10.*
24+
testbench: 8.*
25+
- laravel: 11.*
26+
testbench: 9.*
27+
- laravel: 12.*
28+
testbench: 10.*
29+
30+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
31+
32+
steps:
33+
- name: 📦 Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: 🛠️ Setup PHP
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: ${{ matrix.php }}
40+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
41+
ini-values: error_reporting=E_ALL
42+
coverage: none
43+
44+
- name: 🛠️ Setup problem matchers
45+
run: |
46+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
47+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
48+
49+
- name: 📥 Install dependencies
50+
run: |
51+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
52+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
53+
54+
- name: 📋 List installed dependencies
55+
run: composer show -D
56+
57+
- name: 🧪 Run tests
58+
run: composer test
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.release.target_commitish }}
20+
21+
- name: Update Changelog
22+
uses: stefanzweifel/changelog-updater-action@v1
23+
with:
24+
latest-version: ${{ github.event.release.tag_name }}
25+
release-notes: ${{ github.event.release.body }}
26+
27+
- name: Commit updated CHANGELOG
28+
uses: stefanzweifel/git-auto-commit-action@v5
29+
with:
30+
branch: ${{ github.event.release.target_commitish }}
31+
commit_message: Update CHANGELOG
32+
file_pattern: CHANGELOG.md

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.env
2+
/.zed
3+
/.idea
4+
/.fleet
5+
/.vscode
6+
/vendor
7+
/node_modules
8+
/composer.lock
9+
/npm-debug.log
10+
/yarn-error.log
11+
/.phpunit.cache
12+
/.phpunit.result.cache

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to laravel-package-template will be documented in this file.
4+
5+
## 1.0.0 - 2025-02-27
6+
7+
**Full Changelog**: https://github.com/yuges-code/laravel-package-template/commits/1.0.0

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 yuges
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<div align="center">
2+
<img src="https://raw.githubusercontent.com/yuges-code/laravel-package-template/master/assets/logo.png">
3+
</div>
4+
5+
<div align="center">
6+
<b>Build<b>
7+
<div>
8+
<img
9+
alt="GitHub Branch Check Runs"
10+
src="https://img.shields.io/github/check-runs/yuges-code/laravel-package-template/main"
11+
>
12+
<img
13+
alt="GitHub Tests Action Status"
14+
src="https://img.shields.io/github/actions/workflow/status/yuges-code/laravel-package-template/testing.yml?branch=main&label=tests&style=flat-square"
15+
>
16+
</div>
17+
</div>
18+
19+
<div align="center">
20+
<b>Project</b>
21+
<div>
22+
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/yuges-code/laravel-package-template">
23+
<img alt="Packagist Downloads" src="https://img.shields.io/packagist/dt/yuges-code/laravel-package-template">
24+
<img alt="GitHub License" src="https://img.shields.io/github/license/yuges-code/laravel-package-template">
25+
<img alt="Packagist Stars" src="https://img.shields.io/packagist/stars/yuges-code/laravel-package-template">
26+
<img
27+
alt="Packagist Dependency Version"
28+
src="https://img.shields.io/packagist/dependency-v/yuges-code/laravel-package-template/php"
29+
>
30+
</div>
31+
</div>
32+
33+
<div align="center">
34+
<b>Quality</b>
35+
</div>
36+
37+
<div align="center">
38+
<h1>Laravel package template</h1>
39+
</div>
40+
41+
<div align="center">
42+
<h3>🚀 Starter template for all Yuges Laravel packages</h3>
43+
</div>
44+
45+
# 💿 Installation
46+
47+
To use this template, clone the repository and install the dependencies:
48+
49+
```
50+
git clone https://github.com/yuges-code/laravel-package-template.git
51+
cd laravel-package-template
52+
53+
composer install
54+
```
55+
56+
# 🧪 Running Tests
57+
58+
To run tests, run the following command:
59+
60+
```
61+
composer test
62+
```
63+
64+
# ⚖️ License
65+
66+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
67+
68+
# 🙆🏼‍♂️ Authors Information
69+
70+
Created in 2025 by:
71+
72+
- [Yuges-code](https://github.com/yuges-code)
73+
- [All Contributors](../../contributors)

assets/logo.png

644 KB
Loading

composer.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "yuges-code/laravel-package-template",
3+
"description": "🚀 Starter template for all Yuges Laravel packages",
4+
"keywords": [
5+
"php",
6+
"yuges",
7+
"laravel",
8+
"package",
9+
"template"
10+
],
11+
"homepage": "https://yuges-code.github.io/laravel-package-template",
12+
"support": {
13+
"source": "https://github.com/yuges-code/laravel-package-template",
14+
"issues": "https://github.com/yuges-code/laravel-package-template/issues"
15+
},
16+
"license": "MIT",
17+
"authors": [
18+
{
19+
"name": "Georgy",
20+
"email": "goshasafonov@yandex.ru",
21+
"role": "Developer"
22+
}
23+
],
24+
"require": {
25+
"php": "^8.4",
26+
"yuges-code/laravel-package": "^1.0"
27+
},
28+
"require-dev": {
29+
"orchestra/testbench": "^10.0"
30+
},
31+
"autoload": {
32+
"psr-4": {
33+
"Yuges\\LaravelPackageTemplate\\": "src",
34+
"Yuges\\LaravelPackageTemplate\\Database\\Seeders\\": "database/seeders/",
35+
"Yuges\\LaravelPackageTemplate\\Database\\Factories\\": "database/factories/"
36+
}
37+
},
38+
"autoload-dev": {
39+
"psr-4": {
40+
"Yuges\\Package\\Tests\\": "tests/src"
41+
}
42+
},
43+
"scripts": {
44+
"test": "phpunit"
45+
},
46+
"extra": {
47+
"laravel": {
48+
"providers": [
49+
"Yuges\\LaravelPackageTemplate\\Providers\\TemplateServiceProvider"
50+
]
51+
}
52+
},
53+
"minimum-stability": "dev",
54+
"prefer-stable": true
55+
}

0 commit comments

Comments
 (0)