This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$streamedResponse = new StreamedResponse(); | |
$streamedResponse->setCallback(function () { | |
$spreadsheet = //create you spreadsheet here; | |
$writer = new Xlsx($spreadsheet); | |
$writer->save('php://output'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @brief Find the difference between two strings, lines assumed to be separated by "\n| | |
* @param $new string The new string | |
* @param $old string The old string | |
* @return string Human-readable output as produced by the Unix diff command, | |
* or "No changes" if the strings are the same. | |
* @throws Exception | |
*/ | |
public function diff($new, $old) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* centering with absolute position | |
*/ | |
div.header { | |
width: 100%; | |
background-color:green; | |
height: 30px; | |
position:relative; | |
} | |
div.container { |