Skip to content

Commit 56b0c28

Browse files
committed
Initial commit - v0.0.1
0 parents  commit 56b0c28

File tree

206 files changed

+8963
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+8963
-0
lines changed

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# https://editorconfig.org/
2+
3+
root = true
4+
5+
[*]
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
end_of_line = lf
10+
indent_size = 4
11+
tab_width = 4
12+
charset = utf-8
13+
14+
[*.{md,sh,yaml,yml}]
15+
indent_size = 2
16+
17+
[*.patch]
18+
trim_trailing_whitespace = false
19+
20+
[COMMIT_EDITMSG]
21+
max_line_length = 80
22+
23+
[tests/fixtures/**]
24+
trim_trailing_whitespace = false
25+
insert_final_newline = false
26+
indent_style = false
27+
end_of_line = false
28+
charset = false

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.github/ export-ignore
2+
/bin/build export-ignore
3+
/bin/dev/ export-ignore
4+
/src/Console/Command/BuildCommand.php export-ignore
5+
/src/Util/PharBuilder.php export-ignore
6+
/tests/ export-ignore
7+
/.editorconfig export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/phpstan.neon export-ignore
11+
/phpunit.xml.dist export-ignore
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run php-cs-fixer check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
check:
11+
name: PHP CS Fixer Check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Setup PHP with Composer
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: 8.2
21+
tools: composer, php-cs-fixer
22+
23+
- name: Install dependencies
24+
run: composer install
25+
26+
- name: Run php-cs-fixer
27+
run: php-cs-fixer --dry-run fix -v --allow-risky=yes

.github/workflows/tests.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Tests
12+
strategy:
13+
matrix:
14+
include:
15+
- php: '8.1'
16+
- php: '8.2'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Setup PHP with Composer
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: "${{ matrix.php }}"
26+
tools: composer
27+
28+
- name: Install dependencies
29+
run: composer install
30+
31+
- name: Run tests
32+
run: ./vendor/bin/phpunit

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These files are intentionally untracked to ignore by Git. For development
2+
# environment specific files, such as editor configuration, a good practice is
3+
# to exclude them using the .git/info/exclude in the cloned repository or a
4+
# global .gitignore file.
5+
6+
/.phpunit.cache/
7+
/vendor/
8+
/.php-cs-fixer.cache
9+
/normalizator.phar

.php-cs-fixer.dist.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->exclude('tests/fixtures')
5+
->in(__DIR__)
6+
;
7+
8+
$config = new PhpCsFixer\Config();
9+
return $config->setRules([
10+
'@PER' => true,
11+
'strict_param' => true,
12+
'declare_strict_types' => true,
13+
'array_syntax' => ['syntax' => 'short'],
14+
'no_unused_imports' => true,
15+
'modernize_strpos' => true,
16+
'no_alias_functions' => true,
17+
'@PhpCsFixer' => true,
18+
// Override PhpCsFixer rules.
19+
'concat_space' => false,
20+
])
21+
->setFinder($finder)
22+
;

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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).
7+
8+
## [Unreleased] - YYYY-MM-DD
9+
10+
### Added
11+
12+
- ...
13+
14+
## [0.0.1] - 2023-06-12
15+
16+
### Added
17+
18+
- Initial normalizator version.

LICENSE

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

0 commit comments

Comments
 (0)