承接 kraenzle-ritter/spreadsheet-inspect 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kraenzle-ritter/spreadsheet-inspect

Composer 安装命令:

composer create-project kraenzle-ritter/spreadsheet-inspect

包简介

CLI tool to inspect and analyze Excel/ODS spreadsheet files

README 文档

README

Tests License: MIT PHP Version Downloads

A CLI tool to inspect Excel (.xlsx, .xls) and LibreOffice (.ods) spreadsheet files. Analyze sheet structures, column statistics, find cross-sheet references, and extract embedded images.

Features

  • 📊 Sheet Analysis – List all sheets, view column headers, row counts, and fill rates
  • 📈 Value Statistics – See distinct values per column with occurrence counts
  • 🔗 Cross-Sheet Reference Check – Find where values from one sheet appear in others
  • 🖼️ Image Inspection – Count and extract embedded images/drawings
  • 📁 Multiple Formats – Supports Excel (.xlsx, .xls) and LibreOffice Calc (.ods)

Installation

Download PHAR (recommended)

Download the latest release:

curl -L https://github.com/kraenzle-ritter/spreadsheet-inspect/releases/latest/download/spreadsheet-inspect -o spreadsheet-inspect
chmod +x spreadsheet-inspect

Optionally move to your PATH:

sudo mv spreadsheet-inspect /usr/local/bin/

From Source

git clone https://github.com/kraenzle-ritter/spreadsheet-inspect.git
cd spreadsheet-inspect
composer install

Usage

Note: Replace php inspect with spreadsheet-inspect if using the PHAR.

List all sheets

php inspect spreadsheet myfile.xlsx --sheets

Analyze a specific sheet

php inspect spreadsheet myfile.xlsx --sheet=1
# or by name
php inspect spreadsheet myfile.xlsx --sheet="Sheet Name"

Output:

## Available sheets
- **[1]** `Products`
- **[2]** `Categories`

# Sheet `Products` (Index: 1)

## Sheet statistics
- **Rows** (excluding header): `150`

### `ProductID`
- **Filled**: `150 / 150` (100%)
- **Distinct**: `150`

### `Category`
- **Filled**: `148 / 150` (98.67%)
- **Distinct**: `12`

  Values:
  - `Electronics` (45)
  - `Clothing` (32)
  ...

Analyze images in a sheet

php inspect spreadsheet myfile.xlsx --sheet=1 --images

Extract images to a directory

php inspect spreadsheet myfile.xlsx --sheet=1 --extract-images=./images

Cross-sheet reference check

Find where values from a column appear in other sheets:

php inspect spreadsheet myfile.xlsx --sheet=1 --column=ProductID

Check against a specific target sheet:

php inspect spreadsheet myfile.xlsx --sheet=1 --column=ProductID --cross-sheet=2

Compare only against a specific column in target sheets:

php inspect spreadsheet myfile.xlsx --sheet=1 --column=ProductID --target-column=ID

Options

Option Description
--sheets List all sheet names only
--sheet= Inspect a specific sheet (by index or name)
--column= Cross-search for values from this column
--cross-sheet= Only check this target sheet
--target-column= Only compare against this column in target sheets
--images Count and list images in the sheet
--extract-images= Extract images to specified directory
--output= Output format: console (default), html, pdf
--output-file= Output file path (required for html/pdf)
--debug Show detailed matching values
--memory= Memory limit in MB (default: 2000)

Export to HTML or PDF

Generate a styled HTML report:

php inspect spreadsheet myfile.xlsx --sheet=1 --output=html --output-file=report.html

Generate a PDF report:

php inspect spreadsheet myfile.xlsx --sheet=1 --output=pdf --output-file=report.pdf

Supported Formats

  • Microsoft Excel: .xlsx, .xls
  • LibreOffice Calc: .ods

Requirements

  • PHP 8.3+
  • Composer

Testing

./vendor/bin/pest

Built With

License

MIT License. See LICENSE for details.

kraenzle-ritter/spreadsheet-inspect 适用场景与选型建议

kraenzle-ritter/spreadsheet-inspect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「excel」 「spreadsheet」 「xlsx」 「cli」 「analyze」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 kraenzle-ritter/spreadsheet-inspect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kraenzle-ritter/spreadsheet-inspect 我们能提供哪些服务?
定制开发 / 二次开发

基于 kraenzle-ritter/spreadsheet-inspect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 26
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-16