PHPackages                             spagi-sparclex/nova-import-card - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. spagi-sparclex/nova-import-card

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spagi-sparclex/nova-import-card
===============================

A card which lets you batch import resources

v2.0.0(7y ago)013MITPHPPHP &gt;=7.1

Since Sep 21Pushed 5y agoCompare

[ Source](https://github.com/spagi/nova-import-card)[ Packagist](https://packagist.org/packages/spagi-sparclex/nova-import-card)[ RSS](/packages/spagi-sparclex-nova-import-card/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (14)Used By (0)

A card which lets you batch import resources
============================================

[](#a-card-which-lets-you-batch-import-resources)

[![Latest Stable Version](https://camo.githubusercontent.com/ecb07492799a2d58536351c739fde34f648fbc51797430cf60e2be15230216df/68747470733a2f2f706f7365722e707567782e6f72672f73706172636c65782f6e6f76612d696d706f72742d636172642f762f737461626c65)](https://packagist.org/packages/sparclex/nova-import-card)[![Total Downloads](https://camo.githubusercontent.com/f5a99e40bc1d69f7a8078d9436cf1bf0f510eb1a6bc3981faf4ece5a8049598f/68747470733a2f2f706f7365722e707567782e6f72672f73706172636c65782f6e6f76612d696d706f72742d636172642f646f776e6c6f616473)](https://packagist.org/packages/sparclex/nova-import-card)[![Latest Unstable Version](https://camo.githubusercontent.com/2db45e26c847a3f9de3048c20de83592d1057252589b5a96ef2b660683c5e0aa/68747470733a2f2f706f7365722e707567782e6f72672f73706172636c65782f6e6f76612d696d706f72742d636172642f762f756e737461626c65)](https://packagist.org/packages/sparclex/nova-import-card)[![License](https://camo.githubusercontent.com/f8e3d6866cf5ce0944fab3dc975a120a46a1dbcfd325c0078f1eebb8cd2e3d5b/68747470733a2f2f706f7365722e707567782e6f72672f73706172636c65782f6e6f76612d696d706f72742d636172642f6c6963656e7365)](https://packagist.org/packages/sparclex/nova-import-card)[![StyleCI](https://camo.githubusercontent.com/d8e12df1d3d81588a242f953a9cc8c84a80372295dd4563856542e9e0e93c022/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134393636383539322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/149668592)[![TravisCi](https://camo.githubusercontent.com/0ac70c2071fa966c90548047e21c79d3b3cbab0a641e18b8fbb081f24295f32f/68747470733a2f2f7472617669732d63692e6f72672f53706172636c65782f6e6f76612d696d706f72742d636172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Sparclex/nova-import-card)[![codecov](https://camo.githubusercontent.com/c42add38e5b4c521dc15da89536aa6b2370282f539834723237cf0a83a5cb6e2/68747470733a2f2f636f6465636f762e696f2f67682f53706172636c65782f6e6f76612d696d706f72742d636172642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Sparclex/nova-import-card)

A customizable import card for laravel nova. This package is more or less just a UI for [laravel-excel](https://laravel-excel.maatwebsite.nl) import. It is however **not** an official package from Maatwebsite.

[![Nova Import Card Screenshot](https://raw.githubusercontent.com/sparclex/screenshots/master/nova-import-card-resource-index.png)](https://raw.githubusercontent.com/sparclex/screenshots/master/nova-import-card-resource-index.png)

Installation
------------

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require sparclex/nova-import-card
```

Next up, you must register the card. This is typically done in the `card` method of the corresponding resource or the `NovaServiceProvider`.

```
// in app/Providers/NovaServiceProvider.php or app/Nova/.php

// ...

public function card()
{
    return [
        // ...
        new \Sparclex\NovaImportCard\NovaImportCard(\App\Nova\User::class),
    ];
}
```

Customization
-------------

[](#customization)

To customize the import process create a new importer class. The importer class is basically just an [import implementation of the laravel-excel package](https://laravel-excel.maatwebsite.nl/3.1/imports/). The easiest way to get started is to extend `Sparclex\NovaImportCard\BasicImporter` and overwrite the different methods. During the import process you may throw an exception of the type `Sparclex\NovaImportCard\ImportException` with an error message visible for the user. You may also add a `message(): String` method to customize the success message.

The custom importer class can be registered on global or resource basis.

```
// app/Nova/User.php

class User extends Resource
{

    public static $importer = CustomImporter::class;

    // ...
}

// or app/config/nova-import-card.php

return [
    'importer' => CustomImporter::class,

    // ...
]
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 89.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~28 days

Total

9

Last Release

2618d ago

Major Versions

v0.1.1 → v1.0.02018-12-19

v1.0.0 → v2.0.02019-03-12

PHP version history (3 changes)v0.0.1PHP &gt;=7.1.0

v0.1.0PHP &gt;=7.0

v2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fe6db3457f9e0e07d0af8237c66925826042ebb1de72313790dc54c2de8560a?d=identicon)[spagi](/maintainers/spagi)

---

Top Contributors

[![Sparclex](https://avatars.githubusercontent.com/u/2805213?v=4)](https://github.com/Sparclex "Sparclex (59 commits)")[![spagi](https://avatars.githubusercontent.com/u/6311847?v=4)](https://github.com/spagi "spagi (4 commits)")[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (2 commits)")[![bgMaxim](https://avatars.githubusercontent.com/u/27724661?v=4)](https://github.com/bgMaxim "bgMaxim (1 commits)")

---

Tags

laravelnova

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spagi-sparclex-nova-import-card/health.svg)

```
[![Health](https://phpackages.com/badges/spagi-sparclex-nova-import-card/health.svg)](https://phpackages.com/packages/spagi-sparclex-nova-import-card)
```

###  Alternatives

[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[mostafaznv/nova-map-field

Map Field for Laravel Nova

4693.4k](/packages/mostafaznv-nova-map-field)[swooinc/nova-countdown

A countdown card for Laravel Nova.

1224.5k](/packages/swooinc-nova-countdown)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
