aspose/cells-sdk-php

Effortlessly handle Excel and other spreadsheet documents with features like opening, generating, editing, splitting, merging, comparing, and converting. Seamlessly integrate Cloud API into your solutions to efficiently manipulate documents. Convert Excel or other spreadsheets to CSV, PDF, JSON, XML

Maintainers

Package info

github.com/aspose-cells-cloud/aspose-cells-cloud-php

Issues

pkg:composer/aspose/cells-sdk-php

Transparency log

Statistics

Installs: 55 190

Dependents: 0

Suggesters: 0

Stars: 1

26.7 2026-07-20 14:15 UTC

README

Product Page Documentation API Ref Examples Blog Support Packagist PHP Version Support Packagist Downloads License PHP GitHub commits since latest release (by date)

English | 中文 | 日本語 | Deutsch

English

Aspose.Cells Cloud SDK for PHP is a cloud-native REST API that enables PHP developers to create, read, edit, convert, and repair spreadsheet files — including Excel (XLS, XLSX, XLSB, XLSM), OpenDocument Spreadsheet (ODS), CSV, TSV, JSON, HTML, PDF, and more — all without requiring Microsoft Excel or Office to be installed.

Built on the Aspose.Cells Cloud Web API, this MIT-licensed SDK supports advanced spreadsheet operations such as:

  • Cell formatting, formulas, and data validation
  • Pivot tables, charts, hyperlinks, and comments
  • Conditional formatting and smart markers
  • Worksheet merging, splitting, and protection
  • Batch processing and background removal

It seamlessly integrates with AWS, Microsoft Azure, and Google Cloud, ensuring high availability, scalability, and data integrity. Ideal for serverless apps, microservices, and cloud automation workflows.

Quick Start Guide

To begin with Aspose.Cells Cloud, here's what you need to do:

  1. Sign up for an account at Aspose for Cloud to obtain your application details.

  2. Install the Aspose.Cells Cloud PHP Package from Packagist.

    To install Aspose.Cells Cloud via Composer, follow these steps:

    • Add Aspose.Cells Cloud as a dependency to your composer.json file:
    {
      "require": {
        "aspose/cells-cloud": "^26.7.0"
      }
    }
    • Run Composer to install Aspose.Cells Cloud SDK:
    composer install
    • Include Composer's autoloader in your PHP code:
    require 'vendor/autoload.php';
    • You're now ready to use Aspose.Cells Cloud in your PHP project.
  3. Use the conversion code provided below as a reference to add or modify your application.

Convert an Excel File Using PHP

