|
1 | 1 | # PHP Library for Excel File Formats
|
2 | 2 |
|
3 |
| -Aspose.Cells for PHP via Java is a feature-rich API to create, process, manipulate & convert Excel & OpenOffice spreadsheets using PHP. API offers Excel file generation, conversion, worksheets styling, Pivot Table & chart management & rendering, reliable formula calculation engine and much more - all without any dependency on Office Automation or Microsoft Excel®. |
| 3 | +[Aspose.Cells for PHP via Java](https://products.aspose.com/cells/php-java) is a feature-rich API to create, process, manipulate & convert Excel & OpenOffice spreadsheets using PHP. API offers Excel file generation, conversion, worksheets styling, Pivot Table & chart management & rendering, reliable formula calculation engine and much more - all without any dependency on Office Automation or Microsoft Excel®. |
| 4 | + |
| 5 | +<p align="center"> |
| 6 | + <a title="Download ZIP" href="https://github.com/aspose-cells/Aspose.Cells-for-PHP-via-Java/archive/master.zip"> |
| 7 | + <img src="https://github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" alt="Download Aspose.Cells for PHP via Java Examples, Plugins and Showcases" /> |
| 8 | + </a> |
| 9 | +</p> |
4 | 10 |
|
5 | 11 | ## PHP Excel Library Features
|
6 | 12 |
|
7 |
| -- Convert spreadsheets to different formats including PDF, XPS, images & other Excel file formats. |
8 |
| -- Generate Excel files via API or using templates. |
9 |
| -- Create Pivot Tables, charts, sparklines & conditional formatting rules on-the-fly. |
10 |
| -- Refresh existing charts & convert charts to images or PDF. |
11 |
| -- Create & manipulate comments & hyperlinks. |
12 |
| -- Set complex formulas & calculate results via API. |
13 |
| -- Set protection on workbooks, worksheets, cells, columns or rows. |
14 |
| -- Create & manipulate named ranges. |
15 |
| -- Populate worksheets through Smart Markers. |
| 13 | +### File Formats and Conversions |
| 14 | + |
| 15 | +- High quality conversions from Excel to other supported formats. |
| 16 | +- Convert any Spreadsheet to PDF with high fidelity. |
| 17 | +- Load and save documents in the tab delimited file format. |
| 18 | +- Easily extract worksheet text by saving in plain text format. |
| 19 | + |
| 20 | +### Rendering |
| 21 | + |
| 22 | +- Render Excel worksheet pages to raster images & spreadsheet pages to vector images. |
| 23 | +- Specify image resolution, quality, compression and other options. |
| 24 | + |
| 25 | +### Spreadsheet Content Features |
| 26 | + |
| 27 | +- Copy an existing worksheet along with included images, charts & other objects. |
| 28 | +- Implement data sorting, data validations and smart markers. |
| 29 | +- Preserve or remove addin, VBA, macros. |
| 30 | +- Add, preserve or extract OLE objects from the spreadsheets. |
| 31 | +- Apply file encryption. |
| 32 | + |
| 33 | +### Spreadsheet Formatting Features |
| 34 | + |
| 35 | +- Apply formatting (fonts, colors, effects, border etc.) to chracters in the cells. |
| 36 | +- Apply format settings on a worksheet, row, column as well as a range of cells. |
| 37 | + |
| 38 | +### Page Setup Features |
| 39 | + |
| 40 | +- Configure page orientation, scaling as well as paper size. |
| 41 | +- Specify page margins and page centering. |
16 | 42 |
|
17 | 43 | ## Read & Write Excel Files
|
18 | 44 |
|
19 |
| -**Microsoft Excel:** XLS, XLSX, XLSB, XLTX, XLTM, XLSM, XML |
20 |
| -**OpenOffice:** ODS |
21 |
| -**Text:** CSV, Tab-Delimited, TXT |
| 45 | +**Microsoft Excel:** XLS, XLSX, XLSB, XLTX, XLTM, XLSM, XML\ |
| 46 | +**OpenOffice:** ODS\ |
| 47 | +**Text:** CSV, Tab-Delimited, TXT\ |
22 | 48 | **Web:** HTML, MHTML
|
23 | 49 |
|
24 | 50 | ## Save Excel Files As
|
25 | 51 |
|
26 |
| -**Fixed Layout:** PDF, XPS |
| 52 | +**Fixed Layout:** PDF, XPS\ |
27 | 53 | **Images:** JPEG, PNG, BMP, SVG, TIFF, GIF, EMF
|
28 | 54 |
|
29 |
| -## Getting Started with Aspose.Cells for PHP via Java |
30 |
| - |
31 |
| -Aspose.Cells for PHP via Java consists of 2 individual parts, the script wrapper (aspose.cells.php) and Aspose.Cells for Java. These components communicate via PHP/Java Bridge whereas both require separate environments & processes for execution. |
32 |
| - |
33 |
| -### Prerequisites |
34 |
| -1. JDK |
35 |
| -2. PHP/Java Bridge |
36 |
| -3. Web Server like Tomcat |
37 |
| -4. PHP |
| 55 | +## System Requirements |
38 | 56 |
|
39 |
| -### Installation |
| 57 | +Aspose.Cells for PHP via Java is platform independent API and can be used on any platform (Windows, Linux, MacOS etc.) where [PHP](http://www.php.net/downloads.php) 7 or greater versions is installed. The machine must have Oracle JDK 7 or greater versions before setting up the installation. |
40 | 58 |
|
41 |
| -1. Install Tomcat on any location such as `\java\apache-tomcat-9.0.24`. |
42 |
| -2. Copy JavaBridge.war to `webapps` folder of Tomcat such as `\java\apache-tomcat-9.0.24\webapps`. |
43 |
| -3. Copy aspose-cells-xx.x.jar and bcprov-jdk15on-xxx.jar to `lib` folder such as `\java\apache-tomcat-9.0.24\lib`. |
44 |
| -4. Run `\bin\startup.bat`, JavaBridge.war will be deployed to `\java\apache-tomcat-9.0.24\webapps\JavaBridge`. |
45 |
| -5. Test http://localhost:8080/JavaBridge/test.php to ensure that PHP works fine. |
46 |
| -6. Copy aspose.cells.php and example.php to `\java\apache-tomcat-9.0.24\webapps\JavaBridge`. |
47 |
| -7. Open http://localhost:8080/JavaBridge/example.php or create your own PHP file as follows. |
| 59 | +## Get Started with Aspose.Cells for PHP via Java |
48 | 60 |
|
49 |
| -You will find the Jar and PHP library in `vendor/aspose/cells` folder. |
| 61 | +Aspose.Cells for PHP via Java consists of two individual parts, the script wrapper (aspose.cells.php) and Aspose.Cells for Java. These components communicate via PHP/Java Bridge whereas both require separate environments & processes for execution. For the detailed instructions please visit [Installation and Usage](https://docs.aspose.com/display/cellsjava/Setup+and+Installation+Guidelines#SetupandInstallationGuidelines-InstallationandUsage) documentation page. |
50 | 62 |
|
51 |
| -### Sample Usage |
| 63 | +## Create a New XLSX File and Insert Data using Java |
52 | 64 |
|
53 | 65 | ```php
|
54 | 66 | <?php
|
55 | 67 | require_once("http://localhost:8080/JavaBridge/java/Java.inc");
|
56 | 68 | require_once("aspose.cells.php");
|
57 |
| - |
| 69 | + |
58 | 70 | use aspose\cells;
|
59 | 71 | use aspose\cells\Workbook;
|
60 | 72 | use aspose\cells\CellsHelper;
|
61 | 73 | use aspose\cells\Color;
|
62 |
| - |
| 74 | + |
63 | 75 | $workbook = new Workbook();
|
64 | 76 | $workbook->getWorksheets()->get("Sheet1")->getCells()->get("A1")->putValue("testing...");
|
65 | 77 | $workbook->save("result.xlsx");
|
66 |
| - |
| 78 | + |
67 | 79 | echo aspose\cells\BorderType::BOTTOM_BORDER;
|
68 | 80 | echo "\n";
|
69 |
| - |
| 81 | + |
70 | 82 | echo "CellsHelper version: ".CellsHelper::getVersion();
|
71 | 83 | echo "\n";
|
72 | 84 | ?>
|
73 | 85 | ```
|
74 | 86 |
|
75 |
| -[Product Page](https://products.aspose.com/cells/php-java) | [Documentation](https://docs.aspose.com/display/cellsphpjava/Aspose.Cells+for+PHP+via+Java+Home) | [API Reference](https://apireference.aspose.com/php/cells) | [Code Examples](https://github.com/aspose-cells/Aspose.Cells-for-Java) | [Blog](https://blog.aspose.com/category/cells/) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license) |
| 87 | +[Product Page](https://products.aspose.com/cells/php-java) | [Documentation](https://docs.aspose.com/display/cellsphpjava/Aspose.Cells+for+PHP+via+Java+Home) | [API Reference](https://apireference.aspose.com/php/cells) | [Code Examples](https://github.com/aspose-cells/Aspose.Cells-for-PHP-via-Java) | [Blog](https://blog.aspose.com/category/cells/) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license) |
0 commit comments