Download the PHP package wenstionly/cache-token without Composer

On this page you can find all versions of the php package wenstionly/cache-token. 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 cache-token

Cache-Token

一个与TokenGuard类似的用户身份认证驱动。

与TokenGuard类似的是,Cache-Token通过在请求中附带一个api_token字段来向服务端传递用户身份令牌,以此识别用户身份。

与TokenGuard不同的是,Cache-Token还支持:

版本兼容性

PHP Laravel
>=7.2 >=6.0

用法

参数配置分为两部分:

文件中可以配置令牌的存储方式:

其中,

最后,在需要使用Cache-Token认证路由上设置中间件 即可(具体guard名称以 的配置为准)

处理登录/登出逻辑

以下假定在 中设置的CacheToken的guard名称为上述示例中的

登录

在处理完常规的用户认证逻辑后,如果登录成功,则可以通过下面的方式创建一个令牌:

登出

强制掉线

设备类型判断

驱动提供下列方法,方便判断用户的设备类型:


All versions of cache-token with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^6.0|^7.0|^8.0
jenssegers/agent Version ^2.6
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 wenstionly/cache-token contains the following files

Loading the files please wait ....