<?php
require_once('vendor/autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PutConvertWorkbookRequest;

#get CellsCloudClientId from https://dashboard.aspose.cloud/#/applications
#get CellsCloudClientSecret from https://dashboard.aspose.cloud/#/applications
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$response = $cellsApi->convertSpreadsheet(new \Aspose\Cells\Cloud\Request\ConvertSpreadsheetRequest( 'examples/EmployeeSalesSummary.xlsx', 'pdf'),"EmployeeSalesSummary.pdf");

Supported File Formats

Format Description Load Save
XLS Excel 95/5.0 - 2003 Workbook.
XLSX Office Open XML SpreadsheetML Workbook or template file, with or without macros.
XLSB Excel Binary Workbook.
XLSM Excel Macro-Enabled Workbook.
XLT Excel 97 - Excel 2003 Template.
XLTX Excel Template.
XLTM Excel Macro-Enabled Template.
XLAM An Excel Macro-Enabled Add-In file that is used to add new functions to Excel.
CSV CSV (Comma Separated Value) file.
TSV TSV (Tab-separated values) file.
TXT Delimited plain text file.
HTML HTML format.
MHTML MHTML file.
ODS ODS (OpenDocument Spreadsheet).
Numbers The document is created by Apple's "Numbers" application which forms part of Apple's iWork office suite, a set of applications which run on the Mac OS X and iOS operating systems.
JSON JavaScript Object Notation
DIF Data Interchange Format.
PDF Adobe Portable Document Format.
XPS XML Paper Specification Format.
SVG Scalable Vector Graphics Format.
TIFF Tagged Image File Format
PNG Portable Network Graphics Format
BMP Bitmap Image Format
EMF Enhanced Metafile Format
JPEG JPEG is a type of image format that is saved using the method of lossy compression.
GIF Graphical Interchange Format
MARKDOWN Represents a markdown document.
SXC An XML based format used by OpenOffice and StarOffice
FODS This is an Open Document format stored as flat XML.
DOCX A well-known format for Microsoft Word documents that is a combination of XML and binary files.
PPTX The PPTX format is based on the Microsoft PowerPoint open XML presentation file format.
OTS OTS (OpenDocument Spreadsheet).
XML XML file.
HTM HTM file.
TIF Tagged Image File Format
WMF WMF Image Format
PCL Printer Command Language Format
AZW3 AZW3/KF8 File Format
EPUB EPUB File Format
DBF DBF File Format
XHTML XHTML File Format

Architecture

architecture.png

Developer Reference

Manipulate Excel and Other Spreadsheet Files in the Cloud

  • File Manipulation — Upload, download, delete, and manage Excel files stored in the cloud.
  • Formatting — Supports formatting of cells, fonts, colors, and alignment modes in Excel files to cater to users' specific requirements.
  • Data Processing — Powerful functions for data processing including reading, writing, modifying cell data, performing formula calculations, and formatting data.
  • Formula Calculation — Built-in formula engine handles complex formula calculations in Excel and returns accurate results.
  • Chart Manipulation — Create, edit, and delete charts from Excel files for data analysis and visualization needs.
  • Table Processing — Robust processing capabilities for various form operations such as creation, editing, formatting, and conversion, meeting diverse form processing needs.
  • Data Verification — Includes data verification function to set cell data type, range, uniqueness, ensuring data accuracy and integrity.
  • Batch Processing — Supports batch processing of multiple Excel documents, such as batch format conversion, data extraction, and style application.
  • Import/Export — Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
  • Security Management — Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.

Features & Enhancements in Version v26.7

Full list of issues covering all changes in this release:

Summary Category
Fix AutoFitsCanAutoFitsAttribute value data type. Bug
Support for the calculation formula in Aspose.Cells Cloud 4.0 Web APIs. New Feature
Support for the smart template in Aspose.Cells Cloud 4.0 Web APIs. New Feature
Fix calc error about MathCalculate Web API. Bug

Available SDKs

The Aspose.Cells Cloud SDK is available in multiple popular programming languages, enabling developers to integrate spreadsheet processing capabilities across various development environments.

Go Go

Java Java

.NET .NET

Node.js Node.js

Perl Perl

PHP PHP

Python Python

Ruby Ruby

Release History

中文

Aspose.Cells Cloud SDK for PHP 是一个云原生 REST API,使 PHP 开发者能够创建读取编辑转换修复电子表格文件 — 包括 ExcelXLSXLSXXLSBXLSM)、OpenDocument 电子表格ODS)、CSVTSVJSONHTMLPDF 等 — 且无需安装 Microsoft Excel 或 Office

基于 Aspose.Cells Cloud Web API 构建,此 MIT 许可的 SDK 支持高级电子表格操作,例如:

  • 单元格格式化、公式和数据验证
  • 数据透视表、图表、超链接和批注
  • 条件格式和智能标记
  • 工作表合并、拆分和保护
  • 批量处理和背景去除

它与 AWSMicrosoft AzureGoogle Cloud 无缝集成,确保高可用性可扩展性数据完整性。非常适合无服务器应用、微服务和云自动化工作流。

快速入门指南

要开始使用 Aspose.Cells Cloud,您需要执行以下操作:

  1. Aspose for Cloud 注册账户以获取您的应用程序凭据。

  2. Packagist 安装 Aspose.Cells Cloud PHP 包。

    要通过 Composer 安装 Aspose.Cells Cloud,请按照以下步骤操作:

    • 将 Aspose.Cells Cloud 作为依赖项添加到您的 composer.json 文件中:
    {
      "require": {
        "aspose/cells-cloud": "^26.7.0"
      }
    }
    • 运行 Composer 以安装 Aspose.Cells Cloud SDK:
    composer install
    • 在您的 PHP 代码中包含 Composer 的自动加载器:
    require 'vendor/autoload.php';
    • 您现在可以在 PHP 项目中使用 Aspose.Cells Cloud 了。
  3. 使用下面提供的转换代码作为参考来添加或修改您的应用程序。

使用 PHP 转换 Excel 文件

