Download the PHP package phalapi/redis without Composer

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

基于PhalApi2的Redis拓展

前言

Redis在PHP开发中运用场景已经无处不在,小到简单缓存大到数据库或消息队列都可以使用Redis来进行实现,基于PhalApi2的出世,PhalApi2-Redis也紧接着进行了本次适配来提供更好的开发体验,PhalApi2-Redis提供相对于原生PhalApi2-RedisCache缓存更强大的Redis操作以及完善的封装机制,帮助开发者更好的使用Redis低成本的来解决实际的业务问题.

附上:

官网地址:http://www.phalapi.net/

项目GitHub地址:https://github.com/wenzhenxi/phalapi2-redis

项目码云地址 : https://gitee.com/wenzhenxi/phalapi2-redis

安装配置Redis

基于Liunx强烈推荐使用oneinstack在配置php 和 Redis同事会将依赖打包好:

oneinstack:https://oneinstack.com/

手动安装redis网上有很多教程这里不再提及,主要注意一下配置文件:

手动安装php-redis依赖如下:

此后可以在phpinfo()中看到redis即可

安装PhalApi2-Redis

在项目的composer.json文件中,添加:

配置好后,执行composer update更新操作即可。

配置文件

我们需要在 ./config/app.php 配置文件中追加以下配置:

入门使用

初始化PhalApi2-Redis,入口文件index.php加入如下代码

常用基础操作(具体API可以查阅代码中src/Lite.php)

如果大家有更好的建议可以私聊或加入到PhalApi大家庭中前来一同维护PhalApi 注:笔者能力有限有说的不对的地方希望大家能够指出,也希望多多交流!


All versions of redis with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
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 phalapi/redis contains the following files

Loading the files please wait ....