Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
5d9dac2
updated ChangeLog
johmue Nov 12, 2014
bc16fd2
Merge remote-tracking branch 'origin'
johmue Jan 8, 2015
6a7dfd0
added tests for ExcelBook::setLocale(), ExcelBook::save() and ExcelBo…
johmue Feb 6, 2015
2f9238f
added github language formatting to README
johmue Feb 6, 2015
200be96
added ./libxl/ sub dir to .gitignore
johmue Feb 6, 2015
e830fb3
added PHP warnings on read/write errors
johmue Feb 6, 2015
aaea6f9
changed formatting: removed double spaces and replaced <tab><backslas…
johmue Feb 6, 2015
84f1b2e
ported extension to PHP7; requires LibXL >3.6.0; removed code fallbac…
johmue Feb 6, 2015
47cb188
updated README
johmue Feb 9, 2015
f21da53
fixes issue with ExcelSheet::addPictureDim() arguments
johmue Mar 5, 2015
99a3db3
removed PHP7 incompatible ENFORCE_SAFE_MODE option for php_stream_ope…
johmue Mar 30, 2015
0a2c7d2
adopted changes from master and updated for libxl 3.6.3
johmue Sep 25, 2015
75ba0a0
force string behaviour with single quote
johmue Nov 6, 2015
e14c430
added test
johmue Nov 6, 2015
74d0b87
fixed type mismatch in is_numeric_string()
johmue Nov 14, 2015
09c97f2
fix a multitude of segfaults
pilif Nov 18, 2015
6e230f5
Merge pull request #1 from pilif/php7
johmue Nov 18, 2015
6430a3b
properly support libxl built from source code
pilif Nov 19, 2015
acc248f
remove license ini settings if they are not needed
pilif Nov 19, 2015
5054ee2
skip trial version related tests on source-code licensed libs
pilif Nov 19, 2015
689ae88
update tests for PHP7
pilif Nov 19, 2015
853bcd0
fix character counts in test output
pilif Nov 19, 2015
6fcd0ba
removed libxml2 dependencies and described a solution for multibyte c…
johmue Nov 29, 2015
cb1eb02
added link to pre-build win binaries
johmue Nov 29, 2015
3264cc2
changed README
johmue Nov 29, 2015
e79bb35
Fix for coredump when passing valid user name and user key with const…
youngvan Mar 17, 2016
fe01dd9
Merge pull request #4 from youngvan/php7
johmue Mar 20, 2016
c6b6fb2
changed type from zend_long to size_t
johmue Mar 20, 2016
810511c
updated README
johmue Mar 20, 2016
e81a522
fixes issue #160
johmue Apr 29, 2016
32d5cac
adresses issue #151
johmue May 8, 2016
438d92d
Merge branch 'php7' of https://github.com/johmue/php_excel into johmu…
iliaal Jun 22, 2016
7b40551
Fixed tests
iliaal Jun 22, 2016
b3979fe
fixed more tests
iliaal Jun 22, 2016
9713144
Use zend_long instead of long
iliaal Jun 23, 2016
ae4ff38
Use PHP's string access macros
iliaal Jun 23, 2016
dec3e0e
Normalize empty string checks
iliaal Jun 23, 2016
9f8948f
removed no longer needed for code php7
iliaal Jun 23, 2016
253c77e
Merge branch 'php7' of https://github.com/pilif/php_excel into pilif-…
iliaal Jun 23, 2016
885c754
news
iliaal Jun 23, 2016
bb3bc50
fixed issue #149
iliaal Jun 23, 2016
34f4557
1.0.2 for php7
iliaal Jun 23, 2016
de8111b
Back to dev
iliaal Jun 23, 2016
d3a245c
Fix for bug #163
Jun 26, 2016
ce01f54
Fixed crash when trying to read an empty file
Jul 4, 2016
77f49b5
Pecl package.xml for issue #124
Jul 4, 2016
a6b8cc4
patch for issue #168
johmue Sep 7, 2016
a0d4b10
Merge pull request #171 from johmue/php7-fix-168
iliaal Sep 7, 2016
d1cb308
initial commit for libxl 3.7.x
johmue Oct 23, 2016
3ada67e
Merge pull request #177 from johmue/php_excel370
iliaal Oct 25, 2016
eeb9a81
Added ExcelFormat::AS_STRING const
Jan 2, 2017
247ce1e
added new methods for LibXL 3.8.0
johmue Apr 23, 2017
e9e9bd7
Revert "Added ExcelFormat::AS_STRING const"
johmue May 1, 2017
0f84588
removed remaining code of PR #183
johmue May 1, 2017
82a2e6d
removed remaining code of PR #183
johmue May 1, 2017
a5936d9
fixes issue #176
johmue Jun 11, 2017
5f3f619
Fix order of parameters for \ExcelAutoFilter::setRef()
xperseguers Oct 15, 2017
4692440
Streamline PHP documentation
xperseguers Oct 15, 2017
bdb8d96
Merge pull request #183 from ederuiter/php7
iliaal Nov 24, 2017
a5c3382
Merge pull request #199 from johmue/libxl380
iliaal Nov 24, 2017
875c128
Merge pull request #205 from johmue/patch-1
iliaal Nov 24, 2017
bc7c715
Merge pull request #218 from xperseguers/bugfix/216-order-of-parameters
iliaal Nov 24, 2017
6e06f9e
Merge pull request #220 from xperseguers/feature/219-streamline-phpdoc
iliaal Nov 24, 2017
0720fca
Fix #241 for PHP7
Jan-E Dec 31, 2018
2961c72
Fix #234 for PHP7
Jan-E Dec 31, 2018
623489d
added new methods Book::getSheetName() and Book::loadInfo()
Jan-E Dec 31, 2018
40b10b5
Merge pull request #1 from Jan-E/php7-issue241
Jan-E Dec 31, 2018
8d78fb6
Merge pull request #2 from Jan-E/php7-issue234
Jan-E Dec 31, 2018
11d742c
Merge pull request #3 from Jan-E/php7-Book-getSheetName-loadInfo
Jan-E Dec 31, 2018
01715d0
Fix https://github.com/iliaal/php_excel/issues/264 Changes for PHP7, …
Jan-E Nov 13, 2020
79ae81b
Merge pull request #7 from Jan-E/issue264
Jan-E Nov 13, 2020
da2fb82
Fix https://github.com/iliaal/php_excel/issues/265 updateNamedRanges …
Jan-E Nov 15, 2020
b697264
Fix borked tests
Jan-E Nov 18, 2020
4a99fb6
Fix https://github.com/iliaal/php_excel/issues/266 Format clone & Fon…
Jan-E Nov 18, 2020
21bf50e
Merge remote-tracking branch 'upstream/php7_with_pulls'
do-io May 11, 2023
59c6977
update ignore
do-io May 11, 2023
c4688e1
Merge pull request #1 from doPhp/jan-e-merged
do-io May 11, 2023
0c15618
git ignore update
do-io May 11, 2023
73c647c
Merge pull request #2 from doPhp/update_ignore
do-io May 11, 2023
12b7d0d
update for version coverage
do-io May 11, 2023
b87af03
ignore .idea
do-io May 11, 2023
6c6d31a
Merge pull request #3 from doPhp/readme_update
do-io May 11, 2023
904321c
Update README.md
do-io May 11, 2023
84b17ae
Merge pull request #4 from doPhp/do-io-patch-1
do-io May 11, 2023
4414464
Update README.md
do-io May 11, 2023
f5d9920
Merge pull request #5 from doPhp/do-io-patch-1
do-io May 11, 2023
8c74736
Create CODE_OF_CONDUCT.md
do-io May 12, 2023
45ca345
Create LICENSE.md
do-io May 12, 2023
0d1e73a
basic files uploaded
do-io May 12, 2023
41b2558
Update CONTRIBUTING.md
do-io May 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ tests/*/*/*.php
tests/*/*/*.exp
tmp-php.ini
libxl/*
.idea/*
/.idea/workspace.xml
116 changes: 116 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Code of Conduct - doPhp/excel

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate,
threatening, offensive, or harmful.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will
communicate reasons for moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at <misconduct@dophp.dev>.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/), version
[1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and
[2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md),
and was generated by [contributing-gen](https://github.com/bttger/contributing-gen).
159 changes: 159 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
<!-- omit in toc -->
# Contributing to doPhp/excel

First off, thanks for taking the time to contribute! ❤️

All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉

> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
> - Star the project
> - Tweet about it
> - Refer this project in your project's readme
> - Mention the project at local meetups and tell your friends/colleagues

<!-- omit in toc -->
## Table of Contents

- [Code of Conduct](#code-of-conduct)
- [I Have a Question](#i-have-a-question)
- [I Want To Contribute](#i-want-to-contribute)
- [Reporting Bugs](#reporting-bugs)
- [Suggesting Enhancements](#suggesting-enhancements)
- [Your First Code Contribution](#your-first-code-contribution)
- [Improving The Documentation](#improving-the-documentation)
- [Styleguides](#styleguides)
- [Commit Messages](#commit-messages)
- [Join The Project Team](#join-the-project-team)


## Code of Conduct

This project and everyone participating in it is governed by the
[doPhp/excel Code of Conduct](https://github.com/doPhp/excel/CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report unacceptable behavior
to <misconduct@dophp.dev>.


## I Have a Question

> If you want to ask a question, we assume that you have read the available [Documentation](TBD).

Before you ask a question, it is best to search for existing [Issues](https://github.com/doPhp/excel/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.

If you then still feel the need to ask a question and need clarification, we recommend the following:

- Open an [Issue](https://github.com/doPhp/excel/issues/new).
- Provide as much context as you can about what you're running into.
- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.

We will then take care of the issue as soon as possible.

<!--
You might want to create a separate issue tag for questions and include it in this description. People should then tag their issues accordingly.

Depending on how large the project is, you may want to outsource the questioning, e.g. to Stack Overflow or Gitter. You may add additional contact and information possibilities:
- IRC
- Slack
- Gitter
- Stack Overflow tag
- Blog
- FAQ
- Roadmap
- E-Mail List
- Forum
-->

## I Want To Contribute

> ### Legal Notice <!-- omit in toc -->
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.

### Reporting Bugs

<!-- omit in toc -->
#### Before Submitting a Bug Report

A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.

- Make sure that you are using the latest version.
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](TBD). If you are looking for support, you might want to check [this section](#i-have-a-question)).
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/doPhp/excel/issues?q=label%3Abug).
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
- Collect information about the bug:
- Stack trace (Traceback)
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
- Possibly your input and the output
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?

<!-- omit in toc -->
#### How Do I Submit a Good Bug Report?

> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <safeguard@dophp.dev>.
<!-- You may add a PGP key to allow the messages to be sent encrypted as well. -->

We use GitHub issues to track bugs and errors. If you run into an issue with the project:

- Open an [Issue](https://github.com/doPhp/excel/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
- Explain the behavior you would expect and the actual behavior.
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
- Provide the information you collected in the previous section.

Once it's filed:

- The project team will label the issue accordingly.
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).

<!-- You might want to create an issue template for bugs and errors that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->


### Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for doPhp/excel, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.

<!-- omit in toc -->
#### Before Submitting an Enhancement

- Make sure that you are using the latest version.
- Read the [documentation](TBD) carefully and find out if the functionality is already covered, maybe by an individual configuration.
- Perform a [search](https://github.com/doPhp/excel/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.

<!-- omit in toc -->
#### How Do I Submit a Good Enhancement Suggestion?

Enhancement suggestions are tracked as [GitHub issues](https://github.com/doPhp/excel/issues).

- Use a **clear and descriptive title** for the issue to identify the suggestion.
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. <!-- this should only be included if the project has a GUI -->
- **Explain why this enhancement would be useful** to most doPhp/excel users. You may also want to point out the other projects that solved it better and which could serve as inspiration.

<!-- You might want to create an issue template for enhancement suggestions that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->

### Your First Code Contribution
<!-- TODO
include Setup of env, IDE and typical getting started instructions?

-->

### Improving The Documentation
<!-- TODO
Updating, improving and correcting the documentation

-->

## Styleguides
### Commit Messages
<!-- TODO

-->

## Join The Project Team
<!-- TODO -->

<!-- omit in toc -->
## Attribution
This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
16 changes: 15 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
[2016-??-??] - Version 1.0.3dev
[2018-??-??] - Version 1.0.3dev
* Fixed crash when trying to read an empty file
* Fixed bug with writing references (see issue #234)
* Added PECL package.xml to allow installation via pecl
* Added ExcelSheet::AS_STRING const to use with write operations (see PR 183 by ederuiter)
* Added new methods (requires LibXL 3.8.0)
- ExcelBook::addPictureAsLink()
- ExcelBook::moveSheet()
- ExcelSheet::addDataValidation()
- ExcelSheet::addDataValidationDouble()
- ExcelSheet::removeDataValidations()
* Added ExcelBook::getLibXlVersion()
* Added ExcelBook::getPhpExcelVersion()

[2016-06-23] - Version 1.0.2
* Fixed bug in ExcelSheet::addPictureDim() (see issue #120)
Expand All @@ -10,6 +22,8 @@
- ExcelBook::printRepeatRows()
* Added support for LibXL 3.6.3
* ExcelSheet::addPictureDim() & ExcelSheet::addPictureScaled() now support position parameters
* Includes official PHP7 release
* Added support for libxl compiled from source

[2015-02-26] - Version 1.0.1
* Added methods
Expand Down
68 changes: 68 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2019 The PHP Group. All rights reserved.
--------------------------------------------------------------------

Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.

4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"

5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.

6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
<http://www.php.net/software/>".

THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------

This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.

The PHP Group can be contacted via Email at group@php.net.

For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.

PHP includes the Zend Engine, freely available at
<http://www.zend.com>.
Loading