Skip to content

Commit b2af06f

Browse files
committed
Added basic skeleton template files
1 parent ccd5f75 commit b2af06f

7 files changed

Lines changed: 121 additions & 0 deletions

File tree

template/.gitattributes.sk_file

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.github export-ignore
2+
/tests export-ignore
3+
.gitattributes export-ignore
4+
.gitignore export-ignore
5+
phpunit.xml.dist export-ignore
6+
cs-fixer.php.dist export-ignore
7+
{original.content}

template/.gitignore.sk_file

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.dev/
2+
/vendor/
3+
/composer.lock
4+
{original.content}

template/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) {original.content}
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.

template/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# {package.name}
2+
[![Latest Stable Version](https://poser.pugx.org/{package.name.composer}/version)](https://packagist.org/packages/{package.name.composer})
3+
[![Build status](https://github.com/{repository.name}/workflows/build/badge.svg)](https://github.com/{repository.name}/actions)
4+
[![Coverage status](https://coveralls.io/repos/github/{repository.name}/badge.svg?branch=develop)](https://coveralls.io/github/{repository.name}?branch=develop)
5+
[![PHP version](https://img.shields.io/packagist/php-v/{package.name.composer}.svg)](https://packagist.org/packages/{package.name.composer})
6+
[![LICENSE](https://img.shields.io/github/license/{repository.name}.svg?color=blue)](LICENSE)
7+
### {package.description}
8+
9+
{original.content>>>Detailed description (optional)...<<<original.content}
10+
11+
### Installation with [Composer](https://getcomposer.org/)
12+
```bash
13+
composer require{original.content} {package.name.composer}
14+
```
15+
16+
{original.content>>>Your content here...<<<original.content}

template/composer.json.sk_file

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "{package.name.composer}",
3+
"description": "{package.description}",
4+
"type": null,
5+
"license": null,
6+
"authors": [
7+
{
8+
"name": null,
9+
"email": null,
10+
"homepage": null,
11+
"role": null
12+
}
13+
],
14+
"minimum-stability": null,
15+
"prefer-stable": null,
16+
"require": {
17+
"php": null
18+
},
19+
"require-dev": null,
20+
"autoload": {
21+
"psr-4": {
22+
"{namespace.src.esc}\\": "src/"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"{namespace.src.esc}\\Tests\\": "tests/"
28+
}
29+
},
30+
"scripts": {
31+
"test-cs": [
32+
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
33+
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
34+
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml tests"
35+
]
36+
}
37+
}

template/cs-fixer.php.dist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php declare(strict_types=1);
2+
3+
/*
4+
* This file is part of {package.name} package.
5+
*
6+
* (c) Shudd3r <q3.shudder@gmail.com>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
use Polymorphine\Dev\FixerFactory;
13+
14+
return FixerFactory::createFor('{package.name}', __DIR__);

template/phpunit.xml.dist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
5+
cacheResultFile=".dev/temp/.phpunit.result.cache"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
>
9+
<php>
10+
<ini name="error_reporting" value="-1" />
11+
</php>
12+
<testsuites>
13+
<testsuite name="{package.name} tests">
14+
<directory>./tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
<coverage>
18+
<include>
19+
<directory>./src/</directory>
20+
</include>
21+
</coverage>
22+
</phpunit>

0 commit comments

Comments
 (0)