XLS XLSB XLSX XLSM ODS
Aspose.Cells  for PHP via Java
XLSX

Repair XLSX file in PHP

Build your own PHP application to repair xlsx files using Aspose.Cells for PHP via Java library.

Repair XLSX File Using PHP

How do I repair xlsx file? With Aspose.Cells for PHP via Java library, you can easily repair XLSX file programmatically with a few lines of code. Aspose.Cells for PHP via Java is capable of building cross-platform applications with the ability to generate, modify, convert, render and print all Excel files. PHP Excel API not only convert between spreadsheet formats, it can also render Excel files as images, PDF, HTML, ODS, CSV, SVG, JSON, WORD, PPT and more, thus making it a perfect choice to exchange documents in industry-standard formats.

How to Repair xlsx file in PHP

Need to repair xlsx file programmatically? PHP developers can easily load & repair xlsx file in just a few lines of code.

  • Load XLSX file by creating an instance of Workbook.
  • Save the workbook, the corrupted xlsx file will be repaired.
Sample Code to repair XLSX file
Input file
Save as
   
                                   

	
require_once("Java.inc"); 
require_once("lib/aspose.cells.php"); 
use aspose\cells;
use aspose\cells\Workbook; 
$workbook = new Workbook("Input.xlsx");
$workbook->save("Output.pdf");
	 
                
            

PHP library to repair XLSX file

There are three options to install “Aspose.Cells for PHP via Java” onto your system. Please choose one that resembles your needs and follow the step-by-step instructions:

  1. Install Aspose.Cells for PHP via Java in Windows. See Documentation
  2. Install Aspose.Cells for PHP via Java in Linux. See Documentation
  3. Install Aspose.Cells for PHP via Java in macOS. See Documentation

System Requirements

Aspose.Cells for PHP via Java is platform independent API and can be used on any platform (Windows, Linux, MacOS etc.) where PHP 7 or greater versions is installed. The machine must have Oracle JDK 7 or greater versions before setting up the installation.

XLSX What is XLSX File Format?

XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Based on structure organized according to the Open Packaging Conventions as outlined in Part 2 of the OOXML standard ECMA-376, the new format is a zip package that contains a number of XML files. The underlying structure and files can be examined by simply unzipping the .xlsx file.

Read More

Repair Other Supported Excel Formats

Using PHP, one can easily repair other Excel format files.

Repair ODS (OpenDocument Spreadsheet File)
Repair XLS (Excel Binary Format)
Repair XLSB (Binary Excel Workbook File)
Repair XLSM (Spreadsheet File)
Repair XLSX (OOXML Excel File)