Download the PHP package fastd/storage without Composer

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

Storage

Building Latest Stable Version Total Downloads Latest Unstable Version License

简单的 PHP 存储类组件,支持原生 Memcached, Redis, SSDB 等操作。

要求

Composer

扩展

使用

都是简单的封装,实现统一一套 API,统一入口和基础 key/value 存储操作

文件缓存

文件缓存此处仅使用最简单的 \SplFileObject 进行扩展,因为文件缓存样式以及支持的存储类型不是太过于丰富,所以此处仅作为最简单的 key/value 方式进行存储。

通过 set 方法存储内容, 通过 get 方法获取存储的内容,具体操作请看 \SplFileObject,文件存储对象继承于 SplFileObject

Redis

获取 Redis 与原生对象,保持使用上的灵活。

Redis::connection(array $config): \Redis 返回一个原生操作的扩展对象,可以然你按照原生的方式操作。

Memcached

原生操作

SSDB

原生操作

友情提示

所有缓存操作都实现 FastD\Storage\CacheInterface 接口,所以缓存操作保持一致,注意各个存储得兼容方式。 均使用 new 进行实例化。

而原生操作均使用 FastD\Storage\StorageInterface::connect(array $config) 静态方法进行获取,文件存储较为特殊,只有 open 方法。

友谊得小船不能说翻就翻

Testing

License MIT


All versions of storage with dependencies

PHP Build Version
Package Version
Requires php 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 fastd/storage contains the following files

Loading the files please wait ....