2388 |
jpm |
1 |
**************************************************************************************
|
|
|
2 |
* PHPExcel
|
|
|
3 |
*
|
|
|
4 |
* Copyright (c) 2006 - 2011 PHPExcel
|
|
|
5 |
*
|
|
|
6 |
* This library is free software; you can redistribute it and/or
|
|
|
7 |
* modify it under the terms of the GNU Lesser General Public
|
|
|
8 |
* License as published by the Free Software Foundation; either
|
|
|
9 |
* version 2.1 of the License, or (at your option) any later version.
|
|
|
10 |
*
|
|
|
11 |
* This library is distributed in the hope that it will be useful,
|
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
14 |
* Lesser General Public License for more details.
|
|
|
15 |
*
|
|
|
16 |
* You should have received a copy of the GNU Lesser General Public
|
|
|
17 |
* License along with this library; if not, write to the Free Software
|
|
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
19 |
*
|
|
|
20 |
* @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
|
|
|
21 |
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
|
|
22 |
* @version ##VERSION##, ##DATE##
|
|
|
23 |
**************************************************************************************
|
|
|
24 |
|
|
|
25 |
Requirements
|
|
|
26 |
------------
|
|
|
27 |
|
|
|
28 |
The following requirements should be met prior to using PHPExcel:
|
|
|
29 |
* PHP version 5.2.0 or higher
|
|
|
30 |
* PHP extension php_zip enabled *)
|
|
|
31 |
* PHP extension php_xml enabled
|
|
|
32 |
* PHP extension php_gd2 enabled (if not compiled in)
|
|
|
33 |
|
|
|
34 |
*) php_zip is only needed by PHPExcel_Reader_Excel2007, PHPExcel_Writer_Excel2007,
|
|
|
35 |
PHPExcel_Reader_OOCalc. In other words, if you need PHPExcel to handle .xlsx or .ods
|
|
|
36 |
files you will need the zip extension, but otherwise not.
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
Installation instructions
|
|
|
41 |
-------------------------
|
|
|
42 |
|
|
|
43 |
Installation is quite easy: copy the contents of the Classes folder to any location
|
|
|
44 |
in your application required.
|
|
|
45 |
|
|
|
46 |
Example:
|
|
|
47 |
|
|
|
48 |
If your web root folder is /var/www/ you may want to create a subfolder called
|
|
|
49 |
/var/www/Classes/ and copy the files into that folder so you end up with files:
|
|
|
50 |
|
|
|
51 |
/var/www/Classes/PHPExcel.php
|
|
|
52 |
/var/www/Classes/PHPExcel/Calculation.php
|
|
|
53 |
/var/www/Classes/PHPExcel/Cell.php
|
|
|
54 |
...
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
Getting started
|
|
|
59 |
---------------
|
|
|
60 |
|
|
|
61 |
A good way to get started is to run some of the tests included in the download.
|
|
|
62 |
Copy the "Examples" folder next to your "Classes" folder from above so you end up with:
|
|
|
63 |
|
|
|
64 |
/var/www/Examples/01simple.php
|
|
|
65 |
/var/www/Examples/02types.php
|
|
|
66 |
...
|
|
|
67 |
|
|
|
68 |
Start running the test by pointing your browser to the test scripts:
|
|
|
69 |
|
|
|
70 |
http://example.com/Examples/01simple.php
|
|
|
71 |
http://example.com/Examples/02types.php
|
|
|
72 |
...
|
|
|
73 |
|
|
|
74 |
Note: It may be necessary to modify the include/require statements at the beginning of
|
|
|
75 |
each of the test scripts if your "Classes" folder from above is named differently.
|