Skip to content
This repository was archived by the owner on Aug 18, 2022. It is now read-only.

Commit bfd75f5

Browse files
committed
The repository was archived
1 parent 50e4315 commit bfd75f5

File tree

7 files changed

+82
-145
lines changed

7 files changed

+82
-145
lines changed

.gitattributes

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1+
/.github export-ignore
12
/tests export-ignore
2-
/resources export-ignore
3-
/node_modules export-ignore
4-
.gitattributes export-ignore
5-
package-lock.json export-ignore
6-
gulpfile.js export-ignore
7-
.gitignore export-ignore
8-
_config.yml export-ignore
9-
.travis.yml export-ignore
3+
/docs export-ignore
104
CHANGELOG.md export-ignore
11-
CONDUCT.md export-ignore
12-
contributors.txt export-ignore
13-
README.md export-ignore
14-
README-ES.md export-ignore
15-
.editorconfig export-ignore
16-
composer.lock export-ignore
175
phpcs.xml export-ignore
186
phpunit.xml export-ignore
197
phpmd.xml export-ignore
20-
.php_cs.dist export-ignore
8+
phpdoc.xml export-ignore
9+
.gitattributes export-ignore
10+
.gitignore export-ignore
11+
.php-cs-fixer.dist.php export-ignore

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [Josantonius]

