PHPackages                             hammerstone/refine-nova - 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. [API Development](/categories/api)
4. /
5. hammerstone/refine-nova

ActiveLibrary[API Development](/categories/api)

hammerstone/refine-nova
=======================

A Laravel Nova integration for the Refine query builder.

v0.2.4(2y ago)3356.5k4[1 issues](https://github.com/aarondfrancis/refine-nova/issues)[1 PRs](https://github.com/aarondfrancis/refine-nova/pulls)MITVuePHP ^7.2|^8.0

Since Jan 31Pushed 2y ago3 watchersCompare

[ Source](https://github.com/aarondfrancis/refine-nova)[ Packagist](https://packagist.org/packages/hammerstone/refine-nova)[ RSS](/packages/hammerstone-refine-nova/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

Refine for Laravel Nova
=======================

[](#refine-for-laravel-nova)

[Refine](https://hammerstone.dev) is a powerful, visual query builder for Laravel Nova 3 and 4. Refine is a paid package, which you can purchase at [hammerstone.dev](https://hammerstone.dev).

> We also have libraries for Laravel (without Nova) and Ruby on Rails at [hammerstone.dev](https://hammerstone.dev).

Refine lets you define filterable conditions per resource, and then your users can mix and match them in any way they want to find exactly what they're looking for.

```
// Create a filter called "UserFilter"
class UserFilter extends Filter
{
    public function conditions()
    {
        return [
            // Number condition on the ID column
            NumericCondition::make('id', 'ID'),

            // Text condition on the name column
            TextCondition::make('name', 'Name'),

            // Boolean condition on the is_subscriber column
            BooleanCondition::make('is_subscriber', 'Subscriber'),

            // Option condition on the referral column
            OptionCondition::make('referral', 'Referral Source')
                ->options([
                    'twitter' => 'Twitter',
                    'linkedin' => 'LinkedIn',
                    'fb' => 'Facebook'
                ]),

            // Date condition on the created_at column
            DateWithTimeCondition::make('created_at', 'Created At'),
        ];
    }
}
```

[![Refine Nova 4](art/refine-nova4.png)](art/refine-nova4.png)Refine for Laravel Nova 4

[![Refine Nova 3](art/refine-nova3.png)](art/refine-nova3.png)Refine for Laravel Nova 3

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

[](#installation)

To use Refine with Nova, you must first require the package `composer require hammerstone/refine-nova`. This will install `hammerstone/refine-laravel` as well. Since `refine-laravel` is a paid package, you will need to make sure your credentials are available to composer in the `auth.json` file.

Integration
-----------

[](#integration)

Create a `UserFilter` class in your `app\Filters` directory.

```
namespace App\Filters;

use Hammerstone\Refine\Conditions\NumericCondition;
use Hammerstone\Refine\Filter;

class UserFilter extends Filter
{
    public function conditions()
    {
        return [
            NumericCondition::make('id', 'ID'),

            // @TODO: Add more conditions
        ];
    }
}
```

In your `app\Nova\User` file, you'll need to add the `RefinesModels` trait and reference your newly created filter.

```
use App\Filters\UserFilter;
use Hammerstone\Refine\Nova\RefinesModels;

class User extends Resource
{
    use RefinesModels;

    // ...

    public static $filter = UserFilter::class;
}
```

Finally, to show the query builder on the frontend, you'll need to add the Refine card:

```
public function cards(Request $request)
{
    return [
        static::refineCard()
    ];
}
```

That's it! You should see the Refine query builder on the Users page in Nova. You can read further documentation about building filters in the [Refine documentation](https://hammerstone.dev/refine/laravel/docs/main).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~68 days

Total

10

Last Release

948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/033238953a59b9223a1bde703b5e4254e63c7412195da1cb9de5af44bf53fc0a?d=identicon)[aarondfrancis](/maintainers/aarondfrancis)

---

Top Contributors

[![aarondfrancis](https://avatars.githubusercontent.com/u/881931?v=4)](https://github.com/aarondfrancis "aarondfrancis (62 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/hammerstone-refine-nova/health.svg)

```
[![Health](https://phpackages.com/badges/hammerstone-refine-nova/health.svg)](https://phpackages.com/packages/hammerstone-refine-nova)
```

###  Alternatives

[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[coreproc/nova-echo

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app

1996.9k2](/packages/coreproc-nova-echo)

PHPackages © 2026

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