<?php
require_once('vendor/autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PutConvertWorkbookRequest;

#从 https://dashboard.aspose.cloud/#/applications 获取 CellsCloudClientId
#从 https://dashboard.aspose.cloud/#/applications 获取 CellsCloudClientSecret
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$response = $cellsApi->convertSpreadsheet(new \Aspose\Cells\Cloud\Request\ConvertSpreadsheetRequest( 'examples/EmployeeSalesSummary.xlsx', 'pdf'),"EmployeeSalesSummary.pdf");

支持的文件格式

格式 描述 加载 保存
XLS Excel 95/5.0 - 2003 工作簿。
XLSX Office Open XML SpreadsheetML 工作簿或模板文件(带或不带宏)。
XLSB Excel 二进制工作簿。
XLSM Excel 启用宏的工作簿。
XLT Excel 97 - Excel 2003 模板。
XLTX Excel 模板。
XLTM Excel 启用宏的模板。
XLAM Excel 启用宏的加载项文件,用于向 Excel 添加新功能。
CSV CSV(逗号分隔值)文件。
TSV TSV(制表符分隔值)文件。
TXT 分隔的纯文本文件。
HTML HTML 格式。
MHTML MHTML 文件。
ODS ODS(OpenDocument 电子表格)。
Numbers 由 Apple "Numbers" 应用程序创建的文档,该应用程序是 Apple iWork 办公套件的一部分。
JSON JavaScript 对象表示法
DIF 数据交换格式。
PDF Adobe 便携式文档格式。
XPS XML 纸张规范格式。
SVG 可缩放矢量图形格式。
TIFF 标记图像文件格式
PNG 便携式网络图形格式
BMP 位图图像格式
EMF 增强型图元文件格式
JPEG JPEG 是一种使用有损压缩方法保存的图像格式。
GIF 图形交换格式
MARKDOWN 表示 Markdown 文档。
SXC OpenOffice 和 StarOffice 使用的基于 XML 的格式
FODS 以平面 XML 存储的 Open Document 格式。
DOCX Microsoft Word 文档的常用格式,结合了 XML 和二进制文件。
PPTX 基于 Microsoft PowerPoint 开放 XML 演示文稿文件格式。
OTS OTS(OpenDocument 电子表格模板)。
XML XML 文件。
HTM HTM 文件。
TIF 标记图像文件格式
WMF WMF 图像格式
PCL 打印机命令语言格式
AZW3 AZW3/KF8 文件格式
EPUB EPUB 文件格式
DBF DBF 文件格式
XHTML XHTML 文件格式

架构

architecture.png

版本 v26.7 中的功能与增强

此版本中所有变更的完整列表:

摘要 类别
修复 AutoFitsCanAutoFitsAttribute 值数据类型。 Bug
支持 Aspose.Cells Cloud 4.0 Web API 中的计算公式。 新功能
支持 Aspose.Cells Cloud 4.0 Web API 中的智能模板。 新功能
修复 MathCalculate Web API 的计算错误。 Bug

日本語

Aspose.Cells Cloud SDK for PHP は、PHP 開発者が ExcelXLSXLSXXLSBXLSM)、OpenDocument スプレッドシートODS)、CSVTSVJSONHTMLPDF などのスプレッドシートファイルを作成読み取り編集変換修復できるクラウドネイティブ REST API です。Microsoft Excel や Office のインストールは不要です

Aspose.Cells Cloud Web API 上に構築されたこの MIT ライセンスの SDK は、次のような高度なスプレッドシート操作をサポートしています:

  • セルの書式設定、数式、データ検証
  • ピボットテーブル、グラフ、ハイパーリンク、コメント
  • 条件付き書式とスマートマーカー
  • ワークシートの結合、分割、保護
  • バッチ処理と背景除去

AWSMicrosoft AzureGoogle Cloud とシームレスに統合され、高可用性スケーラビリティデータ整合性を確保します。サーバーレスアプリ、マイクロサービス、クラウド自動化ワークフローに最適です。

クイックスタートガイド

Aspose.Cells Cloud を始めるには、以下の手順に従ってください:

  1. Aspose for Cloud でアカウントを作成し、アプリケーションの認証情報を取得します。

  2. Packagist から Aspose.Cells Cloud PHP パッケージをインストールします。

    Composer を使用して Aspose.Cells Cloud をインストールするには、次の手順に従ってください:

    • composer.json ファイルに Aspose.Cells Cloud を依存関係として追加します:
    {
      "require": {
        "aspose/cells-cloud": "^26.7.0"
      }
    }
    • Composer を実行して Aspose.Cells Cloud SDK をインストールします:
    composer install
    • PHP コードに Composer のオートローダーを含めます:
    require 'vendor/autoload.php';
    • これで PHP プロジェクトで Aspose.Cells Cloud を使用する準備が整いました。
  3. 以下の変換コードを参考に、アプリケーションを追加または変更してください。

PHP を使用して Excel ファイルを変換する

