Skip to content

Commit d83eb07

Browse files
committed
Merge branch 'release-2.0.0'
2 parents 2c03e20 + d0de194 commit d83eb07

File tree

107 files changed

+1500
-1129
lines changed

Some content is hidden

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

107 files changed

+1500
-1129
lines changed

.github/workflows/php.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: PHP Sniff and Unit Test
2+
3+
on:
4+
push:
5+
branches: [ "master", "develop" ]
6+
pull_request:
7+
branches: [ "master", "develop" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
php-versions: [ '8.1', '8.2', '8.3' ]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Install PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php-versions }}
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate --strict
26+
- name: Cache Composer packages
27+
id: composer-cache
28+
uses: actions/cache@v3
29+
with:
30+
path: vendor
31+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-php-
34+
- name: Install dependencies
35+
run: composer install --prefer-dist --no-progress
36+
- name: Run sniffs and unit tests
37+
run: composer check

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
composer.lock
22
vendor/
3+
.phpunit.result.cache
34

.travis.yml

-17
This file was deleted.

CHANGELOG.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [1.0.0] - 2016-05-27
5+
## [2.0.0] - 2023-11-26
6+
### Added
7+
- Coder\Datafile\EncodingStrategyInterface - interface for data file encoders
8+
- Coder\Datafile\DecodingStrategyInterface - interface for data file decoders
9+
10+
### Changed
11+
- All namespaces
12+
- Data Encoders implement interface Coder\Data\EncodingStrategyInterface
13+
- Data Decoders implement interface Coder\Data\DecodingStrategyInterface
614

15+
### Removed
16+
- Additional not namespaced directory structure within src/ directory
17+
- AbstractDataEncoder - base classes for data encoders
18+
- AbstractDataDecoder - base classes for data decoders
19+
20+
## [1.0.0] - 2016-05-27
721
### Added
822
- DataEncoder - data encoder with configurable data format
923
- DataDecoder - data decoder with configurable data format

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To contribute to the project you need to have an account on [GitHub](https://git
1616

1717
## Standards and conventions
1818

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.
19+
Please follow [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-12](http://www.php-fig.org/psr/psr-12/) coding standards and [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading standard.
2020

2121
This project uses [PHPCodeSniffer](https://www.squizlabs.com/php-codesniffer) for detecting coding style issues.
2222

0 commit comments

Comments
 (0)