tcoders / key-value-importer
Reusable Laravel import functionality
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/tcoders/key-value-importer
Requires
- php: ^7.2
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
README
This package will import sheet having structure
col1 col2 col3
val1 val2 val3
to a {target}.php file in given format
val1 => [ 'k1' => val2, 'k2' => val3 ]
and will cache it. Also, cache, and save dir can be configured from config files.
Adjust these value as per your need in ImportController.