PHPackages                             haythem/download-button - 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. haythem/download-button

ActiveLibrary

haythem/download-button
=======================

A Laravel Nova field.

v1.0.0(4y ago)024MITVuePHP &gt;=7.1.0

Since Jul 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/haythembenkhlifa/DownloadButton)[ Packagist](https://packagist.org/packages/haythem/download-button)[ RSS](/packages/haythem-download-button/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

DownloadButton
==============

[](#downloadbutton)

[![Packagist](https://camo.githubusercontent.com/abe9ed90637a2fb7255b8c0e90b7837a3e3a8da31dc6f3a5c2007b3781484d31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6861797468656d2f646f776e6c6f61642d627574746f6e2e737667)](https://packagist.org/packages/haythem/)[![Packagist](https://camo.githubusercontent.com/ea34bc65e09bb5e32ae018bfcba6ad17cd2f9739e44958babfa876821411244d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6861797468656d2f646f776e6c6f61642d627574746f6e2e737667)](https://packagist.org/packages/haythem/download-button)

Package Description: Download , View , Print buttons nova field

[![](download-button.gif)](download-button.gif)

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

[](#installation)

Install via composer

```
composer require haythem/download-button
```

Setup route
-----------

[](#setup-route)

```
Route::get('/pod', function () {
    $file_name = "pod.pdf";
    $file_content = PDF::loadView('pod',[])->setWarnings(false)->output();
    Storage::disk('public')->put($file_name, $file_content);
    $file_url =     Storage::disk('public')->url($file_name);

    return Response::make($file_content, 200, [
        'Content-Type' => 'application/pdf',//Required
        'Content-Disposition' => 'inline;',//Required
        'File-Name'=>$file_name,//Required
        "File-Url"=>$file_url,//Required
        "File-Type"=>"pdf",//Required
    ]);
});

```

Usage
-----

[](#usage)

```
    use Haythem\DownloadButton\DownloadButton;

    public function fields(Request $request)
    {
     return [
            DownloadButton::make("")
            ->url("http://haythem.test/api/pod")
            ->downloadButtonText("Download Pod")
            ->showViewButtonText("View pod")
            ->showPrintButtonText("Print pod"),
    ];
    }
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1753d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39649249?v=4)[Haythem Ben Khlifa](/maintainers/haythembenkhlifa)[@haythembenkhlifa](https://github.com/haythembenkhlifa)

---

Top Contributors

[![haythembenkhlifa](https://avatars.githubusercontent.com/u/39649249?v=4)](https://github.com/haythembenkhlifa "haythembenkhlifa (11 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/haythem-download-button/health.svg)

```
[![Health](https://phpackages.com/badges/haythem-download-button/health.svg)](https://phpackages.com/packages/haythem-download-button)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6546.9k](/packages/insenseanalytics-nova-server-monitor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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