Download the PHP package eden/session without Composer
On this page you can find all versions of the php package eden/session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package session
Short Description Sever Side Persistent Data
License MIT
Homepage http://eden-php.com
Informations about the package session
Eden Session
- Install
- Introduction
- API
- clear
- get
- getId
- remove
- set
- setId
- start
- stop
- Contributing
====
Install
composer install eden/session
====
Introduction
Before using sessions, it's probably a good idea to start the session.
The session returned is an array object and can be used like a normal array.
====
clear
Removes all session data
Usage
Parameters
Returns Eden\Session\Index
====
get
Returns data
Usage
Parameters
string|null $key
- The key from the session
Returns scalar|null|array
Example
====
getId
Returns session id
Usage
Parameters
Returns int
====
remove
Removes a session.
Usage
Parameters
*string $name
- session name
Returns Eden\Session\Index
Example
====
set
Sets data
Usage
Parameters
*array|string $data
- The array data to setmixed $value
- If data is a key then this is the value
Returns Eden\Session\Index
Example
====
setId
Sets the session ID
Usage
Parameters
*int $id
- The prescribed session ID to use
Returns int
Example
====
start
Starts a session
Usage
Parameters
Returns Eden\Session\Index
====
stop
Starts a session
Usage
Parameters
Returns Eden\Session\Index
====
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.