Download the PHP package 104corp/cache without Composer

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

Cache

Build Status codecov Latest Stable Version Total Downloads License

PSR-16 simple cache implements written by PHP.

系統需求

安裝

使用 Composer 安裝

說明

Cache 實作遵守 PSR-16 Simple Cache,並提供 CacheAwareTrait ,可以方便地掛載在需要 Cache 的元件上;提供幾種常見的實作,可以直接套用。

因實作遵守 PSR-16 規定,如果覺得不夠用的話,也可以直接無痛改用第三方套件。

基本

如果需要做 Cache 的話,首先先掛上 CacheAwareTrait ,並實作必要的方法 getDefaultTtl() ,接著就能開始使用了。下面是一個簡單的範例:

實際要使用 Resource 物件時,只要傳入適當的 cache driver 即可運作,如 Symfony Cache

實作

測試替身

Cache 元件實作 Psr\SimpleCache\CacheInterface ,因此可以直接使用此介面來產生 Stub / Spy / Mock 。

測試階段可使用 Corp104\Cache\ArrayCache 來測元件與 Cache 的互動和結果是否正常。

Contributing

開發相關資訊可以參考 CONTRIBUTING ,有任何問題或建議,歡迎發 issue ;如果覺得程式碼可以修更好的話,也歡迎發 PR 修正。

PR 如何使用可以參考 Git 官方文件


All versions of cache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
psr/simple-cache Version ^1.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 104corp/cache contains the following files

Loading the files please wait ....