Skip to content

Commit c51b25c

Browse files
committed
Init bundle
0 parents  commit c51b25c

21 files changed

+789
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.github export-ignore
6+
/bin export-ignore
7+
/docs export-ignore
8+
/tests export-ignore
9+
/.editorconfig export-ignore
10+
/.gitattributes export-ignore
11+
/.gitignore export-ignore
12+
/.scrutinizer.yml export-ignore
13+
/.styleci.yml export-ignore
14+
/.travis.yml export-ignore
15+
/CHANGELOG.md export-ignore
16+
/phpstan.neon.dist export-ignore
17+
/phpunit.xml.dist export-ignore
18+
/ruleset.xml export-ignore

.github/ISSUE_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- Provide a general summary of the issue in the Title above -->
2+
3+
## Detailed description
4+
5+
Provide a detailed description of the change or addition you are proposing.
6+
7+
Make it clear if the issue is a bug, an enhancement or just a question.
8+
9+
## Context
10+
11+
Why is this change important to you? How would you use it?
12+
13+
How can it benefit other users?
14+
15+
## Possible implementation
16+
17+
Not obligatory, but suggest an idea for implementing addition or change.
18+
19+
## Your environment
20+
21+
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
22+
23+
* Version used (e.g. PHP 7.1, HHVM 3):
24+
* Operating system and version (e.g. Ubuntu 16.04, Windows 10):
25+
* Link to your project:
26+
* ...
27+
* ...

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
Describe your changes in detail.
6+
7+
## Motivation and context
8+
9+
Why is this change required? What problem does it solve?
10+
11+
If it fixes an open issue, please link to the issue here (if you write `fixes #num`
12+
or `closes #num`, the issue will be automatically closed when the pull is accepted.)
13+
14+
## How has this been tested?
15+
16+
Please describe in detail how you tested your changes.
17+
18+
Include details of your testing environment, and the tests you ran to
19+
see how your change affects other areas of the code, etc.
20+
21+
## Screenshots (if appropriate)
22+
23+
## Types of changes
24+
25+
What types of changes does your code introduce? Put an `x` in all the boxes that apply:
26+
- [ ] Bug fix (non-breaking change which fixes an issue)
27+
- [ ] New feature (non-breaking change which adds functionality)
28+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
29+
30+
## Checklist:
31+
32+
Go over all the following points, and put an `x` in all the boxes that apply.
33+
34+
Please, please, please, don't send your pull request until all the boxes are ticked. Once your pull request is created, it will trigger a build on our [continuous integration](http://www.phptherightway.com/#continuous-integration) server to make sure your [tests and code style pass](https://help.github.com/articles/about-required-status-checks/).
35+
36+
- [ ] I have read the **[CONTRIBUTING](../docs/CONTRIBUTING.md)** document.
37+
- [ ] My pull request addresses exactly one patch/feature.
38+
- [ ] I have created a branch for this patch/feature.
39+
- [ ] Each individual commit in the pull request is meaningful.
40+
- [ ] I have added tests to cover my changes.
41+
- [ ] If my change requires a change to the documentation, I have updated it accordingly.
42+
43+
If you're unsure about any of these, don't hesitate to ask. We're here to help!

