Skip to content

Commit feb0682

Browse files
committed
Se cambia a PHP 8.4. Se quitan badges de scrutinizer y fossa. se quita composer.lock
1 parent a66bc54 commit feb0682

8 files changed

Lines changed: 22 additions & 4475 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master # Ejecuta pruebas al hacer push en la rama 'master'
6+
- master
77
env:
88
env_var: ${{ vars.ENV_CONTEXT_VAR }}
99

@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php-version: ['8.3'] # Puedes cambiar las versiones según necesites
16+
php-version: ['8.4', '8.5']
1717

1818
steps:
1919
- name: Check out repository code
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup PHP ${{ matrix.php-version }}
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: ${{ matrix.php-version }} # Configura la versión de PHP desde la matriz
25+
php-version: ${{ matrix.php-version }}
2626
extensions: curl, mbstring, intl, xdebug
2727
tools: composer
2828

@@ -50,4 +50,4 @@ jobs:
5050
path: var/tests-coverage.txt
5151

5252
- name: Display PHP version
53-
run: php -v
53+
run: php -v

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3'
21+
php-version: '8.4'
2222

2323
- name: Download phpDocumentor
2424
run: |

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ vendor/
22
tests/test.env
33
tests/archivos/dte_facturacion/*
44

5+
composer.lock
6+
57
var/
68
tools/
79
build/
8-
9-
prueba-ejemplo.php

.scrutinizer.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ LibreDTE: Cliente de API en PHP
22
===============================
33

44
[![CI Workflow](https://github.com/libredte/libredte-api-client-php/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/libredte/libredte-api-client-php/actions/workflows/ci.yml?query=branch%3Amaster)
5-
[![Scrutinizer](https://scrutinizer-ci.com/g/libredte/libredte-api-client-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/libredte/libredte-api-client-php/)
6-
[![Coverage](https://scrutinizer-ci.com/g/libredte/libredte-api-client-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/libredte/libredte-api-client-php/)
75
[![Licencia](https://poser.pugx.org/libredte/libredte-api-client/license)](https://packagist.org/packages/libredte/libredte-api-client)
8-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-api-client-php.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-api-client-php?ref=badge_shield&issueType=license)
9-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-api-client-php.svg?type=shield&issueType=security)](https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-api-client-php?ref=badge_shield&issueType=security)
106
[![Descargas Totales](https://poser.pugx.org/libredte/libredte-api-client/downloads)](https://packagist.org/packages/libredte/libredte-api-client)
117
[![Descargas Mensuales](https://poser.pugx.org/libredte/libredte-api-client/d/monthly)](https://packagist.org/packages/libredte/libredte-api-client)
128

139
Cliente para realizar la integración con los servicios web de [LibreDTE](https://www.libredte.cl) desde PHP.
1410

15-
Revisa la [documentación](https://api-client-php.docs.libredte.cl/guide/index.html) de la biblioteca para más información, sus características y detalles de su uso.
11+
Revisa la [documentación](https://api-client-php.docs.libredte.cl/guide) de la biblioteca para más información, sus características y detalles de su uso.
1612

1713
Licencia
1814
--------
@@ -37,3 +33,4 @@ Enlaces
3733
- [Sitio web LibreDTE](https://www.libredte.cl).
3834
- [Código fuente en GitHub](https://github.com/LibreDTE/libredte-api-client-php).
3935
- [Paquete en Packagist](https://packagist.org/packages/libredte/libredte-api-client).
36+
- [Documentación](https://api-client-php.docs.libredte.cl).

composer.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,27 @@
1515
"issues": "https://github.com/LibreDTE/libredte-api-client-php/issues",
1616
"source": "https://github.com/LibreDTE/libredte-api-client-php"
1717
},
18-
"config": {
19-
"platform": {
20-
"php": "8.2"
21-
}
22-
},
2318
"require": {
2419
"php": "^8.2 || ^8.3",
2520
"ext-curl": "*"
2621
},
27-
"require-dev": {
28-
"friendsofphp/php-cs-fixer": "^3.63",
29-
"phpstan/phpstan": "^1.12",
30-
"phpunit/phpunit": "^11.3",
31-
"vlucas/phpdotenv": "^5.6"
32-
},
3322
"autoload": {
3423
"psr-4": {
35-
"libredte\\api_client\\": "src/",
24+
"libredte\\api_client\\": "src/"
25+
}
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
3629
"libredte\\dte_facturacion\\": "tests/dte_facturacion/",
3730
"libredte\\pagos_cobros_masivos\\": "tests/pagos_cobros_masivos/"
3831
}
3932
},
33+
"require-dev": {
34+
"friendsofphp/php-cs-fixer": "^3.94",
35+
"phpstan/phpstan": "^1.12",
36+
"phpunit/phpunit": "^13.0",
37+
"vlucas/phpdotenv": "^5.6"
38+
},
4039
"scripts": {
4140
"docs": "php tools/phpdocumentor run --config=phpdoc.xml",
4241
"tests": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml",
@@ -45,7 +44,7 @@
4544
"tests-cobros": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --testsuite pagos-cobros-mas",
4645
"tests-readonly": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --filter 'testBuscarDteTemp|testDescargarPdfDteTemp|testEmitirDteTemp|testEliminarDteTemp|testListarDteTemp|testListarCobrosDteTemp|testBuscarCobroDteTemp'",
4746
"phpcs-fix": "php-cs-fixer fix -v --config=php-cs-fixer.php .",
48-
"phpcs-fix-dry-run": "php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php .",
47+
"phpcs": "php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php .",
4948
"phpstan": "phpstan analyse --configuration=phpstan.neon --memory-limit=1G",
5049
"phpstan-export": "phpstan analyse --configuration=phpstan.neon --level 9 --generate-baseline"
5150
}

0 commit comments

Comments
 (0)