Skip to content

Commit d973d4b

Browse files
committed
The repository was updated to version 1.1.1
1 parent fdef092 commit d973d4b

File tree

9 files changed

+482
-0
lines changed

9 files changed

+482
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 4
6+
indent_style = space
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
phpunit.xml
2+
composer.phar
3+
composer.lock
4+
composer-test.lock
5+
vendor/
6+
build/artifacts/
7+
artifacts/
8+
docs/_build
9+
docs/*.pyc
10+
.git*/
11+
.idea
12+
.DS_STORE

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# CHANGELOG
2+
3+
## 1.1.1 - 2017-03-18
4+
* Some files were excluded from download and comments and readme files were updated.
5+
6+
## 1.1.0 - 2017-01-30
7+
* Compatible with PHP 5.6 or higher.
8+
9+
## 1.0.0 - 2017-01-30
10+
* Compatible only with PHP 7.0 or higher. In the next versions, the library will be modified to make it compatible with PHP 5.6 or higher.
11+
12+
## 1.0.0 - 2016-12-15
13+
* Added `Josantonius\Cookie\Cookie` class.
14+
* Added `Josantonius\Cookie\Cookie::set()` method.
15+
* Added `Josantonius\Cookie\Cookie::pull()` method.
16+
* Added `Josantonius\Cookie\Cookie::get()` method.
17+
* Added `Josantonius\Cookie\Cookie::display()` method.
18+
* Added `Josantonius\Cookie\Cookie::destroy()` method.
19+
20+
## 1.0.0 - 2016-12-15
21+
* Added `Josantonius\Cookie\Exception\CookieException` class.
22+
* Added `Josantonius\Cookie\Exception\Exceptions` abstract class.
23+
* Added `Josantonius\Cookie\Exception\CookieException->__construct()` method.
24+
25+
## 1.0.0 - 2016-12-15
26+
* Added `Josantonius\Cookie\Tests\CookieTest` class.
27+
* Added `Josantonius\Cookie\Tests\CookieTest::testSetCookie()` method.
28+
* Added `Josantonius\Cookie\Tests\CookieTest::testPullCookie()` method.
29+
* Added `Josantonius\Cookie\Tests\CookieTest::testGetCookie()` method.
30+
* Added `Josantonius\Cookie\Tests\CookieTest::testDisplayCookies()` method.
31+
* Added `Josantonius\Cookie\Tests\CookieTest::testDestroyOneCookie()` method.
32+
* Added `Josantonius\Cookie\Tests\CookieTest::testDestroyAllCookies()` method.

CONDUCT.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

