Skip to content

Commit

Permalink
PHP 8+, WSDL 3.03 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfridrich authored Mar 11, 2023
1 parent d2873e0 commit 6f07fc1
Show file tree
Hide file tree
Showing 229 changed files with 23,769 additions and 4,720 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# .editorconfig
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
41 changes: 41 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PHPUnit

on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- 8.0
- 8.1
- 8.2
name: PHP ${{ matrix.php-versions }} test

steps:

- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:9.6
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --dev

- run: composer check

- run: phpunit
env:
DATABOX_LOGIN: ${{ secrets.DATABOX_LOGIN }}
DATABOX_PASSWORD: ${{ secrets.DATABOX_PASSWORD }}
DATABOX_PRODUCTION: ${{ secrets.DATABOX_PRODUCTION }}
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
composer.phar
composer.lock
vendor/
.git/
.idea/
config.ini
config.ini
.phpunit.result.cache
.phpcs-cache
phpunit.xml
1 change: 1 addition & 0 deletions .php-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.0
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Dennis Fridrich
Copyright (c) 2015 - 2023 Dennis Fridrich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CzechDataBox

[![Build Status](https://travis-ci.org/dfridrich/CzechDataBox.svg)](https://travis-ci.org/dfridrich/CzechDataBox)
[![Latest Stable Version](https://poser.pugx.org/dfridrich/czech-data-box/v/stable)](https://packagist.org/packages/dfridrich/czech-data-box)
[![PHPUnit](https://github.com/dfridrich/CzechDataBox/actions/workflows/test.yaml/badge.svg)](https://github.com/dfridrich/CzechDataBox/actions/workflows/test.yaml)
[![Latest Stable Version](https://poser.pugx.org/dfridrich/czech-data-box/v/stable)](https://packagist.org/packages/dfridrich/czech-data-box)
[![Total Downloads](https://poser.pugx.org/dfridrich/czech-data-box/downloads)](https://packagist.org/packages/dfridrich/czech-data-box)
[![Monthly Downloads](https://poser.pugx.org/dfridrich/czech-data-box/d/monthly)](https://packagist.org/packages/dfridrich/czech-data-box)
[![License](https://poser.pugx.org/dfridrich/czech-data-box/license)](https://packagist.org/packages/dfridrich/czech-data-box)
Expand Down Expand Up @@ -76,15 +76,15 @@ foreach ($messages as $message) {
echo "<h2>Msg# " . $message->getDmID() . "</h2>";
// Defr\CzechDataBox\Api\tIdDm
var_dump($message);

echo "<h3>Signed message</h3>";
// Defr\CzechDataBox\DataBoxMessageFile
var_dump($simpleApi->downloadSignedReceivedMessage($message->getDmID()));

echo "<h3>Delivery info</h3>";
// Defr\CzechDataBox\DataBoxMessageFile
var_dump($simpleApi->downloadDeliveryInfo($message->getDmID()));

echo "<h3>Attachments</h3>";
// Defr\CzechDataBox\DataBoxMessageAttachment[]
var_dump($simpleApi->getReceivedDataMessageAttachments($message->getDmID()));
Expand Down Expand Up @@ -139,10 +139,8 @@ Jakmile přístupové údaje budete mít, vytvořte config.ini (z config.ini.dis

## Odkazy

- Žádost o testovací datovou schránku - https://www.datoveschranky.info/documents/1744842/1746073/zadost_zrizeni_testovaci_ds.zfo/4b75d5bf-0272-4305-9cef-8ec8f019e9d3
- Testovací prostředí datových schránek - https://www.czebox.cz/
- Ostré prostředí datových schránek - https://www.mojedatovaschranka.cz/
- 602 XML Filler (pro formát ZFO) - http://www.602.cz/602xml_filler/download

## Contributing

Expand Down
Loading

0 comments on commit 6f07fc1

Please sign in to comment.