Download the PHP package yiisoft/cookies without Composer
On this page you can find all versions of the php package yiisoft/cookies. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/cookies
More information about yiisoft/cookies
Files in yiisoft/cookies
Package cookies
Short Description Convenient way to use cookies with PSR-7
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package cookies
Yii Cookies
The package helps in working with HTTP cookies in a PSR-7 environment:
- provides a handy abstraction representing a cookie
- allows dealing with many cookies at once
- forms and adds
Set-Cookie
headers to response - signs a cookie to prevent its value from being tampered with
- encrypts a cookie to prevent its value from being tampered with
- provides PSR-15 middleware for encrypting and signing cookie values
Requirements
- PHP 7.4 or higher.
Installation
The package could be installed with Composer:
General usage
Adding a cookie to response:
Modifying response cookies to be sent:
Getting request cookies:
Signing a cookie to prevent its value from being tampered with:
Encrypting a cookie to prevent its value from being tampered with:
Using a PSR-15 middleware to encrypt and sign cookie values.
Create cookie with raw value that will not be encoded:
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Cookies is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.
Support the project
Follow updates
All versions of cookies with dependencies
psr/http-message Version ^1.0|^2.0
psr/http-message-implementation Version 1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.1|^2.0|^3.0
yiisoft/http Version ^1.2
yiisoft/security Version ^1.0
yiisoft/strings Version ^2.0