.gitignore

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
.git*/
21
vendor/
3-
node_modules/
4-
docs/*.pyc
5-
docs/_build
6-
build/artifacts/
2+
coverage/
3+
.vscode/
4+
docs/cache/
75
composer.phar
8-
package-lock.json
96
composer.lock
107
composer-test.lock
118
phpcbf-fixed.diff
12-
.idea
13-
.DS_STORE
14-
.php_cs.cache
9+
.php_cs.cache
10+
php-logger.code-workspace
11+
.repository.md
12+
.phpunit.result.cache
13+
coverage.xml

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.1.6 - 2022-08-18
4+
5+
* The repository was archived.
6+
37
## 1.1.5 - 2018-01-06
48

59
* The tests were fixed.
@@ -36,7 +40,6 @@
3640

3741
* Changed `Josantonius\Logger\Test\LoggerTest` class to `Josantonius\Logger\LoggerTest` class.
3842

39-
4043
## 1.1.2 - 2017-10-16
4144

4245
* Unit tests supported by `PHPUnit` were added.
@@ -151,4 +154,4 @@
151154
* Added `Josantonius\Logger\Tests\LoggerTest->testDisableLogsByState()` method.
152155
* Added `Josantonius\Logger\Tests\LoggerTest->testGetLogs()` method.
153156
* Added `Josantonius\Logger\Tests\LoggerTest->testGetLogsFromCustomPath()` method.
154-
* Added `Josantonius\Logger\Tests\LoggerTest->testExceptionCouldCreatePath()` method.
157+
* Added `Josantonius\Logger\Tests\LoggerTest->testExceptionCouldCreatePath()` method.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22
=====================
33

4-
Copyright (c) `2017 - 2018` `Josantonius, https://josantonius.com <hello@josantonius.com>`
4+
Copyright (c) 2017, Josantonius
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of
77
this software and associated documentation files (the "Software"), to deal in

README-ES.md

Lines changed: 31 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# PHP Logger library
22

3-
[![Latest Stable Version](https://poser.pugx.org/josantonius/Logger/v/stable)](https://packagist.org/packages/josantonius/Logger) [![Latest Unstable Version](https://poser.pugx.org/josantonius/Logger/v/unstable)](https://packagist.org/packages/josantonius/Logger) [![License](https://poser.pugx.org/josantonius/Logger/license)](LICENSE) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/a3b8254dfc74493fb162fc322e083f88)](https://www.codacy.com/app/Josantonius/PHP-Logger?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Josantonius/PHP-Logger&amp;utm_campaign=Badge_Grade) [![Total Downloads](https://poser.pugx.org/josantonius/Logger/downloads)](https://packagist.org/packages/josantonius/Logger) [![Travis](https://travis-ci.org/Josantonius/PHP-Logger.svg)](https://travis-ci.org/Josantonius/PHP-Logger) [![PSR2](https://img.shields.io/badge/PSR-2-1abc9c.svg)](http://www.php-fig.org/psr/psr-2/) [![PSR4](https://img.shields.io/badge/PSR-4-9b59b6.svg)](http://www.php-fig.org/psr/psr-4/) [![CodeCov](https://codecov.io/gh/Josantonius/PHP-Logger/branch/master/graph/badge.svg)](https://codecov.io/gh/Josantonius/PHP-Logger)
3+
[![Latest Stable Version](https://poser.pugx.org/josantonius/Logger/v/stable)](https://packagist.org/packages/josantonius/Logger)
4+
[![License](https://poser.pugx.org/josantonius/Logger/license)](LICENSE)
45

56
[Spanish version](README-ES.md)
67

@@ -15,43 +16,40 @@ Biblioteca php para crear logs fácilmente y almacenarlos en formato Json.
1516
- [Métodos disponibles](#métodos-disponibles)
1617
- [Uso](#uso)
1718
- [Tests](#tests)
18-
- [Tareas pendientes](#-tareas-pendientes)
19-
- [Contribuir](#contribuir)
20-
- [Repositorio](#repositorio)
19+
- [Patrocinar](#patrocinar)
2120
- [Licencia](#licencia)
22-
- [Copyright](#copyright)
2321

2422
---
2523

2624
## Requisitos
2725

2826
Esta clase es soportada por versiones de **PHP 5.6** o superiores y es compatible con versiones de **HHVM 3.0** o superiores.
2927

30-
## Instalación
28+
## Instalación
3129

3230
La mejor forma de instalar esta extensión es a través de [Composer](http://getcomposer.org/download/).
3331

3432
Para instalar **PHP Logger library**, simplemente escribe:
3533

36-
$ composer require Josantonius/Logger
34+
composer require Josantonius/Logger
3735

3836
El comando anterior sólo instalará los archivos necesarios, si prefieres **descargar todo el código fuente** puedes utilizar:
3937

40-
$ composer require Josantonius/Logger --prefer-source
38+
composer require Josantonius/Logger --prefer-source
4139

4240
También puedes **clonar el repositorio** completo con Git:
4341

44-
$ git clone https://github.com/Josantonius/PHP-Logger.git
42+
$ git clone <https://github.com/Josantonius/PHP-Logger.git>
4543

4644
O **instalarlo manualmente**:
4745

4846
[Descargar Logger.php](https://raw.githubusercontent.com/Josantonius/PHP-Logger/master/src/Logger.php):
4947

50-
$ wget https://raw.githubusercontent.com/Josantonius/PHP-Logger/master/src/Logger.php
48+
wget https://raw.githubusercontent.com/Josantonius/PHP-Logger/master/src/Logger.php
5149

5250
[Descargar Json.php](https://raw.githubusercontent.com/Josantonius/PHP-Json/master/src/Json.php):
5351

54-
$ wget https://raw.githubusercontent.com/Josantonius/PHP-Json/master/src/Json.php
52+
wget https://raw.githubusercontent.com/Josantonius/PHP-Json/master/src/Json.php
5553

5654
## Imágenes
5755

@@ -65,7 +63,7 @@ O **instalarlo manualmente**:
6563

6664
Métodos disponibles en esta biblioteca:
6765

68-
### - Iniciar manejo de logs en el sitio:
66+
### - Iniciar manejo de logs en el sitio
6967

7068
```php
7169
new Logger($path, $filename, $logNumber, $ip, $states);
@@ -81,7 +79,7 @@ Atributo | Descripción | Tipo | Requerido | Predeterminado
8179

8280
**# Return** (void)
8381

84-
### - Guardar log:
82+
### - Guardar log
8583

8684
```php
8785
Logger::save($type, $code, $msg, $line, $file, $data);
@@ -98,23 +96,23 @@ Atributo | Descripción | Tipo | Requerido | Predeterminado
9896

9997
**# Return** (boolean)
10098

101-
### - Guarda los registros en archivo JSON:
99+
### - Guarda los registros en archivo JSON
102100

103101
```php
104102
Logger::store();
105103
```
106104

107105
**# Return** (boolean)
108106

109-
### - Obtener logs guardados:
107+
### - Obtener logs guardados
110108

111109
```php
112110
Logger::get();
113111
```
114112

115113
**# Return** (array) → logs guardados
116114

117-
### - Definir directorio para scripts y obtener url del archivo:
115+
### - Definir directorio para scripts y obtener url del archivo
118116

119117
```php
120118
Logger::script($url);
@@ -126,7 +124,7 @@ Atributo | Descripción | Tipo | Requerido | Predeterminado
126124

127125
**# Return** (string) → url del archivo
128126

129-
### - Definir directorio para estilos y obtener url del archivo:
127+
### - Definir directorio para estilos y obtener url del archivo
130128

131129
```php
132130
Logger::style($url);
@@ -138,7 +136,7 @@ Atributo | Descripción | Tipo | Requerido | Predeterminado
138136

139137
**# Return** (string) → url del archivo
140138

141-
### - Obtener el número de logs guardados en la sección actual:
139+
### - Obtener el número de logs guardados en la sección actual
142140

143141
```php
144142
::added();
@@ -154,7 +152,7 @@ Logger::render();
154152

155153
**# Return** (boolean true)
156154

157-
### - Restablecer parámetros:
155+
### - Restablecer parámetros
158156

159157
```php
160158
Logger::reset();
@@ -251,66 +249,40 @@ printf('<script src="%s">', Logger::script('http://site.com/public/js/'));
251249
Logger::render();
252250
```
253251
254-
## Tests
252+
## Tests
255253
256254
Para ejecutar las [pruebas](tests) necesitarás [Composer](http://getcomposer.org/download/) y seguir los siguientes pasos:
257255
258-
$ git clone https://github.com/Josantonius/PHP-Logger.git
256+
git clone https://github.com/Josantonius/PHP-Logger.git
259257
260-
$ cd PHP-Logger
258+
cd PHP-Logger
261259
262-
$ composer install
260+
composer install
263261
264262
Ejecutar pruebas unitarias con [PHPUnit](https://phpunit.de/):
265263
266-
$ composer phpunit
264+
composer phpunit
267265
268266
Ejecutar pruebas de estándares de código [PSR2](http://www.php-fig.org/psr/psr-2/) con [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer):
269267
270-
$ composer phpcs
268+
composer phpcs
271269
272270
Ejecutar pruebas con [PHP Mess Detector](https://phpmd.org/) para detectar inconsistencias en el estilo de codificación:
273271
274-
$ composer phpmd
272+
composer phpmd
275273
276274
Ejecutar todas las pruebas anteriores:
277275
278-
$ composer tests
276+
composer tests
279277
280-
## ☑ Tareas pendientes
278+
## Patrocinar
281279
282-
- [ ] Añadir nueva funcionalidad.
283-
- [ ] Mejorar pruebas.
284-
- [ ] Mejorar documentación.
285-
- [ ] Refactorizar código para las reglas de estilo de código deshabilitadas. Ver [phpmd.xml](phpmd.xml) y [.php_cs.dist](.php_cs.dist).
286-
287-
## Contribuir
288-
289-
Si deseas colaborar, puedes echar un vistazo a la lista de
290-
[issues](https://github.com/Josantonius/PHP-Logger/issues) o [tareas pendientes](#-tareas-pendientes).
291-
292-
**Pull requests**
293-
294-
* [Fork and clone](https://help.github.com/articles/fork-a-repo).
295-
* Ejecuta el comando `composer install` para instalar dependencias.
296-
Esto también instalará las [dependencias de desarrollo](https://getcomposer.org/doc/03-cli.md#install).
297-
* Ejecuta el comando `composer fix` para estandarizar el código.
298-
* Ejecuta las [pruebas](#tests).
299-
* Crea una nueva rama (**branch**), **commit**, **push** y envíame un
300-
[pull request](https://help.github.com/articles/using-pull-requests).
301-
302-
## Repositorio
303-
304-
La estructura de archivos de este repositorio se creó con [PHP-Skeleton](https://github.com/Josantonius/PHP-Skeleton).
280+
Si este proyecto te ayuda a reducir el tiempo de desarrollo,
281+
[puedes patrocinarme](https://github.com/josantonius/lang/es-ES/README.md#patrocinar)
282+
para apoyar mi trabajo :blush:
305283
306284
## Licencia
307285
308-
Este proyecto está licenciado bajo **licencia MIT**. Consulta el archivo [LICENSE](LICENSE) para más información.
309-
310-
## Copyright
311-
312-
2017 - 2018 Josantonius, [josantonius.com](https://josantonius.com/)
313-
314-
Si te ha resultado útil, házmelo saber :wink:
286+
Este repositorio tiene una licencia [MIT License](LICENSE).
315287
316-
Puedes contactarme en [Twitter](https://twitter.com/Josantonius) o a través de mi [correo electrónico](mailto:hello@josantonius.com).
288+
Copyright © 2017-2022, [Josantonius](https://github.com/josantonius/lang/es-ES/README.md#contacto)

0 commit comments

Comments
 (0)