Skip to content

Commit 9d6122e

Browse files
committed
Merge branch 'namespaces'
2 parents 4ae0579 + 049ff9b commit 9d6122e

File tree

130 files changed

+5285
-5119
lines changed

Some content is hidden

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

130 files changed

+5285
-5119
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.idea
12
composer.lock
2-
vendor/
3-
.idea/
3+
vendor
4+
5+
tests/php-unix.generated.ini
6+
tests/cases/output
7+
tests/cases/**/output

.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: php
2+
php:
3+
- 7.1
4+
- 7.2
5+
6+
env:
7+
- PHP_BIN=php
8+
9+
before_install:
10+
# turn off XDebug
11+
- phpenv config-rm xdebug.ini || return 0
12+
13+
install:
14+
- travis_retry composer install --no-progress --prefer-dist
15+
16+
script:
17+
- vendor/bin/tester -p php tests/cases
18+
19+
jobs:
20+
include:
21+
- stage: Code Standard Checker
22+
php: 7.1
23+
script:
24+
- make phpstan
25+
- make ecs
26+
27+
28+
- stage: Code Coverage
29+
php: 7.1
30+
script:
31+
- vendor/bin/tester -p phpdbg tests/cases -s --coverage ./coverage.xml --coverage-src ./src
32+
after_script:
33+
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
34+
- php coveralls.phar --verbose --config tests/config/.coveralls.yml
35+
36+
allow_failures:
37+
- stage: Code Coverage
38+
39+
sudo: false
40+
41+
cache:
42+
directories:
43+
- $HOME/.composer/cache
44+
45+
notifications:
46+
email: false

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.PHONY: all test
2+
3+
all: test
4+
echo "Is done"
5+
6+
test: phpstan ecs
7+
bin/run-tests.sh
8+
9+
phpstan:
10+
vendor/bin/phpstan analyse -l 7 -c tests/config/phpstan.neon \
11+
src \
12+
tests/cases
13+
14+
ecs:
15+
XDEBUG_CONFIG="remote_enable=0" vendor/bin/ecs --config=tests/config/ecs.yml check src tests/cases ${ECS_PARAM}
16+
17+
ecsFix:
18+
$(MAKE) ECS_PARAM="--fix" ecs

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
The Pay library
22
===============
33

4-
***This is not official library!***
4+
***This is namespaced port of the official library!***
55

66
[![Latest stable](https://img.shields.io/packagist/v/trejjam/thepay-lib.svg)](https://packagist.org/packages/trejjam/thepay-lib)
77

8+
[![Build Status](https://travis-ci.org/Trejjam/ThePay-lib.svg?branch=master)](https://travis-ci.org/Trejjam/ThePay-lib)
9+
810
Installation
911
------------
1012

@@ -17,5 +19,4 @@ $ composer require trejjam/thepay-lib
1719
Suggestion
1820
----------
1921

20-
If you like namespaces you could try use rewrited [namespaced branch](https://github.com/Trejjam/ThePay-lib/tree/namespaces). If you use Nette you could try [Nette
21-
extension](https://github.com/Trejjam/ThePay).
22+
If you use Nette you could try [Nette extension](https://github.com/Trejjam/ThePay).

bin/run-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
cat tests/config/php-unix.ini > tests/php-unix.generated.ini
4+
5+
vendor/bin/tester -p php -c tests/php-unix.generated.ini tests/cases

composer.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,32 @@
77
"license": [
88
"MIT"
99
],
10+
"require": {
11+
"php": ">=7.1",
12+
13+
"ext-json": "*",
14+
"ext-soap": "*",
15+
"ext-hash": "*"
16+
},
1017
"require-dev": {
11-
"nette/tester": "@dev"
18+
"nette/tester": "@dev",
19+
"phpstan/phpstan": "^0.9.2",
20+
"symplify/easy-coding-standard": "^4.2"
1221
},
1322
"suggest": {
1423
"trejjam/thepay": "to use as nette extension"
1524
},
1625
"autoload": {
26+
"psr-4": {
27+
"Tp\\": "src/"
28+
},
1729
"classmap": [
18-
"src"
30+
"src/exceptions/"
1931
]
2032
},
2133
"extra": {
2234
"branch-alias": {
23-
"dev-master": "v3.4.x-dev"
35+
"master": "v4.0.x-dev"
2436
}
2537
}
2638
}

doc/Data API v1.3.pdf

-248 KB
Binary file not shown.

doc/Datové API v1.3.pdf

-256 KB
Binary file not shown.
-337 KB
Binary file not shown.
-362 KB
Binary file not shown.

0 commit comments

Comments
 (0)