Reading Excel Files with PHP
Recently I had to take datas from an excel file, when I was searching there was lot of complex codes, my intention was reading the datas row by row. Then I encountered with a repo. Our brother Sergey Shuckin wrote a class for this operations. Easy, useful and handles the situtation.
Firstly take files from here : https://github.com/shuchkin/simplexlsx (Note: Don't forget the give a star. )
Usage is very simple;
<?php
if ( $xlsx = SimpleXLSX::parse('test.xlsx') ) {
print_r( $xlsx->rows() );
} else {
echo SimpleXLSX::parse_error();
}
It will give you rows in excel
as a array. You can choose and use.
Comments
Popular Articles
Popular Tags
- #directive
- #Function
- #Json
- #Class
- #SASS
- #Form
- #Redirect
- #API
- #Special Characters
- #Special
- #Random
- #Generating
- #
- #Text
- #Ajax
- #URL
- #Encrypting
- #React
- #Show
- #timeAgo
- #PSR-4
- #Hide
- #DDOS Protection
- #DDOS
- #cURL
- #Logic For Displaying Posts
- #Error
- #Key
- #General Error
- #1364 Field
- #Abbreviation
- #Blade
- #Version
- #QR
- #QR Code Generating
- #Array
- #Arrays with Key Values to String Statement
- #Short Tag
- #Activate
- #Real Time
- #Socket.io
- #301
- #Custom Directives
- #Iframe Detection
- #Date
- #Characters
- #Insert
- #Autoloader
- #Composer
- #Reading
There are no comments, make the firs comment