README-ES.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# PHP Cookie library
2+
3+
[![Latest Stable Version](https://poser.pugx.org/josantonius/cookie/v/stable)](https://packagist.org/packages/josantonius/cookie) [![Total Downloads](https://poser.pugx.org/josantonius/cookie/downloads)](https://packagist.org/packages/josantonius/cookie) [![Latest Unstable Version](https://poser.pugx.org/josantonius/cookie/v/unstable)](https://packagist.org/packages/josantonius/cookie) [![License](https://poser.pugx.org/josantonius/cookie/license)](https://packagist.org/packages/josantonius/cookie)
4+
5+
[English version](README.md)
6+
7+
Librería PHP para el manejo de cookies.
8+
9+
---
10+
11+
- [Instalación](#instalación)
12+
- [Requisitos](#requisitos)
13+
- [Cómo empezar y ejemplos](#cómo-empezar-y-ejemplos)
14+
- [Métodos disponibles](#métodos-disponibles)
15+
- [Uso](#uso)
16+
- [Tests](#tests)
17+
- [Manejador de excepciones](#manejador-de-excepciones)
18+
- [Contribuir](#contribuir)
19+
- [Repositorio](#repositorio)
20+
- [Licencia](#licencia)
21+
- [Copyright](#copyright)
22+
23+
---
24+
25+
### Instalación
26+
27+
La mejor forma de instalar esta extensión es a través de [composer](http://getcomposer.org/download/).
28+
29+
Para instalar PHP Cookie library, simplemente escribe:
30+
31+
$ composer require Josantonius/Cookie
32+
33+
El comando anterior solamente instalará los archivos necesarios, si prefieres descargar todo el código, incluyendo tests, puedes utilizar:
34+
35+
$ composer require Josantonius/Cookie --prefer-source
36+
37+
También puedes clonar el repositorio completo con Git:
38+
39+
$ git clone https://github.com/Josantonius/Cookie.git
40+
41+
### Requisitos
42+
43+
Esta ĺibrería es soportada por versiones de PHP 5.6 o superiores y es compatible con versiones de HHVM 3.0 o superiores.
44+
45+
### Cómo empezar y ejemplos
46+
47+
Para utilizar esta librería, simplemente:
48+
49+
```php
50+
require __DIR__ . '/vendor/autoload.php';
51+
52+
use Josantonius\Cookie\Cookie;
53+
```
54+
### Métodos disponibles
55+
56+
Métodos disponibles en esta librería:
57+
58+
```php
59+
Cookie::set();
60+
Cookie::pull();
61+
Cookie::get();
62+
Cookie::display();
63+
Cookie::destroy();
64+
```
65+
### Uso
66+
67+
Ejemplo de uso para esta librería:
68+
69+
```php
70+
<?php
71+
require __DIR__ . '/vendor/autoload.php';
72+
73+
use Josantonius\Cookie\Cookie;
74+
75+
/* Crear cookie */
76+
77+
Cookie::set('CookieName', 'value', 365);
78+
79+
/* Obtener cookie */
80+
81+
Cookie::get('CookieName');
82+
83+
/* Destruir cookie */
84+
85+
Cookie::destroy('CookieName');
86+
```
87+
88+
### Tests
89+
90+
Para utilizar la clase de [pruebas](tests), simplemente:
91+
92+
```php
93+
<?php
94+
$loader = require __DIR__ . '/vendor/autoload.php';
95+
96+
$loader->addPsr4('Josantonius\\Cookie\\Tests\\', __DIR__ . '/vendor/josantonius/cookie/tests');
97+
98+
use Josantonius\Cookie\Tests\CookieTest;
99+
```
100+
Métodos de prueba disponibles en esta librería:
101+
102+
```php
103+
CookieTest::testSetCookie();
104+
CookieTest::testPullCookie();
105+
CookieTest::testGetCookie();
106+
CookieTest::testDisplayCookies();
107+
CookieTest::testDestroyOneCookie();
108+
CookieTest::testDestroyAllCookies();
109+
```
110+
111+
### Manejador de excepciones
112+
113+
Esta librería utiliza [control de excepciones](src/Exception) que puedes personalizar a tu gusto.
114+
### Contribuir
115+
1. Comprobar si hay incidencias abiertas o abrir una nueva para iniciar una discusión en torno a un fallo o función.
116+
1. Bifurca la rama del repositorio en GitHub para iniciar la operación de ajuste.
117+
1. Escribe una o más pruebas para la nueva característica o expón el error.
118+
1. Haz cambios en el código para implementar la característica o reparar el fallo.
119+
1. Envía pull request para fusionar los cambios y que sean publicados.
120+
121+
Esto está pensado para proyectos grandes y de larga duración.
122+
123+
### Repositorio
124+
125+
Los archivos de este repositorio se crearon y subieron automáticamente con [Reposgit Creator](https://github.com/Josantonius/BASH-Reposgit).
126+
127+
### Licencia
128+
129+
Este proyecto está licenciado bajo **licencia MIT**. Consulta el archivo [LICENSE](LICENSE) para más información.
130+
131+
## Copyright
132+
133+
2017 Josantonius, [josantonius.com](https://josantonius.com/)
134+
135+
Si te ha resultado útil, házmelo saber :wink:
136+
137+
Puedes contactarme en [Twitter](https://twitter.com/Josantonius) o a través de mi [correo electrónico](mailto:hello@josantonius.com).

README.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# PHP Cookie library
2+
3+
[![Latest Stable Version](https://poser.pugx.org/josantonius/cookie/v/stable)](https://packagist.org/packages/josantonius/cookie) [![Total Downloads](https://poser.pugx.org/josantonius/cookie/downloads)](https://packagist.org/packages/josantonius/cookie) [![Latest Unstable Version](https://poser.pugx.org/josantonius/cookie/v/unstable)](https://packagist.org/packages/josantonius/cookie) [![License](https://poser.pugx.org/josantonius/cookie/license)](https://packagist.org/packages/josantonius/cookie)
4+
5+
[Versión en español](README-ES.md)
6+
7+
PHP library for handling cookies.
8+
9+
---
10+
11+
- [Installation](#installation)
12+
- [Requirements](#requirements)
13+
- [Quick Start and Examples](#quick-start-and-examples)
14+
- [Available Methods](#available-methods)
15+
- [Usage](#usage)
16+
- [Tests](#tests)
17+
- [Exception Handler](#exception-handler)
18+
- [Contribute](#contribute)
19+
- [Repository](#repository)
20+
- [Licensing](#licensing)
21+
- [Copyright](#copyright)
22+
23+
---
24+
25+
### Installation
26+
27+
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
28+
29+
To install PHP Cookie library, simply:
30+
31+
$ composer require Josantonius/Cookie
32+
33+
The previous command will only install the necessary files, if you prefer to download the entire source, including tests, you can use:
34+
35+
$ composer require Josantonius/Cookie --prefer-source
36+
37+
Or you can also clone the complete repository with Git:
38+
39+
$ git clone https://github.com/Josantonius/PHP-Cookie.git
40+
41+
### Requirements
42+
43+
This library is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher.
44+
45+
### Quick Start and Examples
46+
47+
To use this class, simply:
48+
49+
```php
50+
require __DIR__ . '/vendor/autoload.php';
51+
52+
use Josantonius\Cookie\Cookie;
53+
```
54+
### Available Methods
55+
56+
Available methods in this library:
57+
58+
```php
59+
Cookie::set();
60+
Cookie::pull();
61+
Cookie::get();
62+
Cookie::display();
63+
Cookie::destroy();
64+
```
65+
### Usage
66+
67+
Example of use for this library:
68+
69+
```php
70+
<?php
71+
require __DIR__ . '/vendor/autoload.php';
72+
73+
use Josantonius\Cookie\Cookie;
74+
75+
/* Set cookie */
76+
77+
Cookie::set('CookieName', 'value', 365);
78+
79+
/* Get cookie */
80+
81+
Cookie::get('CookieName');
82+
83+
/* Destroy cookie */
84+
85+
Cookie::destroy('CookieName');
86+
```
87+
88+
### Tests
89+
90+
To use the [test](tests) class, simply:
91+
92+
```php
93+
<?php
94+
$loader = require __DIR__ . '/vendor/autoload.php';
95+
96+
$loader->addPsr4('Josantonius\\Cookie\\Tests\\', __DIR__ . '/vendor/josantonius/cookie/tests');
97+
98+
use Josantonius\Cookie\Tests\CookieTest;
99+
100+
```
101+
Available test methods in this library:
102+
103+
```php
104+
CookieTest::testSetCookie();
105+
CookieTest::testPullCookie();
106+
CookieTest::testGetCookie();
107+
CookieTest::testDisplayCookies();
108+
CookieTest::testDestroyOneCookie();
109+
CookieTest::testDestroyAllCookies();
110+
```
111+
112+
### Exception Handler
113+
114+
This library uses [exception handler](src/Exception) that you can customize.
115+
### Contribute
116+
1. Check for open issues or open a new issue to start a discussion around a bug or feature.
117+
1. Fork the repository on GitHub to start making your changes.
118+
1. Write one or more tests for the new feature or that expose the bug.
119+
1. Make code changes to implement the feature or fix the bug.
120+
1. Send a pull request to get your changes merged and published.
121+
122+
This is intended for large and long-lived objects.
123+
124+
### Repository
125+
126+
All files in this repository were created and uploaded automatically with [Reposgit Creator](https://github.com/Josantonius/BASH-Reposgit).
127+
128+
### Licensing
129+
130+
This project is licensed under **MIT license**. See the [LICENSE](LICENSE) file for more info.
131+
132+
## Copyright
133+
134+
2017 Josantonius, [josantonius.com](https://josantonius.com/)
135+
136+
If you find it useful, let me know :wink:
137+
138+
You can contact me on [Twitter](https://twitter.com/Josantonius) or through my [email](mailto:hello@josantonius.com).

contributors.txt

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

0 commit comments

Comments
 (0)