Skip to content

Commit

Permalink
Merge pull request #33 from Ecomailcz/php-74
Browse files Browse the repository at this point in the history
PHP 7.4 updates
  • Loading branch information
pekral authored May 31, 2020
2 parents 2ebbd99 + 985a240 commit 158a008
Show file tree
Hide file tree
Showing 26 changed files with 1,126 additions and 544 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.idea
/vendor
/logs
.DS_Store
tests/.DS_Store
.phpunit.result.cache
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

php:
- 7.3
- 7.4

before_script:
- composer self-update
Expand Down
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,16 @@ $companyCode,
$restApiUserName,
$restApiPassword,
$evidenceName,
$enableSelfSignedCertificate,
$disableSelfSignedCertificate,
$authSessionId,
$logPath,
);
```
`$enableSelfSignedCertificate - Vyžadání self signed certifikátu`
`$disableSelfSignedCertificate - Vypnutí self signed certifikátu`

`$authSessionId - Hodnota authentikačního id pro Flexibee`

## Typy klientů
K dispozici jsou různé druhy klientů, které mají implementovány metody pro snažší práci s FlexiBee API.
```
$bankClient = new BankClient($config);
$companyClient = new CompanyClient($config);
$recurringContractClient = new RecurringContractClient($config);
```
`$logPath - Cesta souboru pro logování requestů`

## Vygenerování autorizačního tokenu
```
Expand Down
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<exec command="vendor/bin/phpunit tests" checkreturn="true" passthru="true"/>
</target>
<!-- ============================================ -->
<!-- Target: fix -->
<!-- ============================================ -->
<target name="fix">
<exec command="composer normalize" passthru="true" checkreturn="true"/>
<phingcall target="phpcsfix"/>
</target>
<!-- ============================================ -->
<!-- Target: phpcsfix -->
<!-- ============================================ -->
<target name="phpcsfix">
Expand Down
53 changes: 35 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,53 @@
{
"name": "ecomailcz/flexibee-client",
"description": "Basic client for make FlexiBee requests",
"license": ["MIT"],
"minimum-stability": "dev",
"prefer-stable": true,
"description": "ECOMAIL.CZ - Simple client for communication with FlexiBee API",
"license": [
"MIT"
],
"require": {
"ext-simplexml": "*",
"php": "^7.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": "^7.3",
"ext-simplexml": "*",
"consistence/consistence": "^2.0",
"jwage/purl": "^1.0",
"rakit/validation": "^1.1",
"consistence/consistence": "^2.0"
"league/flysystem": "^1.0",
"rakit/validation": "^1.1"
},
"require-dev": {
"slevomat/coding-standard": "^6.0",
"phpunit/phpunit": "^9.0",
"phing/phing": "^2.16",
"ergebnis/composer-normalize": "^2.5",
"fzaninotto/faker": "^1.7",
"phpstan/phpstan": "^0.12.3",
"mockery/mockery": "^1.3",
"sllh/composer-versions-check": "^2.0",
"php-parallel-lint/php-parallel-lint": "^1.2"
"phing/phing": "^2.16",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.3",
"phpstan/phpstan-deprecation-rules": "^0.12.2",
"phpstan/phpstan-phpunit": "^0.12.8",
"phpstan/phpstan-strict-rules": "^0.12.2",
"phpunit/phpunit": "^9.0",
"slevomat/coding-standard": "^6.0",
"sllh/composer-versions-check": "^2.0"
},
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"EcomailFlexibee\\": ["src/"],
"EcomailFlexibeeTest\\": ["tests/"]
"EcomailFlexibee\\": [
"src/"
],
"EcomailFlexibeeTest\\": [
"tests/"
]
}
},
"autoload-dev": {
"classmap": ["tests/"]
}
"classmap": [
"tests/"
]
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading

0 comments on commit 158a008

Please sign in to comment.