Download the PHP package eden/cookie without Composer
On this page you can find all versions of the php package eden/cookie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package cookie
Short Description Client side persistent data
License MIT
Homepage http://eden-php.com
Informations about the package cookie
Eden Cookie
- Install
- Introduction
- API
- clear
- get
- remove
- set
- setData
- setSecure
- setSecureData
- Contributing
====
Install
composer install eden/cookie
====
Introduction
Instantiate cookies in this manner.
The cookie is returned is an array object and can be used like a normal array.
====
API
====
clear
Removes all cookies.
Usage
Parameters
Returns Eden\Cookie\Index
====
get
Returns data
Usage
Parameters
*string|null $key
- The key to retreive
Returns mixed
Example
====
remove
Removes a cookie.
Usage
Parameters
*string $name
- The cookie name
Returns Eden\Cookie\Index
Example
====
set
Sets a cookie.
Usage
Parameters
*string $key
- Cookie namescalar $data
- The dataint $expires
- Expirationstring $path
- Path to make the cookie availablestring|null $domain
- The domainbool $secure
- Use secure cookiebool $httponly
- Make it only available on http://
Returns Eden\Cookie\Index
Example
====
setData
Sets a set of cookies.
Usage
Parameters
*array $data
- The list of cookie dataint $expires
- Expirationstring $path
- Path to make the cookie availablestring|null $domain
- The domainbool $secure
- Use secure cookiebool $httponly
- Make it only available on http://
Returns Eden\Cookie\Index
Example
====
setSecure
Sets a secure cookie.
Usage
Parameters
*string $key
- Cookie namescalar $data
- The dataint $expires
- Expirationstring $path
- Path to make the cookie availablestring|null $domain
- The domain
Returns Eden\Cookie\Index
Example
====
setSecureData
Sets a set of secure cookies.
Usage
Parameters
*array $data
- The list of cookie dataint $expires
- Expirationstring $path
- Path to make the cookie availablestring|null $domain
- The domain
Returns Eden\Cookie\Index
Example
====
Contributing to Eden
Contributions to Eden are following the Github work flow. Please read up before contributing.
Setting up your machine with the Eden repository and your fork
- Fork the repository
- Fire up your local terminal create a new branch from the
v4
branch of your fork with a branch name describing what your changes are. Possible branch name types:- bugfix
- feature
- improvement
- Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")
Making pull requests
- Please ensure to run
phpunit
before making a pull request. - Push your code to your remote forked version.
- Go back to your forked version on GitHub and submit a pull request.
- An Eden developer will review your code and merge it in when it has been classified as suitable.