/var/www/vhosts/nabawater/vendor/phpoffice/phpspreadsheet/samples/Basic
NameSizeModeActions
data/-0755rm
01_Simple.php18390644editdlrm
01_Simple_download_ods.php21230644editdlrm
01_Simple_download_pdf.php17580644editdlrm
01_Simple_download_xls.php21010644editdlrm
01_Simple_download_xlsx.php21440644editdlrm
02_Types.php49370644editdlrm
03_Formulas.php33280644editdlrm
04_Printing.php22810644editdlrm
05_Feature_demo.php1640644editdlrm
06_Largescale.php1640644editdlrm
07_Reader.php5390644editdlrm
08_Conditional_formatting.php49760644editdlrm
08_Conditional_formatting_2.php25410644editdlrm
09_Pagebreaks.php22570644editdlrm
11_Documentsecurity.php18510644editdlrm
12_CellProtection.php15030644editdlrm
13_Calculation.php67420644editdlrm
13_CalculationCyclicFormulae.php10750644editdlrm
14_Xls.php3800644editdlrm
15_Datavalidation.php33600644editdlrm
16_Csv.php11400644editdlrm
17_Html.php3820644editdlrm
18_Extendedcalculation.php29470644editdlrm
19_Namedrange.php26240644editdlrm
20_Read_Excel2003XML.php3230644editdlrm
20_Read_Gnumeric.php3290644editdlrm
20_Read_Ods.php3170644editdlrm
20_Read_Sylk.php3150644editdlrm
20_Read_Xls.php5990644editdlrm
22_Heavily_formatted.php14750644editdlrm
23_Sharedstyles.php18280644editdlrm
24_Readfilter.php11450644editdlrm
25_In_memory_image.php14810644editdlrm
26_Utf8.php14000644editdlrm
27_Images_Xls.php3220644editdlrm
28_Iterator.php12250644editdlrm
29_Advanced_value_binder.php46680644editdlrm
30_Template.php12420644editdlrm
31_Document_properties_write.php30880644editdlrm
31_Document_properties_write_xls.php30770644editdlrm
37_Page_layout_view.php10210644editdlrm
38_Clone_worksheet.php18370644editdlrm
39_Dropdown.php40330644editdlrm
40_Duplicate_style.php9960644editdlrm
41_Password.php3740644editdlrm
42_RichText.php26800644editdlrm
43_Merge_workbooks.php8290644editdlrm
44_Worksheet_info.php7340644editdlrm
45_Quadratic_equation_solver.php20080644editdlrm
46_ReadHtml.php4050644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/phpoffice/phpspreadsheet/samples/Basic/01_Simple_download_xls.php (2101B)
isCli()) { $helper->log('This example should only be run from a Web Browser' . PHP_EOL); return; } // Create new Spreadsheet object $spreadsheet = new Spreadsheet(); // Set document properties $spreadsheet->getProperties()->setCreator('Maarten Balliauw') ->setLastModifiedBy('Maarten Balliauw') ->setTitle('Office 2007 XLSX Test Document') ->setSubject('Office 2007 XLSX Test Document') ->setDescription('Test document for Office 2007 XLSX, generated using PHP classes.') ->setKeywords('office 2007 openxml php') ->setCategory('Test result file'); // Add some data $spreadsheet->setActiveSheetIndex(0) ->setCellValue('A1', 'Hello') ->setCellValue('B2', 'world!') ->setCellValue('C1', 'Hello') ->setCellValue('D2', 'world!'); // Miscellaneous glyphs, UTF-8 $spreadsheet->setActiveSheetIndex(0) ->setCellValue('A4', 'Miscellaneous glyphs') ->setCellValue('A5', 'éàèùâêîôûëïüÿäöüç'); // Rename worksheet $spreadsheet->getActiveSheet()->setTitle('Simple'); // Set active sheet index to the first sheet, so Excel opens this as the first sheet $spreadsheet->setActiveSheetIndex(0); // Redirect output to a client’s web browser (Xls) header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename="01simple.xls"'); header('Cache-Control: max-age=0'); // If you're serving to IE 9, then the following may be needed header('Cache-Control: max-age=1'); // If you're serving to IE over SSL, then the following may be needed header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified header('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header('Pragma: public'); // HTTP/1.0 $writer = IOFactory::createWriter($spreadsheet, 'Xls'); $writer->save('php://output'); exit;