Juan Treminio
611a091290
getRowIterator() is on $sheet variable
2015-07-29 22:04:47 -05:00
Adrien Loison
40a86c4b6c
Merge pull request #77 from box/fix_csv_reader_empty_last_line
...
Fix CSV reader when last line is empty
v2.0.1
2015-07-29 10:27:44 -07:00
Adrien Loison
8a3b895afc
Fix CSV reader when last line is empty
...
If the last line was empty, it would create an infinite loop...
2015-07-29 10:17:51 -07:00
Adrien Loison
e3f7ecfa64
Merge pull request #78 from box/fix_xml_reader_open_overriding
...
Fix XMLReader open() overriding
2015-07-29 10:17:34 -07:00
Adrien Loison
93d7aafe8b
Fix XMLReader open() overriding
...
This is to avoid a warning in PHP7 (and also because that's how it should be!)
2015-07-29 09:59:33 -07:00
Adrien Loison
dc53b6aa20
Update README.md
...
Change Travis badge from PNG to SVG
2015-07-27 22:26:36 -07:00
Adrien Loison
30aa8970d5
Update README.md
...
Bump "require" version in preparation of the 2.0.0 release
v2.0.0
2015-07-27 22:21:33 -07:00
Adrien Loison
2ec12dd16b
Merge pull request #76 from box/csv_multiple_encodings
...
Csv multiple encodings
2015-07-27 21:02:52 -07:00
Adrien Loison
fd84c6f1c8
Update README
2015-07-27 20:59:21 -07:00
Adrien Loison
5e1cfbfdbd
Attempt to convert the non UTF-8 strings to UTF-8
2015-07-27 20:59:12 -07:00
Adrien Loison
d946f12951
Support for multiple BOMs depending on the selected encoding
2015-07-27 09:36:55 -07:00
Adrien Loison
03d1917080
Merge pull request #75 from box/xml_reader_wrappers
...
Add wrappers around XMLReader and SimpleXMLElement
2015-07-27 09:36:13 -07:00
Adrien Loison
1ba10ed2b0
Add wrappers around XMLReader and SimpleXMLElement to improve error handling
2015-07-27 00:49:43 -07:00
Adrien Loison
be3932af18
Merge pull request #73 from box/iterators
...
Moved readers to iterators
2015-07-27 00:26:26 -07:00
Adrien Loison
37d87a8a27
Fix various problems
2015-07-27 00:23:18 -07:00
Adrien Loison
86a4c3790a
Adding more tests
2015-07-26 23:53:49 -07:00
Adrien Loison
2345a80784
Update README for iterators
2015-07-26 23:53:18 -07:00
Adrien Loison
15aab7902a
Factory should return Interface
2015-07-26 23:53:17 -07:00
Adrien Loison
c672558a18
Update Writer folder structure to match Reader new structure
2015-07-26 23:53:17 -07:00
Adrien Loison
c52dd7bde8
Remove old reader files
2015-07-26 23:53:17 -07:00
Adrien Loison
ae3ee357ff
Moved readers to iterators
...
Instead of the hasNext() / next() syntax, readers now implements the PHP iterator pattern.
It allows readers to be used with a foreach() loop.
All readers now share the same structure (CSV is treated as having exactly one sheet):
- one concrete Reader
- one SheetIterator, exposed by the Reader
- one or more Sheets, returned at every iteration
- one RowIterator, exposed by the Sheet
Introducing the concept of sheets for CSV may be kind of confusing but it makes Spout way more consistent.
Also, this confusion may be resolved by creating a wrapper around the readers if needed.
-- This commit does not delete the old files, not change the folder structure for Writers. This will be done in another commit.
2015-07-26 23:53:17 -07:00
Adrien Loison
322c3d0738
Merge pull request #74 from box/scrutinizer
...
Use Scrutinizer instead of Coveralls
2015-07-26 23:52:30 -07:00
Adrien Loison
0adbf439f5
Use Scrutinizer instead of Coveralls
2015-07-26 23:49:19 -07:00
Adrien Loison
ad6b881685
Update README.md
2015-07-16 23:16:31 -07:00
Adrien Loison
d410224e2d
Merge pull request #71 from box/manual_autoloader
...
Autoloader for manual installation
2015-07-16 00:51:50 -07:00
Adrien Loison
79982a6107
Autoloader for manual installation
...
Added PSR4 Autoloader
Updated README with manual installation instructions
2015-07-16 00:46:15 -07:00
Adrien Loison
6ae79b63b3
Merge pull request #67 from box/caching_strategies
...
Caching strategies
v1.1.0
2015-07-14 10:58:37 -07:00
Adrien Loison
277b665dad
Merge pull request #68 from box/add_coverage_abstract_reader
...
Improve coverage AbstractReader
2015-07-14 10:55:22 -07:00
Adrien Loison
b0c7c6ca84
Improve coverage AbstractReader
2015-07-14 10:48:03 -07:00
Adrien Loison
494c506d56
Add logic to automatically select the best caching strategy
...
Based on the number of unique shared strings as well as the available memory amount,
one strategy will be chosen over the other.
The algorithm is based on empirical data and super safe so it may need to be tuned.
2015-07-14 02:26:01 -07:00
Adrien Loison
334f7087da
Add in-memory caching strategy for shared strings
...
In-memory implementation using SplFixedArray
Updated code and tests to support errors when reading XML nodes (useful when reading XML files used for attacks)
Removed LIBXML_NOENT option (which DOES substitute entities...)
Added test for Quadratic Blowup attack
2015-07-13 00:29:59 -07:00
Adrien Loison
2dcb86aae9
Move shared strings caching strategy into its own component
...
This will help implementing different caching strategies:
- file based
- in-memory
2015-07-11 14:12:18 -07:00
Adrien Loison
3edb056286
Merge pull request #60 from Lewiscowles1986/Update-XLSX-Reader
...
Separated getCellValue into multiple functions
v1.0.11
2015-07-06 10:12:35 -07:00
Lewis Cowles
edc0c22009
Update XLSX.php
2015-07-06 12:10:41 +01:00
Adrien Loison
0319e578cb
Update README.md
2015-07-02 16:19:55 -07:00
Lewis
1e2452934c
Additional tests for Cell Types
2015-07-02 19:35:23 +01:00
Lewis
3e1793d852
Changes made to XLSX.php
2015-07-02 17:56:55 +01:00
Lewis Cowles
c1b1bd0b76
Separated getCellValue into multiple functions
...
Author: Lewis Cowles <lewiscowles@me.com>
Committer: Lewis <lewis@chromebook>
modified: src/Spout/Reader/XLSX.php
2015-07-02 17:41:00 +01:00
Adrien Loison
cf239905d7
Merge pull request #61 from box/coveralls_support
...
Adding coveralls.io support
2015-07-01 16:20:46 -07:00
Adrien Loison
7c8f9293cc
Adding coveralls.io support
...
Updated TravisCI config, using:
- http://docs.travis-ci.com/user/languages/php/
- https://github.com/satooshi/php-coveralls#travis-ci
Removed automatic code coverage execution when running phpunit
Added coveralls.io badge
2015-07-01 16:15:58 -07:00
Adrien Loison
503ba97e9d
Merge pull request #59 from box/fix_xlsx_writer_on_windows
...
Fix XLSX Writer on Windows plaftorms
2015-07-01 15:29:10 -07:00
Adrien Loison
b3df57d2e5
Fix XLSX Writer on Windows plaftorms
...
A bug was introduced, preventing Spout to create valid XLSX files on Windows.
This commits reverts the changes that introduced DIRECTORY_SEPARATOR everywhere
and fixes the original issue with the writer by normalizing paths when creating
the zipped file.
2015-07-01 15:24:58 -07:00
Adrien Loison
c6ebf115fc
Merge pull request #58 from box/improve_xml_security
...
Prevent entity loading when reading XML
2015-07-01 14:19:49 -07:00
Adrien Loison
7d922e6776
Prevent entity loading when reading XML
...
Added LIBXML_NOENT option when reading a XML file
libxml_disable_entity_loader(true) cannot be used because it disables
the use of XMLReader::open()... see https://bugs.php.net/bug.php?id=62577
2015-07-01 14:07:15 -07:00
Adrien Loison
d4cf853270
Merge pull request #48 from box/add_support_for_more_cell_types
...
Add support for more cell types
v1.0.10
2015-06-03 11:24:43 -07:00
Adrien Loison
8bac924d48
Add support for more cell types
...
Added proper support for booleans, dates, numbers, errors.
Added unescaping of the read string.
Fixed a bug when cells did not have any values => now returns empty string.
2015-06-03 11:19:21 -07:00
Adrien Loison
591d86cf07
Merge pull request #46 from box/remove_version_from_composer_json
...
Remove version from composer.json
2015-06-02 21:47:09 -07:00
Adrien Loison
ba4a55292d
Remove version from composer.json
2015-06-02 19:48:37 -07:00
Adrien Loison
d617a50b85
Merge pull request #44 from box/bump_to_v1.0.9
...
Bump to version 1.0.9
v1.0.9
2015-05-29 09:50:21 -07:00
Adrien Loison
92981fa80b
Bump to version 1.0.9
2015-05-29 09:42:38 -07:00