Download the PHP package sefirosweb/laravel-general-helper without Composer
On this page you can find all versions of the php package sefirosweb/laravel-general-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sefirosweb/laravel-general-helper
More information about sefirosweb/laravel-general-helper
Files in sefirosweb/laravel-general-helper
Package laravel-general-helper
Short Description A bundle of helpers for develop, contains method for generate excels , csv, array optimizations and more
License MIT
Informations about the package laravel-general-helper
Laravel General Helper
A bundle of helpers for develop, contains method for generate excels , csv, array optimizations and more
Installation
For save file need a run migration for manage who has created the file, only have access own creator,
Optional configuration
You can change the middleware and prefix path for get the files, need publish config
Helpers
- pathTemp
- array_group_by
- array_group_by_multidimensional
- objectToArray
- generateMarks
- createMarks
- char_at
- mergeArrays
- mergeArraysOnSubArray
- query
- excelToArray
- saveCsvInServerAndDownload
- saveCsvInServer
- validateArray
- saveExcelInServer
- saveExcelInServerAndDownload
- br2nl
- eliminar_tildes
Helper class
- RequestCache
- RedisHelper
Helpers
pathTemp
Obtain and create the path "tmp" if it does not exist, it is created automatically, in this path the temporary files used for this package are stored
array_group_by
Group an array by "identifier", if the third optional value is true, only get the first element of group
array_group_by_multidimensional
Same as function "array_group_by" but in this case you can sub-group the array in multiple conditions
objectToArray
Convert stdClass object to full array values, it is required for use the array group functions
generateMarks
TODO
createMarks
TODO
char_at
TODO
validateArray
TODO
mergeArrays
TODO
mergeArraysOnSubArray
TODO
query
TODO
excelToArray
TODO
saveCsvInServerAndDownload
TODO
saveCsvInServer
Function for save an structured array data into csv, and returns a object "FileSaved"
saveExcelInServer
Function for save an structured array data into excel (for huge data is recommended CSV, save data in excel have low performance)
saveExcelInServerAndDownload
TODO
br2nl
Replace \
into new lines "\n"
eliminar_tildes
Function for remove the latin characters "á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'" into "a / A"
Helper class
RequestCache
Store in memory for the current request some data, this can be stored and retrieved from any code of your app, usefull to avoid execute multiple queries and don't want to store in some cache system
RedisHelper
Similar to RequestCache, but ther store data in to Redis cache system: