Download the PHP package kriss/spreadsheet-smart-cache without Composer

On this page you can find all versions of the php package kriss/spreadsheet-smart-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 spreadsheet-smart-cache

简介

一个专为 PHPSpreadsheet 设计的智能缓存机制,用于优化和平衡大文件处理时的内存使用和性能问题。

简体中文(zh-cn) | English

安装

使用方法

详细介绍请参见官方文档:PhpSpreadsheet Memory Saving

注意:为避免多并发情况下缓存目录冲突,$yourLocalPath 建议应该执行时都不相同。

设计思路与优势

为什么不使用 APCu、Redis、MemCache?

为什么推荐文件缓存?

为什么不直接用常规文件缓存(如 Symfony/cache 或 illuminate/cache 的文件缓存)?

SmartCache 的优化点?

性能测试

测试机器:macos M4 16G SSD

php: 8.2

phpoffice/phpspreadsheet: 5.0

单元格范围 是否使用 SmartCache 耗时(秒) memory_peak(M)
A1:Z1000 N 0.557178 18.00
A1:Z1000 Y 0.893424 12.00
A1:Z10000 N 5.465772 120.00
A1:Z10000 Y 8.861701 48.00
A1:Z20000 N 11.333312 236.00
A1:Z20000 Y 18.627746 90.00
A1:Z30000 N 16.654778 380.00
A1:Z30000 Y 27.586086 152.00
A1:CZ10000 N 21.779006 468.00
A1:CZ10000 Y 36.568663 174.00

可通过 scripts/benchmark.php 脚本测试实际性能表现。


All versions of spreadsheet-smart-cache with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 kriss/spreadsheet-smart-cache contains the following files

Loading the files please wait ...