<?php
require_once('vendor/autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PutConvertWorkbookRequest;

#https://dashboard.aspose.cloud/#/applications から CellsCloudClientId を取得
#https://dashboard.aspose.cloud/#/applications から CellsCloudClientSecret を取得
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$response = $cellsApi->convertSpreadsheet(new \Aspose\Cells\Cloud\Request\ConvertSpreadsheetRequest( 'examples/EmployeeSalesSummary.xlsx', 'pdf'),"EmployeeSalesSummary.pdf");

サポートされているファイル形式

形式 説明 読み込み 保存
XLS Excel 95/5.0 - 2003 ワークブック。
XLSX Office Open XML SpreadsheetML ワークブックまたはテンプレートファイル(マクロあり/なし)。
XLSB Excel バイナリワークブック。
XLSM Excel マクロ有効ワークブック。
XLT Excel 97 - Excel 2003 テンプレート。
XLTX Excel テンプレート。
XLTM Excel マクロ有効テンプレート。
XLAM Excel に新しい関数を追加するためのマクロ有効アドインファイル。
CSV CSV(カンマ区切り値)ファイル。
TSV TSV(タブ区切り値)ファイル。
TXT 区切り形式のプレーンテキストファイル。
HTML HTML 形式。
MHTML MHTML ファイル。
ODS ODS(OpenDocument スプレッドシート)。
Numbers Apple iWork オフィススイートの一部である Apple "Numbers" アプリケーションで作成されたドキュメント。
JSON JavaScript Object Notation
DIF Data Interchange Format。
PDF Adobe Portable Document Format。
XPS XML Paper Specification Format。
SVG Scalable Vector Graphics Format。
TIFF Tagged Image File Format
PNG Portable Network Graphics Format
BMP Bitmap Image Format
EMF Enhanced Metafile Format
JPEG JPEG は非可逆圧縮方式で保存される画像形式です。
GIF Graphical Interchange Format
MARKDOWN Markdown ドキュメントを表します。
SXC OpenOffice および StarOffice で使用される XML ベースの形式
FODS フラット XML として保存された Open Document 形式。
DOCX XML とバイナリファイルの組み合わせである Microsoft Word ドキュメントのよく知られた形式。
PPTX Microsoft PowerPoint オープン XML プレゼンテーションファイル形式に基づいています。
OTS OTS(OpenDocument スプレッドシートテンプレート)。
XML XML ファイル。
HTM HTM ファイル。
TIF Tagged Image File Format
WMF WMF Image Format
PCL Printer Command Language Format
AZW3 AZW3/KF8 File Format
EPUB EPUB File Format
DBF DBF File Format
XHTML XHTML File Format

アーキテクチャ

architecture.png

バージョン v26.7 の機能と改善点

このリリースのすべての変更を含む問題の完全なリスト:

概要 カテゴリ
AutoFitsCanAutoFitsAttribute 値のデータ型を修正。 Bug
Aspose.Cells Cloud 4.0 Web API での計算式をサポート。 New Feature
Aspose.Cells Cloud 4.0 Web API でのスマートテンプレートをサポート。 New Feature
MathCalculate Web API の計算エラーを修正。 Bug

Deutsch

Aspose.Cells Cloud SDK for PHP ist eine cloud-native REST-API, die PHP-Entwicklern ermöglicht, Tabellenkalkulationsdateien zu erstellen, lesen, bearbeiten, konvertieren und reparieren — einschließlich Excel (XLS, XLSX, XLSB, XLSM), OpenDocument Spreadsheet (ODS), CSV, TSV, JSON, HTML, PDF und mehr — und das alles ohne dass Microsoft Excel oder Office installiert sein muss.

Aufbauend auf der Aspose.Cells Cloud Web API unterstützt dieses MIT-lizenzierte SDK fortgeschrittene Tabellenkalkulationsoperationen wie:

  • Zellformatierung, Formeln und Datenvalidierung
  • Pivot-Tabellen, Diagramme, Hyperlinks und Kommentare
  • Bedingte Formatierung und Smart Marker
  • Arbeitsblattzusammenführung, -aufteilung und -schutz
  • Stapelverarbeitung und Hintergrundentfernung

Es integriert sich nahtlos mit AWS, Microsoft Azure und Google Cloud und gewährleistet hohe Verfügbarkeit, Skalierbarkeit und Datenintegrität. Ideal für serverlose Anwendungen, Microservices und Cloud-Automatisierungsworkflows.

Schnellstart-Anleitung

Um mit Aspose.Cells Cloud zu beginnen, gehen Sie wie folgt vor:

  1. Registrieren Sie sich bei Aspose for Cloud für ein Konto, um Ihre Anwendungsdaten zu erhalten.

  2. Installieren Sie das Aspose.Cells Cloud PHP-Paket von Packagist.

    So installieren Sie Aspose.Cells Cloud über Composer:

    • Fügen Sie Aspose.Cells Cloud als Abhängigkeit zu Ihrer composer.json-Datei hinzu:
    {
      "require": {
        "aspose/cells-cloud": "^26.7.0"
      }
    }
    • Führen Sie Composer aus, um das Aspose.Cells Cloud SDK zu installieren:
    composer install
    • Binden Sie den Composer-Autoloader in Ihren PHP-Code ein:
    require 'vendor/autoload.php';
    • Sie können Aspose.Cells Cloud nun in Ihrem PHP-Projekt verwenden.
  3. Verwenden Sie den unten bereitgestellten Konvertierungscode als Referenz, um Ihre Anwendung zu ergänzen oder zu ändern.

Excel-Datei mit PHP konvertieren

<?php
require_once('vendor/autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PutConvertWorkbookRequest;

#CellsCloudClientId von https://dashboard.aspose.cloud/#/applications abrufen
#CellsCloudClientSecret von https://dashboard.aspose.cloud/#/applications abrufen
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$response = $cellsApi->convertSpreadsheet(new \Aspose\Cells\Cloud\Request\ConvertSpreadsheetRequest( 'examples/EmployeeSalesSummary.xlsx', 'pdf'),"EmployeeSalesSummary.pdf");

Unterstützte Dateiformate

Format Beschreibung Laden Speichern
XLS Excel 95/5.0 - 2003 Arbeitsmappe.
XLSX Office Open XML SpreadsheetML Arbeitsmappe oder Vorlage, mit oder ohne Makros.
XLSB Excel Binär-Arbeitsmappe.
XLSM Excel Makro-aktivierte Arbeitsmappe.
XLT Excel 97 - Excel 2003 Vorlage.
XLTX Excel Vorlage.
XLTM Excel Makro-aktivierte Vorlage.
XLAM Eine Excel-Makro-Add-In-Datei, die verwendet wird, um Excel neue Funktionen hinzuzufügen.
CSV CSV (Comma Separated Value) Datei.
TSV TSV (Tab-getrennte Werte) Datei.
TXT Getrennte reine Textdatei.
HTML HTML-Format.
MHTML MHTML-Datei.
ODS ODS (OpenDocument Spreadsheet).
Numbers Das Dokument wird von Apples "Numbers"-Anwendung erstellt, die Teil von Apples iWork-Office-Suite ist.
JSON JavaScript Object Notation
DIF Data Interchange Format.
PDF Adobe Portable Document Format.
XPS XML Paper Specification Format.
SVG Scalable Vector Graphics Format.
TIFF Tagged Image File Format
PNG Portable Network Graphics Format
BMP Bitmap Image Format
EMF Enhanced Metafile Format
JPEG JPEG ist ein Bildformat, das mit verlustbehafteter Komprimierung gespeichert wird.
GIF Graphical Interchange Format
MARKDOWN Repräsentiert ein Markdown-Dokument.
SXC Ein XML-basiertes Format, das von OpenOffice und StarOffice verwendet wird
FODS Ein Open Document-Format, das als flaches XML gespeichert wird.
DOCX Ein bekanntes Format für Microsoft Word-Dokumente, das eine Kombination aus XML- und Binärdateien ist.
PPTX Das PPTX-Format basiert auf dem offenen XML-Präsentationsdateiformat von Microsoft PowerPoint.
OTS OTS (OpenDocument Spreadsheet-Vorlage).
XML XML-Datei.
HTM HTM-Datei.
TIF Tagged Image File Format
WMF WMF Image Format
PCL Printer Command Language Format
AZW3 AZW3/KF8 File Format
EPUB EPUB File Format
DBF DBF File Format
XHTML XHTML File Format

Architektur

architecture.png

Funktionen & Verbesserungen in Version v26.7

Vollständige Liste der Issues zu allen Änderungen in diesem Release:

Zusammenfassung Kategorie
Datentyp des AutoFitsCanAutoFitsAttribute-Werts behoben. Bug
Unterstützung für Berechnungsformeln in Aspose.Cells Cloud 4.0 Web APIs. New Feature
Unterstützung für intelligente Vorlagen in Aspose.Cells Cloud 4.0 Web APIs. New Feature
Berechnungsfehler bei der MathCalculate Web API behoben. Bug

Available SDKs

The Aspose.Cells Cloud SDK is available in multiple popular programming languages, enabling developers to integrate spreadsheet processing capabilities across various development environments.

Go Go

Java Java

.NET .NET

Node.js Node.js

Perl Perl

PHP PHP

Python Python

Ruby Ruby

Release History