PHPackages                             sevenspan/bunny - 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. sevenspan/bunny

ActiveLibrary[API Development](/categories/api)

sevenspan/bunny
===============

Bunnynet api connect.

1.0.0(2y ago)041MITPHP

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/7span/laravel-bunny)[ Packagist](https://packagist.org/packages/sevenspan/bunny)[ RSS](/packages/sevenspan-bunny/feed)WikiDiscussions main Synced 1mo ago

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

laravel-bunny
=============

[](#laravel-bunny)

This package has been employed to generate URLs for privately uploaded images on Bunnynet.

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

[](#installation)

You can install the package using Composer:

```
composer require sevenspan/bunny
```

To publish the configuration file, run the following command:

```
 php artisan vendor:publish --tag=config
```

Once published, the configuration file will have the following content:

```
return [
    /*
    |--------------------------------------------------------------------------
    |
    |--------------------------------------------------------------------------
    |
    | API KEY.
    |
    */

    'api_key' => env('BUNNY_API_KEY', ''),

    /*
    |--------------------------------------------------------------------------
    |SIGNED URL
    |--------------------------------------------------------------------------
    |
    | SIGNED URL.
    |
    */

    'signed_url' => env('BUNNY_SIGNED_URL', ''),

    /*
    |--------------------------------------------------------------------------
    | EXPIRATION TIME
    |--------------------------------------------------------------------------
    |
    | EXPIRATION TIME
    |
    */
    'expiration_time' => env('BUNNY_EXPIRATION_TIME', '360'),

];
```

Make sure to customize the configuration values according to your requirements.

Usage
-----

[](#usage)

To create a private URL using Bunny Net, you'll need to utilize the Bunny class. First, make sure to include it in your code:

```
use Sevenspan\Bunny\Bunny;
```

The following parameters are required to generate a private URL:

- api\_key: Your Bunny Net API key.
- signed\_url: Acquire the signed\_url from your Bunnynet account under **CDN** &gt; **General** &gt; **HostNames** &gt; **Linked Hostnames** section. Use the provided Hostname as your `signed_url`.
- expiration\_time: The time until the generated URL remains valid.

> Note: The default expiration time for the generated URL is set to 5 minutes. After this period, the URL will expire automatically.

### Function

[](#function)

To generate a private URL, you can use the `getImageUrl` function provided by the Bunny class. Here's the method signature:

```
getImageUrl($path)
```

Example
-------

[](#example)

Here's an example of how to use the `getImageUrl` function:

```
  $path = "capital_test.PNG";
  $url = Bunny::getImageUrl($path);
```

In this example, the `$path` variable contains the path to the media file for which you want to create a private URL. The generated private URL is stored in the `$url` variable.

Remember to replace "capital\_test.PNG" with the actual path of the media file you want to generate a private URL for.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.8% 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

977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08bf8e5911bd55b6328d8e1a32c786000dc7023bc741cbad255a2625ed91a75b?d=identicon)[hemratna](/maintainers/hemratna)

---

Top Contributors

[![champakchopda](https://avatars.githubusercontent.com/u/65281433?v=4)](https://github.com/champakchopda "champakchopda (11 commits)")[![champak-7span](https://avatars.githubusercontent.com/u/97033926?v=4)](https://github.com/champak-7span "champak-7span (5 commits)")

### Embed Badge

![Health badge](/badges/sevenspan-bunny/health.svg)

```
[![Health](https://phpackages.com/badges/sevenspan-bunny/health.svg)](https://phpackages.com/packages/sevenspan-bunny)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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