-
-
Save parzibyte/70e28a9fd95518dc37e2117fabf932eb to your computer and use it in GitHub Desktop.
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 | |
# Indicar que usaremos el IOFactory | |
use PhpOffice\PhpSpreadsheet\IOFactory; | |
# Obtener conexión o salir en caso de error, mira bd.php | |
$bd = obtenerBD(); | |
# El archivo a importar | |
# Recomiendo poner la ruta absoluta si no está junto al script | |
$rutaArchivo = "Ventas.xlsx"; | |
$documento = IOFactory::load($rutaArchivo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment