Download the PHP package caichuanhai/session without Composer

On this page you can find all versions of the php package caichuanhai/session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package session

Session

关于

一个普通的php session类库,依赖于phpfastcache/phpfastcache,所以驱动支持files,redis,predis,memcache,memcached,mongodb,xcache,apc,cookie。

强烈不建议使用cookie,非常不安全

安装

使用

$config为SESSION配置数组,可不传则使用默认值,默认值如下

设置单个SESSION配置的值

获取配置值

$name不传则获取所有配置,若获取配置不存在则返回NULL

设置驱动

  1. 使用redis驱动,需要安装redis扩展才能使用

  2. 使用predis驱动,此驱动不需安装redis扩展,直接使用predis类库

  3. 使用memcache驱动,需要安装memcache扩展才能使用

  4. 使用memcached驱动,此驱动不需安装memcached扩展,直接使用memcached类库

  5. 使用mongodb驱动

  6. 使用files,xcache,apc,cookie驱动

获取SESSION数据

$item为要获取的键名,若不存在则返回NULL,若不传,则返回所有SESSION数据

设置SESSION数据

删除SESSION数据

清除SESSION数据


All versions of session with dependencies

PHP Build Version
Package Version
Requires phpfastcache/phpfastcache Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package caichuanhai/session contains the following files

Loading the files please wait ....