I used the PEAR package with great success, but there are some limitations when implementing complex formulas. This has something to do with how Excel stores the formula along with the last calculated result. Sometimes, although the formula is correct, when you open the sheet for the first time, the cells are displayed as empty. When a cell has focus and then loses focus, the calculation is performed and the cell fills.
The library is actually a port from the perl library, which is a little more complete, but has the same problems.
source share