Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Utils Laravel Package

rokka/utils

Utility helpers for the Rokka image service in PHP, providing small reusable functions and classes to simplify common image URL, stack, and configuration tasks in your applications.

View on GitHub
Deep Wiki
Context7

rokka/utils provides small, framework-agnostic PHP helpers for projects using Rokka for image processing. It simplifies common tasks around Rokka stack definitions and image URLs, making image-handling code easier to build and maintain in Laravel or any Composer-based PHP application.

  • Helpers for building and manipulating Rokka image URLs
  • Utilities for working with stack definitions and image operations
  • Lightweight, dependency-free design for Laravel/PHP projects
  • Composer-ready and easy to integrate into existing services
Frequently asked questions about Utils
What is rokka/utils used for?
rokka/utils is a small, vendor-published PHP helper library for the Rokka image service. It provides shared utility methods and convenience functions for common integration tasks such as building and handling image URLs, normalizing options, and working with Rokka stack or hash conventions. It is framework-agnostic and is intended to be a leaf dependency rather than a full image pipeline or Laravel integration.
Is rokka/utils a Laravel package?
No. rokka/utils is not a Laravel package and does not include a service provider, facade, config publishing, or Laravel-specific contracts. It is a plain Composer library with PSR-4 autoloading. In a Laravel app, you would call it from inside your own image module or wrap it behind your own interface.
How do I install rokka/utils in a Laravel application?
Install it with Composer using composer require rokka/utils, then rely on PSR-4 autoloading. There is no Laravel installation step such as publishing config or registering a provider. Before requiring it directly, check whether your chosen Rokka client already pulls it in transitively.
Does the Rokka PHP client already depend on rokka/utils?
It may. rokka/utils is described as shared code among Rokka projects, so a Rokka client package such as rokka-io/rokka-client-php may already depend on it transitively. Run composer show --tree or inspect your lockfile to confirm. If it is already present, your decision is about version pinning, not direct adoption.
Which Laravel and PHP versions support rokka/utils?
rokka/utils is framework-agnostic, so Laravel compatibility depends mainly on the PHP constraint in its composer.json. Check that constraint against your current and next-year runtimes, such as PHP 8.1+ or 8.2+ for current Laravel versions. Run the package test suite against your PHP version before relying on specific helpers.
How should I use rokka/utils static helpers in Laravel controllers and jobs?
Avoid scattering direct static calls throughout controllers and jobs, because that makes testing and replacement harder. Wrap the helpers you need behind your own service class or interface and bind it in Laravel's container. Inject that wrapper into controllers, jobs, and other consumers so you can mock it in tests and swap implementations later.
Is rokka/utils actively maintained?
The last release noted in the evaluation is 2022-05-31, with no visible release cadence, community, or downstream consumer documentation. Treat it as effectively frozen unless the vendor provides a clearer commitment. Pin an exact version and monitor upstream changes if you depend on it.
What are the production risks of using rokka/utils?
Maintenance and bus-factor risk are high because it is a single-vendor, low-profile package with little public activity. Supply chain risk is medium, so pin exact versions, commit the lockfile, and consider a Composer audit gate. Behavioral drift is also possible if Rokka API conventions change while the helper library does not.
Should I use rokka/utils or reimplement its helpers in-house?
If you only need a few functions, reimplementing them behind your own interface may be safer and easier to maintain than adopting a frozen utility library. Count the specific helpers you need and estimate the lines required to reproduce them. If you are already using a Rokka client that depends on rokka/utils, prefer relying on that transitive dependency with a pinned version.
What alternatives to rokka/utils exist for Laravel image handling?
If rokka.io is not an approved part of your image delivery architecture, rokka/utils has little standalone value and you should evaluate Laravel-native image pipelines, other CDNs, or your existing image module instead. If you are committed to Rokka, the main alternative is using the official Rokka client plus a thin in-house wrapper rather than calling rokka/utils directly. Decide based on whether Rokka is already part of your production architecture.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource