PHPackages                             rokka/laravel - 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. [Image &amp; Media](/categories/media)
4. /
5. rokka/laravel

ActiveLibrary[Image &amp; Media](/categories/media)

rokka/laravel
=============

A Laravel wrapper for the Rokka PHP client library

0.7.0(1mo ago)118.2k↓15.2%1MITPHPPHP ^8.1CI passing

Since Nov 19Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/rokka-io/rokka-laravel-package)[ Packagist](https://packagist.org/packages/rokka/laravel)[ Docs](https://github.com/rokka-io/rokka-laravel)[ RSS](/packages/rokka-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (19)Used By (0)

Rokka Laravel Client
====================

[](#rokka-laravel-client)

[![Total Downloads](https://camo.githubusercontent.com/b42171e6569ccac170d52773eb04cf24bfd2169acd272239615a4fa43cf3a194/68747470733a2f2f706f7365722e707567782e6f72672f726f6b6b612f6c61726176656c2f642f746f74616c2e737667)](https://packagist.org/packages/rokka/laravel)[![Latest Stable Version](https://camo.githubusercontent.com/f6fd1ad99b30ff3cb1ed9d63d1995bc98bc7f6179c80d514fc54b3bbe849b2ec/68747470733a2f2f706f7365722e707567782e6f72672f726f6b6b612f6c61726176656c2f762f737461626c652e737667)](https://packagist.org/packages/rokka/laravel)[![License](https://camo.githubusercontent.com/8b78a7da23439fd045c317cda8e12b28411b9d4d9add4248d47d3c54d52526ff/68747470733a2f2f706f7365722e707567782e6f72672f726f6b6b612f6c61726176656c2f6c6963656e73652e737667)](https://packagist.org/packages/rokka/laravel)

A thin wrapper around `rokka-io/rokka-client-php` with some convenience functions to play nice with Laravel.

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

[](#installation)

Via Composer:

```
$ composer require rokka/laravel
```

If package auto discovery is disabled, you'll need to register the bundled service provider and the optional Facade inside `config/app.php`.

```
'providers' => [
  // ...
  Rokka\RokkaLaravel\RokkaLaravelServiceProvider::class,
]
'aliases' => [
  // ...
  'Rokka' => Rokka\RokkaLaravel\Facades\Rokka::class
]
```

Usage
-----

[](#usage)

⚠️ The API is still experimental and subject to change while we figure out the most ergonomic way to wrap the most commonly used functions inside `rokka-io/rokka-client-php`

### `Rokka` Facade

[](#rokka-facade)

The `Rokka` Facade provides a concise interface to Rokka's main classes.

- `Rokka\Client\TemplateHelper` to generate and manipulate URLs in controllers and templates
- `Rokka\Client\Image` to interact with images
- `Rokka\Client\User` to manage users

Calls can also be scoped to a specific organization with `Rokka::org('env')->…`

```
Rokka::getStackUrl('dba893', 'test-stack', 'jpg');
Rokka::images()->uploadSourceImage(…)
Rokka::manage()->createOrganization(…)
Rokka::org('my-org')->getStackUrl('dba893', 'test-stack', 'jpg');
```

### `rokka()` helper function

[](#rokka-helper-function)

Currently the `rokka()` function exposes the same methods as the `Rokka` facade.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

MIT. Please see the [license file](LICENSE.MD) for more information.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 52% 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 ~191 days

Recently: every ~283 days

Total

15

Last Release

54d ago

PHP version history (2 changes)0.5.0PHP ^8.0

0.6.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/803a02308898d7176ad6601cc9f1bc9b057a725d5b35f6c0c54995b02a97a977?d=identicon)[rokka](/maintainers/rokka)

---

Top Contributors

[![Seeow](https://avatars.githubusercontent.com/u/16125687?v=4)](https://github.com/Seeow "Seeow (13 commits)")[![Jonathanm10](https://avatars.githubusercontent.com/u/8361115?v=4)](https://github.com/Jonathanm10 "Jonathanm10 (7 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (3 commits)")[![alexcanana](https://avatars.githubusercontent.com/u/4490848?v=4)](https://github.com/alexcanana "alexcanana (1 commits)")[![chregu](https://avatars.githubusercontent.com/u/47106?v=4)](https://github.com/chregu "chregu (1 commits)")

---

Tags

laravelimageresizingrokka

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rokka-laravel/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[spescina/imgproxy

An image proxy for Laravel

201.3k](/packages/spescina-imgproxy)

PHPackages © 2026

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