Skip to content

Commit

Permalink
Updated to 1.1.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Oct 30, 2017
1 parent dec47e3 commit b12a329
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

* Deleted `Cookie/vendor` folder.

* Changed `Josantonius\Cookie\Test\CookieTest` class to `Josantonius\Cookie\CookieTest` class .
* Changed `Josantonius\Cookie\Test\CookieTest` class to `Josantonius\Cookie\CookieTest` class.

## 1.1.3 - 2017-09-11

Expand Down
46 changes: 23 additions & 23 deletions README-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Biblioteca PHP para el manejo de cookies.

---

### Requisitos
## Requisitos

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

### Instalación
## Instalación

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

Para instalar `PHP Cookie library`, simplemente escribe:
Para instalar **PHP Cookie library**, simplemente escribe:

$ composer require Josantonius/Cookie

Expand All @@ -48,11 +48,11 @@ O **instalarlo manualmente**:

$ wget https://raw.githubusercontent.com/Josantonius/PHP-Cookie/master/src/Cookie.php

### Métodos disponibles
## Métodos disponibles

Métodos disponibles en esta biblioteca:

`Crear cookie:`
### - Crear cookie:

```php
Cookie::set($key, $value, $time);
Expand All @@ -66,7 +66,7 @@ Cookie::set($key, $value, $time);

**# Return** (boolean)

`Obtener valor de cookie:`
### - Obtener valor de cookie:

```php
Cookie::get($key);
Expand All @@ -78,7 +78,7 @@ Cookie::get($key);

**# Return** (mixed|false) → devuelve el valor de la cookie, todas las cookies o falso

`Extraer valor de cookie eliminarla:`
### - Extraer valor de cookie eliminarla:

```php
Cookie::pull($key);
Expand All @@ -90,7 +90,7 @@ Cookie::pull($key);

**# Return** (string|false) → valor de la cookie o falso si no existe

`Eliminar cookie:`
### - Eliminar cookie:

```php
Cookie::destroy($key);
Expand All @@ -102,7 +102,7 @@ Cookie::destroy($key);

**# Return** (boolean)

### Cómo empezar
## Cómo empezar

Para utilizar esta clase con `Composer`:

Expand All @@ -120,47 +120,47 @@ require_once __DIR__ . '/Cookie.php';
use Josantonius\Cookie\Cookie;
```

### Uso
## Uso

Ejemplo de uso para esta biblioteca:

**Agregar cookie:**
### - Agregar cookie:

```php
Cookie::set('cookie_name', 'value', 365);
```

**Obtener valor de cookie:**
### - Obtener valor de cookie:

```php
Cookie::get('cookie_name');
```

**Obtener todas las cookies:**
### - Obtener todas las cookies:

```php
Cookie::get();
```

**Extraer y eliminar cookie:**
### - Extraer y eliminar cookie:

```php
Cookie::pull('cookie_name');
```

**Eliminar una cookie:**
### - Eliminar una cookie:

```php
Cookie::destroy('cookie_name');
```

**Eliminar todas las cookies:**
### - Eliminar todas las cookies:

```php
Cookie::destroy();
```

### Tests
## Tests

Para ejecutar las [pruebas](tests) necesitarás [Composer](http://getcomposer.org/download/) y seguir los siguientes pasos:

Expand All @@ -182,12 +182,12 @@ Ejecutar todas las pruebas anteriores:

$ composer tests

### ☑ Tareas pendientes
## ☑ Tareas pendientes

- [x] Completar tests
- [x] Mejorar la documentación

### Contribuir
## Contribuir

1. Comprobar si hay incidencias abiertas o abrir una nueva para iniciar una discusión en torno a un fallo o función.
1. Bifurca la rama del repositorio en GitHub para iniciar la operación de ajuste.
Expand All @@ -197,15 +197,15 @@ Ejecutar todas las pruebas anteriores:

Esto está pensado para proyectos grandes y de larga duración.

### Repositorio
## Repositorio

Los archivos de este repositorio se crearon y subieron automáticamente con [Reposgit Creator](https://github.com/Josantonius/BASH-Reposgit).

### Licencia
## Licencia

Este proyecto está licenciado bajo **licencia MIT**. Consulta el archivo [LICENSE](LICENSE) para más información.

### Copyright
## Copyright

2016 - 2017 Josantonius, [josantonius.com](https://josantonius.com/)

Expand Down
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ PHP library for handling cookies.

---

### Requirements
## Requirements

This library is supported by `PHP versions 5.6` or higher and is compatible with `HHVM versions 3.0` or higher.
This library is supported by **PHP versions 5.6** or higher and is compatible with **HHVM versions 3.0** or higher.

### Installation
## Installation

The preferred way to install this extension is through [Composer](http://getcomposer.org/download/).

To install `PHP Cookie library`, simply:
To install **PHP Cookie library**, simply:

$ composer require Josantonius/Cookie

Expand All @@ -48,11 +48,11 @@ Or **install it manually**:

$ wget https://raw.githubusercontent.com/Josantonius/PHP-Cookie/master/src/Cookie.php

### Available Methods
## Available Methods

Available methods in this library:

`Set cookie:`
### - Set cookie:

```php
Cookie::set($key, $value, $time);
Expand All @@ -66,7 +66,7 @@ Cookie::set($key, $value, $time);

