Skip to content

Commit 5839af1

Browse files
authored
Initial commit
0 parents  commit 5839af1

30 files changed

+11478
-0
lines changed

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.github/ export-ignore
2+
/stubs/ export-ignore
3+
/tests/ export-ignore
4+
/tools/ export-ignore
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.php-cs-fixer.dist.php export-ignore
8+
/composer.lock export-ignore
9+
/infection.json5.dist export-ignore
10+
/phpstan.dist.neon export-ignore
11+
/phpunit.xml.dist export-ignore
12+
/psalm.xml.dist export-ignore

.github/workflows/check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
on:
2+
workflow_dispatch: ~
3+
push:
4+
branches: ['main', '*.*.x']
5+
pull_request: ~
6+
7+
jobs:
8+
check:
9+
uses: thesis-php/.github/.github/workflows/check.yml@main
10+
secrets: inherit

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/tools/**/vendor/
2+
/var/
3+
/vendor/
4+
/.php-cs-fixer.php
5+
/phpstan.neon
6+
/phpunit.xml
7+
/psalm.xml

.php-cs-fixer.dist.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PhpCsFixer\Config;
6+
use PhpCsFixer\Finder;
7+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
8+
use PHPyh\CodingStandard\PhpCsFixerCodingStandard;
9+
10+
$config = (new Config())
11+
->setFinder(
12+
Finder::create()
13+
->in(__DIR__ . '/src')
14+
->in(__DIR__ . '/tests')
15+
->append([
16+
__FILE__,
17+
]),
18+
)
19+
->setParallelConfig(ParallelConfigFactory::detect())
20+
->setCacheFile(__DIR__ . '/var/' . basename(__FILE__) . '.cache');
21+
22+
(new PhpCsFixerCodingStandard())->applyTo($config);
23+
24+
return $config;

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

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) 2024-present Valentin Udaltsov
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Thesis Template
2+
3+
[![PHP Version Requirement](https://img.shields.io/packagist/dependency-v/thesis/template/php)](https://packagist.org/packages/thesis/template)
4+
[![GitHub Release](https://img.shields.io/github/v/release/thesis-php/template)](https://github.com/thesis-php/template/releases)
5+
[![Code Coverage](https://codecov.io/gh/thesis-php/template/branch/0.1.x/graph/badge.svg)](https://codecov.io/gh/thesis-php/template/tree/0.1.x)
6+
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fthesis-php%2Ftemplate%2F0.1.x)](https://dashboard.stryker-mutator.io/reports/github.com/thesis-php/template/0.1.x)
7+
8+
## Installation
9+
10+
```shell
11+
composer require thesis/template
12+
```

composer.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "thesis/template",
3+
"description": "Thesis Template",
4+
"license": "MIT",
5+
"type": "library",
6+
"authors": [
7+
{
8+
"name": "Valentin Udaltsov",
9+
"email": "udaltsov.valentin@gmail.com"
10+
},
11+
{
12+
"name": "Thesis Team",
13+
"homepage": "https://github.com/orgs/thesis-php/people"
14+
}
15+
],
16+
"require": {
17+
"php": "^8.3"
18+
},
19+
"require-dev": {
20+
"bamarni/composer-bin-plugin": "^1.8.2",
21+
"phpunit/phpunit": "^12.1.4",
22+
"symfony/var-dumper": "^6.4.15 || ^7.2.6"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"Thesis\\Template\\": "src/"
27+
}
28+
},
29+
"autoload-dev": {
30+
"psr-4": {
31+
"Thesis\\Template\\": "tests/"
32+
}
33+
},
34+
"config": {
35+
"allow-plugins": {
36+
"bamarni/composer-bin-plugin": true
37+
},
38+
"bump-after-update": "dev",
39+
"platform": {
40+
"php": "8.3.17"
41+
},
42+
"sort-packages": true
43+
},
44+
"extra": {
45+
"bamarni-bin": {
46+
"bin-links": false,
47+
"forward-command": true,
48+
"target-directory": "tools"
49+
}
50+
},
51+
"scripts": {
52+
"analyse-deps": "tools/composer-dependency-analyser/vendor/bin/composer-dependency-analyser",
53+
"fixcs": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --verbose",
54+
"infection": "tools/infection/vendor/bin/infection --show-mutations",
55+
"normalize": "@composer bin composer-normalize normalize --diff ../../composer.json",
56+
"phpstan": "tools/phpstan/vendor/bin/phpstan analyze",
57+
"pre-command-run": "mkdir -p var",
58+
"psalm": "tools/psalm/vendor/bin/psalm --show-info --no-diff --no-cache",
59+
"rector": "tools/rector/vendor/bin/rector process",
60+
"test": "phpunit"
61+
}
62+
}

0 commit comments

Comments
 (0)