| 
									
										
										
										
											2017-10-01 08:48:59 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use PhpOffice\PhpSpreadsheet\IOFactory; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require __DIR__ . '/../Header.php'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $inputFileType = 'Xlsx'; | 
					
						
							|  |  |  | $inputFileName = __DIR__ . '/sampleData/example1.xlsx'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-01 11:07:04 +00:00
										 |  |  | // Create a new Reader of the type defined in $inputFileType
 | 
					
						
							| 
									
										
										
										
											2017-10-01 08:48:59 +00:00
										 |  |  | $reader = IOFactory::createReader($inputFileType); | 
					
						
							| 
									
										
										
										
											2017-10-01 11:07:04 +00:00
										 |  |  | // Load $inputFileName to a PhpSpreadsheet Object
 | 
					
						
							| 
									
										
										
										
											2017-10-01 08:48:59 +00:00
										 |  |  | $spreadsheet = $reader->load($inputFileName); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-01 11:07:04 +00:00
										 |  |  | // Read an array list of any custom properties for this document
 | 
					
						
							| 
									
										
										
										
											2017-10-01 08:48:59 +00:00
										 |  |  | $customPropertyList = $spreadsheet->getProperties()->getCustomProperties(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | foreach ($customPropertyList as $customPropertyName) { | 
					
						
							|  |  |  |     $helper->log($customPropertyName); | 
					
						
							|  |  |  | } |