**# Return** (boolean)

`Get item from cookie:`
### - Get item from cookie:

```php
Cookie::get($key);
Expand All @@ -78,7 +78,7 @@ Cookie::get($key);

**# Return** (mixed|false) → returns cookie value, cookies array or false

`Extract item from cookie and delete cookie:`
### - Extract item from cookie and delete cookie:

```php
Cookie::pull($key);
Expand All @@ -90,7 +90,7 @@ Cookie::pull($key);

**# Return** (string|false) → item or false when key does not exists

`Extract item from cookie and delete cookie:`
### - Extract item from cookie and delete cookie:

```php
Cookie::destroy($key);
Expand All @@ -102,65 +102,65 @@ Cookie::destroy($key);

**# Return** (boolean)

### Quick Start
## Quick Start

To use this class with `Composer`:
To use this class with **Composer**:

```php
require __DIR__ . '/vendor/autoload.php';

use Josantonius\Cookie\Cookie;
```

Or If you installed it `manually`, use it:
Or If you installed it **manually**, use it:

```php
require_once __DIR__ . '/Cookie.php';

use Josantonius\Cookie\Cookie;
```

### Usage
## Usage

Example of use for this library:

**Set cookie:**
### - Set cookie:

```php
Cookie::set('cookie_name', 'value', 365);
```

**Get cookie:**
### - Get cookie:

```php
Cookie::get('cookie_name');
```

**Get all cookies:**
### - Get all cookies:

```php
Cookie::get();
```

**Pull cookie:**
### - Pull cookie:

```php
Cookie::pull('cookie_name');
```

**Destroy one cookie:**
### - Destroy one cookie:

```php
Cookie::destroy('cookie_name');
```

**Destroy all cookies:**
### - Destroy all cookies:

```php
Cookie::destroy();
```

### Tests
## Tests

To run [tests](tests) you just need [Composer](http://getcomposer.org/download/) and to execute the following:

Expand All @@ -182,12 +182,12 @@ Run all previous tests:

$ composer tests

### ☑ TODO
## ☑ TODO

- [x] Create tests
- [x] Improve documentation

### Contribute
## Contribute

1. Check for open issues or open a new issue to start a discussion around a bug or feature.
1. Fork the repository on GitHub to start making your changes.
Expand All @@ -197,15 +197,15 @@ Run all previous tests:

This is intended for large and long-lived objects.

### Repository
## Repository

All files in this repository were created and uploaded automatically with [Reposgit Creator](https://github.com/Josantonius/BASH-Reposgit).

### License
## License

This project is licensed under **MIT license**. See the [LICENSE](LICENSE) file for more info.

### Copyright
## Copyright

2016 - 2017 Josantonius, [josantonius.com](https://josantonius.com/)

Expand Down

0 comments on commit b12a329

Please # to comment.