.github/workflows/master.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: PHP ${{ matrix.php }}
11+
strategy:
12+
matrix:
13+
php: ['8.1']
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Set up PHP ${{ matrix.php }}
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
22+
coverage: xdebug
23+
- name: Get composer cache directory
24+
id: composercache
25+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
26+
- name: Cache dependencies
27+
uses: actions/cache@v2
28+
with:
29+
path: ${{ steps.composercache.outputs.dir }}
30+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
31+
restore-keys: ${{ runner.os }}-composer-
32+
- name: Install dependencies
33+
run: composer install --prefer-dist --no-interaction --no-progress
34+
- name: Run linters
35+
run: |
36+
vendor/bin/phpcs src tests
37+
vendor/bin/phpstan analyse -c phpstan.neon.dist
38+
- name: Run tests
39+
run: |
40+
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.idea/
2+
/.phive/
3+
/tools/
4+
/var/
5+
/vendor/
6+
/*.env
7+
/composer.lock
8+
/coverage.clover
9+
/phpunit.xml
10+
/.phpunit.result.cache
11+
/.phpcs-cache
12+
/phpcs.xml

.scrutinizer.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
filter:
2+
excluded_paths:
3+
- 'tests/*'
4+
5+
checks:
6+
php:
7+
code_rating: true
8+
duplication: true
9+
remove_extra_empty_lines: true
10+
remove_php_closing_tag: true
11+
remove_trailing_whitespace: true
12+
fix_use_statements:
13+
remove_unused: true
14+
preserve_multiple: false
15+
preserve_blanklines: true
16+
order_alphabetically: true
17+
fix_php_opening_tag: true
18+
fix_linefeed: true
19+
fix_line_ending: true
20+
fix_identation_4spaces: true
21+
fix_doc_comments: true
22+
newline_at_end_of_file: true
23+
naming_conventions:
24+
local_variable: '^[a-z][a-zA-Z0-9]*$'
25+
utility_class_name: '^[A-Z][a-zA-Z0-9]*$'
26+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
27+
property_name: '^[a-z][a-zA-Z0-9]*$'
28+
method_name: '^((?:[a-z]|__)[a-zA-Z0-9]*|test[A-Z][_a-zA-Z0-9]*)$'
29+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
30+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
31+
type_name: '^(m[0-9a-z_]+|[A-Z][a-zA-Z0-9]*)$'
32+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
33+
isser_method_name: '^(?:is|can|has|should|may|supports)'
34+
35+
coding_style:
36+
php:
37+
indentation:
38+
general:
39+
use_tabs: false
40+
size: 4
41+
switch:
42+
indent_case: true
43+
spaces:
44+
general:
45+
linefeed_character: newline
46+
before_parentheses:
47+
function_declaration: false
48+
closure_definition: true
49+
function_call: false
50+
if: true
51+
for: true
52+
while: true
53+
switch: true
54+
catch: true
55+
array_initializer: false
56+
around_operators:
57+
assignment: true
58+
logical: true
59+
equality: true
60+
relational: true
61+
bitwise: true
62+
additive: true
63+
multiplicative: true
64+
shift: true
65+
unary_additive: false
66+
concatenation: true
67+
negation: false
68+
before_left_brace:
69+
class: true
70+
function: true
71+
if: true
72+
else: true
73+
for: true
74+
while: true
75+
do: true
76+
switch: true
77+
try: true
78+
catch: true
79+
finally: true
80+
before_keywords:
81+
else: true
82+
while: true
83+
catch: true
84+
finally: true
85+
within:
86+
brackets: false
87+
array_initializer: false
88+
grouping: false
89+
function_call: false
90+
function_declaration: false
91+
if: false
92+
for: false
93+
while: false
94+
switch: false
95+
catch: false
96+
type_cast: false
97+
ternary_operator:
98+
before_condition: true
99+
after_condition: true
100+
before_alternative: true
101+
after_alternative: true
102+
in_short_version: false
103+
other:
104+
before_comma: false
105+
after_comma: true
106+
before_semicolon: false
107+
after_semicolon: true
108+
after_type_cast: true
109+
braces:
110+
classes_functions:
111+
class: new-line
112+
function: new-line
113+
closure: end-of-line
114+
if:
115+
opening: end-of-line
116+
always: true
117+
else_on_new_line: false
118+
for:
119+
opening: end-of-line
120+
always: true
121+
while:
122+
opening: end-of-line
123+
always: true
124+
do_while:
125+
opening: end-of-line
126+
always: true
127+
while_on_new_line: false
128+
switch:
129+
opening: end-of-line
130+
try:
131+
opening: end-of-line
132+
catch_on_new_line: false
133+
finally_on_new_line: false
134+
upper_lower_casing:
135+
keywords:
136+
general: lower
137+
constants:
138+
true_false_null: lower
139+
140+
tools:
141+
external_code_coverage:
142+
timeout: 2400
143+
runs: 1

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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](http://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
9+
## [Unreleased](https://github.com/inspirum/xml-php-symfony/compare/v1.0.0...master)
10+
11+
12+
## v1.0.0 (2022-08-13)
13+
### Added
14+
- Support [`inspirum/xml`](https://github.com/inspirum/xml-php) `^2.1` for Symfony `^6.1`

LICENSE.md

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) 2018 Tomáš Novotný <tomas.novotny@inspirum.cz>
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
13+
> all 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
21+
> THE SOFTWARE.

0 commit comments

Comments
 (0)