heyaender/excelintar-reader

Reader for Excelintar

Installs: 31

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/heyaender/excelintar-reader

v1.0.0 2024-01-16 18:28 UTC

This package is auto-updated.

Last update: 2025-12-25 08:20:35 UTC


README

Documentation Excelintar Reader (Import Excel)

How to install

composer require heyaender/excelintar-reader

How to use

$sheet = $excel->getSheet('Articles');
$sheet->setReadArea('B5');
foreach ($sheet->nextRow() as $rowNum => $rowData) {
    $user = User::create([
        'name' => $rowData['B'],
        'birthday' => new \Carbon($rowData['C']),
        'password' => bcrypt($rowData['D']),
    ]);
    Article::create([
        'user_id' => $user->id,
        'title' => $rowData['E'],
        'date' => new \Carbon($rowData['F']),
        'public' => $rowData['G'] === 'yes',
    ]);
}
Example Excel to Import
image