PHPackages                             codeinwp/optimole-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. codeinwp/optimole-laravel

ActiveLibrary

codeinwp/optimole-laravel
=========================

Integrate Optimole cloud-based image optimization service with your Laravel application

302PHP

Since Jun 27Pushed 1y ago5 watchersCompare

[ Source](https://github.com/Codeinwp/optimole-laravel)[ Packagist](https://packagist.org/packages/codeinwp/optimole-laravel)[ RSS](/packages/codeinwp-optimole-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Optimole Laravel Package
========================

[](#optimole-laravel-package)

[![Actions Status](https://github.com/Codeinwp/optimole-laravel/workflows/Continuous%20Integration/badge.svg)](https://github.com/Codeinwp/optimole-laravel/actions)

Requirements
------------

[](#requirements)

- Laravel &gt;= 9.0

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

[](#installation)

Install the Optimole Laravel Package in your project using composer:

```
$ composer require codeinwp/optimole-laravel

```

If you want, you can publish Optimole's configuration file using the `vendor:publish` command:

```
$ php artisan vendor:publish --tag="optimole-config"

```

Configuration
-------------

[](#configuration)

The Optimole package will remain inactive until you provide an Optimole API key. You can do this by adding the `OPTIMOLE_KEY` variable to your `.env` file:

```
OPTIMOLE_KEY=your-optmole-api-key

```

If you don't have an API key, you can create an account on [Optimole](https://optimole.com) and get your API key.

Usage
-----

[](#usage)

By default, the Optimole Laravel Package will optimize all images and assets in your Laravel application if they use the [`asset`](https://laravel.com/docs/master/helpers#method-asset) helper function. The package also provides two helper functions that you can use in your blade templates. The `optimole_asset` function will return the URL of the optimized CSS or JS files, while the `optimole_image` function will return the URL of the optimized image.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3330746?v=4)[Marius Cristea](/maintainers/selul)[@selul](https://github.com/selul)

---

Top Contributors

[![carlalexander](https://avatars.githubusercontent.com/u/654684?v=4)](https://github.com/carlalexander "carlalexander (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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