Skip to content

Commit b5344a0

Browse files
committed
init
1 parent ddd6f6d commit b5344a0

File tree

7 files changed

+82
-8
lines changed

7 files changed

+82
-8
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
/.vscode
66
/vendor
77
/node_modules
8+
/composer.lock
89
/npm-debug.log
910
/yarn-error.log
11+
/.phpunit.cache
12+
/.phpunit.result.cache

β€ŽCHANGELOG.mdβ€Ž

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

3-
All notable changes to `{{ package.name }}` will be documented in this file.
4-
5-
## 1.0.0 - 2025-02-27
6-
7-
**Full Changelog**: https://github.com/yuges-code/package-template/commits/1.0.0
3+
All notable changes to php-package-template will be documented in this file.

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img src="https://raw.githubusercontent.com/yuges-code/package-template/master/assets/logo.png">
2+
<img src="https://raw.githubusercontent.com/yuges-code/php-package-template/master/assets/logo.png">
33
</div>
44

55
<div align="center">
@@ -11,8 +11,10 @@
1111
</div>
1212

1313
<div align="center">
14-
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/yuges-code/package-template">
15-
<img alt="GitHub License" src="https://img.shields.io/github/license/yuges-code/package-template">
14+
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/yuges-code/php-package-template">
15+
<img alt="Packagist Downloads" src="https://img.shields.io/packagist/dt/yuges-code/php-package-template">
16+
<img alt="GitHub License" src="https://img.shields.io/github/license/yuges-code/php-package-template">
17+
<img alt="Packagist Stars" src="https://img.shields.io/packagist/stars/yuges-code/php-package-template">
1618
</div>
1719

1820
# πŸ’Ώ Installation

β€Žcomposer.jsonβ€Ž

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "yuges-code/php-package-template",
3+
"description": "πŸš€ Starter template for all Yuges php packages",
4+
"keywords": [
5+
"php",
6+
"yuges",
7+
"package",
8+
"template"
9+
],
10+
"homepage": "https://yuges-code.github.io/php-package-template",
11+
"support": {
12+
"source": "https://github.com/yuges-code/php-package-template",
13+
"issues": "https://github.com/yuges-code/php-package-template/issues"
14+
},
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Georgy",
19+
"email": "goshasafonov@yandex.ru",
20+
"role": "Developer"
21+
}
22+
],
23+
"require": {
24+
"php": "^8.4"
25+
},
26+
"require-dev": {
27+
"phpunit/phpunit": "^12.0"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Yuges\\PhpPackageTemplate\\": "src"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Yuges\\PhpPackageTemplate\\Tests\\": "tests/"
37+
}
38+
},
39+
"scripts": {
40+
"test": "phpunit"
41+
},
42+
"minimum-stability": "dev",
43+
"prefer-stable": true
44+
}

β€Žphpunit.xmlβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
>
8+
<testsuites>
9+
<testsuite name="Yuges Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<coverage>
14+
<include>
15+
<directory suffix=".php">./src/</directory>
16+
</include>
17+
</coverage>
18+
</phpunit>

β€Žtests/.gitkeepβ€Ž

Whitespace-only changes.

β€Žtests/TestCase.phpβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Yuges\PhpPackageTemplate\Tests;
4+
5+
class TestCase extends \PHPUnit\Framework\TestCase
6+
{
7+
protected function setUp(): void
8+
{
9+
# code...
10+
}
11+
}

0 commit comments

Comments
Β (0)