Skip to content

Commit 6252bdc

Browse files
committed
Initial commit
0 parents  commit 6252bdc

13 files changed

Lines changed: 408 additions & 0 deletions

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.yml*]
12+
indent_style = space
13+
indent_size = 2

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spec/ export-ignore
2+
.editorconfig export-ignore
3+
.gitattributes export-ignore
4+
.gitignore export-ignore
5+
.scrutinizer.yml export-ignore
6+
.travis.yml export-ignore
7+
CONTRIBUTING.md export-ignore
8+
phpspec.yml.ci export-ignore
9+
phpspec.yml.dist export-ignore

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vendor/
2+
composer.phar
3+
composer.lock
4+
phpspec.yml

.scrutinizer.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
checks:
2+
php:
3+
code_rating: true
4+
duplication: true
5+
6+
tools:
7+
external_code_coverage: true

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
10+
matrix:
11+
allow_failures:
12+
- php: 7.0
13+
- php: hhvm
14+
include:
15+
- php: 5.4
16+
env:
17+
- COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
18+
- COVERAGE=true
19+
- PHPSPEC_FLAGS="--config phpspec.yml.ci"
20+
21+
install:
22+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
23+
24+
script:
25+
- vendor/bin/phpspec run ${PHPSPEC_FLAGS}
26+
27+
after_script:
28+
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
29+
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

CONTRIBUTING.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Contributing
2+
============
3+
4+
Thank you for contributing to this project!
5+
6+
Bug reports
7+
-----------
8+
9+
If you find a bug, please submit an issue. Try to be as detailed as possible
10+
in your problem description to help us fix the bug.
11+
12+
Feature requests
13+
----------------
14+
15+
If you wish to propose a feature, please submit an issue. Try to explain your
16+
use case as fully as possible to help us understand why you think the feature
17+
should be added.
18+
19+
Creating a pull request (PR)
20+
----------------------------
21+
22+
First [fork the repository](https://help.github.com/articles/fork-a-repo/) on
23+
GitHub.
24+
25+
Then clone your fork:
26+
27+
```bash
28+
$ git clone https://github.com/your-name/repo-name.git
29+
$ git checkout -b bug-or-feature-description
30+
```
31+
32+
And install the dependencies:
33+
34+
```bash
35+
$ composer install
36+
```
37+
38+
Write your code and add tests. Then run the tests:
39+
40+
```bash
41+
$ vendor/bin/phpunit
42+
```
43+
44+
Commit your changes and push them to GitHub. Please write your commit messages
45+
in the imperative and follow the [guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
46+
for clear and concise messages:
47+
48+
```bash
49+
$ git commit -m "Fix nasty bug"
50+
$ git push -u origin bug-or-feature-description
51+
```
52+
53+
Then [create a pull request](https://help.github.com/articles/creating-a-pull-request/)
54+
on GitHub.
55+
56+
If you need to make some changes, commit and push them as you like. When asked
57+
to squash your commits, do so as follows:
58+
59+
```bash
60+
git rebase -i
61+
git push origin bug-or-feature-description -f
62+
```
63+
64+
Coding standard
65+
---------------
66+
67+
This project follows the [PSR-2](http://www.php-fig.org/psr/psr-2/) coding style.
68+
Please make sure your pull requests adhere to this standard.

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) 2015 PortPHP
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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# portphp/xml-adapter
2+
3+
[![Latest Version](https://img.shields.io/github/release/portphp/xml-adapter.svg?style=flat-square)](https://github.com/portphp/xml-adapter/releases)
4+
[![Build Status](https://travis-ci.org/portphp/xml-adapter.svg)](https://travis-ci.org/portphp/xml-adapter)
5+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/portphp/xml-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/portphp/xml-adapter/?branch=master)
6+
[![Code Coverage](https://scrutinizer-ci.com/g/portphp/xml-adapter/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/portphp/xml-adapter/?branch=master)
7+
8+
XML writer for Port.
9+
10+
## Installation
11+
12+
Open a command console, enter your project directory and execute the
13+
following command to download the latest stable version of this package:
14+
15+
```bash
16+
$ composer require portphp/xml-adapter
17+
```
18+
19+
This command requires you to have Composer installed globally, as explained
20+
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
21+
of the Composer documentation.
22+
23+
## Documentation
24+
25+
Documentation is available at https://docs.portphp.org.
26+
27+
## Issues and feature requests
28+
29+
Please report issues and request features at https://github.com/portphp/portphp/issues.
30+
31+
## Contributing
32+
33+
Contributions are very welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for
34+
details. Thanks to [everyone who has contributed](https://github.com/portphp/xml-adapter/graphs/contributors)
35+
already.
36+
37+
## Security
38+
39+
If you discover any security-related issues, please contact us at
40+
security@portphp.org.sec
41+
42+
## License
43+
44+
This package is licensed under the [MIT license](LICENSE).

composer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "portphp/xml-adapter",
3+
"description": "XML writer for Port",
4+
"license": "MIT",
5+
"homepage": "https://github.com/portphp",
6+
"authors": [
7+
{
8+
"name": "David de Boer",
9+
"email": "david@ddeboer.nl"
10+
},
11+
{
12+
"name": "Markus Bachmann",
13+
"email": "markus.bachmann@bachi.biz"
14+
},
15+
{
16+
"name": "Márk Sági-Kazár",
17+
"email": "mark.sagikazar@gmail.com"
18+
},
19+
{
20+
"name": "Community contributors",
21+
"homepage": "https://github.com/portphp/xml-adapter/graphs/contributors"
22+
}
23+
],
24+
"support": {
25+
"issues": "https://github.com/portphp/portphp/issues",
26+
"source": "https://github.com/portphp/xml-adapter",
27+
"docs": "https://portphp.readthedocs.org"
28+
},
29+
"require": {
30+
"php": ">=5.4.0",
31+
"portphp/portphp": "^1.0@dev",
32+
"ext-xmlwriter": "*"
33+
},
34+
"autoload": {
35+
"psr-4": {
36+
"Port\\Xml\\": "src/"
37+
}
38+
},
39+
"require-dev": {
40+
"phpspec/phpspec": "^2.2",
41+
"henrikbjorn/phpspec-code-coverage" : "^1.0"
42+
},
43+
"extra": {
44+
"branch-alias": {
45+
"dev-master": "1.0.x-dev"
46+
}
47+
}
48+
}

phpspec.yml.ci

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
suites:
2+
xml_suite:
3+
namespace: Port\Xml
4+
psr4_prefix: Port\Xml
5+
formatter.name: pretty
6+
extensions:
7+
- PhpSpec\Extension\CodeCoverageExtension
8+
code_coverage:
9+
format: clover
10+
output: coverage.clover

0 commit comments

Comments
 (0)