Skip to content

Commit 2c03e20

Browse files
committed
Merge branch 'release-1.0'
2 parents 576e3e8 + c4cdbc0 commit 2c03e20

File tree

102 files changed

+5996
-2
lines changed

Some content is hidden

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

102 files changed

+5996
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
composer.lock
2+
vendor/
3+

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: php
2+
php:
3+
- 5.5
4+
- 5.6
5+
- 7.0
6+
before_install:
7+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then export PHP55=false; else export PHP55=true; fi
8+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then export PHP56=false; else export PHP56=true; fi
9+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then export PHP70=false; else export PHP70=true; fi
10+
install:
11+
- ( $PHP55 && $PHP56 ) || ( printf "\n" | pecl install yaml )
12+
- ( $PHP70 ) || ( printf "\n" | pecl install yaml-beta )
13+
- echo "extension=yaml.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
14+
- composer install
15+
script:
16+
- phpunit tests/
17+
- ./vendor/bin/phpcs src/ tests/

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changes in DataCoder
2+
All notable changes to this project will be documented in this file.
3+
This project adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## [1.0.0] - 2016-05-27
6+
7+
### Added
8+
- DataEncoder - data encoder with configurable data format
9+
- DataDecoder - data decoder with configurable data format
10+
- DatafileEncoder - datafile encoder with configurable data format
11+
- DatafileDecoder - datafile decoder with configurable data format
12+
- JsonDataEncoder - data encoder for JSON data format
13+
- JsonDataDecoder - data decoder for JSON data format
14+
- JsonDatafileEncoder - datafile encoder for JSON data format
15+
- JsonDatafileDecoder - datafile decoder for JSON data format
16+
- YamlDataEncoder - data encoder for YAML data format
17+
- YamlDataDecoder - data decoder for YAML data format
18+
- YamlDatafileEncoder - datafile encoder for YAML data format
19+
- YamlDatafileDecoder - datafile decoder for YAML data format
20+
- DataFormat - enumerable data formats (JSON and YAML/YML)

CONTRIBUTING.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing to DataCoder
2+
3+
To contribute to the project you need to have an account on [GitHub](https://github.com/).
4+
5+
## Workflow
6+
7+
1. Create a fork of this repository
8+
2. Clone repository
9+
3. Ensure you have configured *name* and *email address* in Git
10+
4. Create issue with proper description and label on GitHub within this project
11+
5. Assign yourself to the issue
12+
6. Fork fix or feature branch with proper prefix and number of the issue (e.g. *issue-92-readme-file-update*)
13+
7. Complete work and commit with proper message and number of issue with hash and in parentheses
14+
8. Push branch to your forked project on your GitHub account
15+
9. Create a [pull request](https://help.github.com/articles/using-pull-requests/) to the **develop** branch of the original ExOrg repository
16+
17+
## Standards and conventions
18+
19+
Please follow [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/) coding standards and [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading standard.
20+
21+
This project uses [PHPCodeSniffer](https://www.squizlabs.com/php-codesniffer) for detecting coding style issues.
22+
23+
To run tests for code style write the following command in your command line inside the main DataCoder project directory
24+
25+
```bash
26+
vendor/bin/phpcs tests/ src/
27+
```
28+
29+
Please take care over consistency of the code and check existing examples before you create your own extensions.
30+
31+
## Automated tests
32+
33+
Write unit tests for your code.
34+
35+
This project uses [PHPUnit](https://phpunit.de/) as unit tests framework.
36+
37+
To run tests, write the following command in your command line inside the main DataCoder project directory
38+
39+
```bash
40+
vendor/bin/phpunit tests/
41+
```

0 commit comments

Comments
 (0)