Skip to content

Commit

Permalink
Initial commit, to get started
Browse files Browse the repository at this point in the history
  • Loading branch information
rahal committed Nov 8, 2023
0 parents commit 234dee5
Show file tree
Hide file tree
Showing 10 changed files with 5,666 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
42 changes: 42 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: validate and test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['8.0', '8.1' , '8.2']

steps:
- uses: actions/checkout@v3

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install

- name: Run test suite
run: composer run-script test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
.idea
.DS_Store
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Youniwemi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Digital Invoice is an easy wrapper around easybill/zugferd-php and atgp/factur-x that will allow you generate Factur-x in a very easy way.


## Credits and Thanks
This work saw the light thanks to :
- [ZUGFeRD PHP SDK (Factur-X, XRechnung) - Convert PHP Objects to XML and back.](https://github.com/easybill/zugferd-php)
- [PHP Factur-X library](https://github.com/atgp/factur-x)
- And [Tiime Software Team](https://github.com/Tiime-Software/EN-16931) for the structured DataTypes
39 changes: 39 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "youniwemi/digital-invoice",
"type": "library",
"description": "Digital Invoice is an easy wrapper around easybill/zugferd-php and atgp/factur-x that will allow you generate Factur-x in a very easy way.",
"keywords": ["Factur-x" , "Digital Invoice" , "Invoice" ],
"license": "MIT",
"authors": [
{
"name": "Rahal Aboulfeth",
"email": "[email protected]"
}
],
"require": {
"easybill/zugferd-php": "dev-master",
"atgp/factur-x": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^8 || ^9"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/Youniwemi/zugferd-php"
}
],
"scripts": {
"test": "vendor/bin/phpunit test/InvoiceTest.php"
},
"autoload": {
"psr-4": {
"DigitalInvoice\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"DigitalInvoice\\Test\\": "tests/"
}
}
}
Loading

0 comments on commit 234dee5

Please sign in to comment.