-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added addHeaderFromArray method to the SimpleWriter #125
Added addHeaderFromArray method to the SimpleWriter #125
Conversation
258ddcf
to
a7fb61b
Compare
Thank you! Could you remove all unrelated code style changes in this PR so I can easily see the actual changes? |
b37abb6
to
fff52dd
Compare
@freekmurze Thanks for the quick response, I have updated the PR by removing unnecessary changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also update the readme with an example of how to use this new function?
src/SimpleExcelWriter.php
Outdated
@@ -127,6 +127,18 @@ public function addRows(iterable $rows, Style $style = null) | |||
return $this; | |||
} | |||
|
|||
public function addHeaderFromArray(array $header): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this to addHeader
Readme updated. |
Thanks! |
Currently, no feature to directly add headers from the array. This PR adds
addHeaderFromArray
method to the SimpleWriter, which allows to add headers from array.