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

ActiveLibrary[API Development](/categories/api)

ominity/laravel-ominity
=======================

Ominity API client wrapper for Laravel

v1.4.4(3w ago)0151MITPHPPHP ^8.1|^8.2CI passing

Since Sep 15Pushed 3w agoCompare

[ Source](https://github.com/ominity/laravel-ominity)[ Packagist](https://packagist.org/packages/ominity/laravel-ominity)[ Docs](https://github.com/ominity/laravel-ominity)[ RSS](/packages/ominity-laravel-ominity/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (14)Versions (30)Used By (0)

Ominity for Laravel
===================

[](#ominity-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/fd39ab8c1b14823967b495a3c821d18695881a0d949d6d12027280a803180cb6/68747470733a2f2f706f7365722e707567782e6f72672f6f6d696e6974792f6c61726176656c2d6f6d696e6974792f762f737461626c65)](https://packagist.org/packages/ominity/laravel-ominity)[![Total Downloads](https://camo.githubusercontent.com/13785ea8a828dae08349b17ec09b2834ad90c71862eba18dee1ad9d86d08e5b5/68747470733a2f2f706f7365722e707567782e6f72672f6f6d696e6974792f6c61726176656c2d6f6d696e6974792f646f776e6c6f616473)](https://packagist.org/packages/ominity/laravel-ominity)[![License](https://camo.githubusercontent.com/1990270b07627351b2c911d602315c13f6c509f526edd5f92eb0ac07aaea3645/687474703a2f2f706f7365722e707567782e6f72672f6f6d696e6974792f6c61726176656c2d6f6d696e6974792f6c6963656e7365)](https://packagist.org/packages/ominity/laravel-ominity)

**Requirements**
----------------

[](#requirements)

- An active installation of [Ominity](https://www.ominity.com).
- Up-to-date OpenSSL (or other SSL/TLS toolkit)
- PHP &gt;= 8.1
- [Laravel](https://www.laravel.com) &gt;= 10.0

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

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require ominity/laravel-ominity
```

After installing the package, the Ominity service will be available for use in your Laravel application.

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

[](#configuration)

Publish the configuration file using the following Artisan command:

```
php artisan vendor:publish --provider="Ominity\Laravel\OminityServiceProvider"
```

This will create a `config/ominity.php` file where you can configure the package settings.

Forms / reCAPTCHA
-----------------

[](#forms--recaptcha)

The form renderer supports two reCAPTCHA drivers:

- `classic`: uses `api.js` and backend `siteverify`
- `enterprise`: uses `enterprise.js` and backend `projects.assessments.create`

Classic mode remains the default for backwards compatibility, including migrated legacy keys that still use the classic frontend/backend calls.

Example classic v3 configuration:

```
OMINITY_FORMS_RECAPTCHA_ENABLED=true
OMINITY_FORMS_RECAPTCHA_DRIVER=classic
OMINITY_FORMS_RECAPTCHA_VERSION=v3
OMINITY_FORMS_RECAPTCHA_SITE_KEY=your_site_key
OMINITY_FORMS_RECAPTCHA_SECRET_KEY=your_secret_key
OMINITY_FORMS_RECAPTCHA_ACTION=submit
OMINITY_FORMS_RECAPTCHA_SCORE=0.5
```

Example reCAPTCHA Enterprise score-based configuration:

```
OMINITY_FORMS_RECAPTCHA_ENABLED=true
OMINITY_FORMS_RECAPTCHA_DRIVER=enterprise
OMINITY_FORMS_RECAPTCHA_VERSION=v3
OMINITY_FORMS_RECAPTCHA_SITE_KEY=your_site_key
OMINITY_FORMS_RECAPTCHA_ENTERPRISE_PROJECT_ID=your-google-cloud-project-id
OMINITY_FORMS_RECAPTCHA_ENTERPRISE_API_KEY=your-google-cloud-api-key
OMINITY_FORMS_RECAPTCHA_ACTION=submit
OMINITY_FORMS_RECAPTCHA_SCORE=0.5
```

If Google Cloud Console shows examples that use `grecaptcha.enterprise.execute(...)`, you should use the `enterprise` driver instead of `classic`.

Tracking
--------

[](#tracking)

The package now includes a first-party visitor/event tracking layer.

Add the existing script directive to your layout:

```
@ominity_scripts
```

That now does two things:

1. loads `vendor/ominity/ominity.js`
2. boots the tracking runtime with the current visitor ID, authenticated user ID, route endpoint, and page metadata

Tracked automatically in the browser:

- page views
- session starts
- scroll depth milestones
- outbound link clicks
- file downloads
- native form submits
- custom click events via `data-ominity-event`

Configuration lives under `config/ominity.php` in the `tracking` section.

Important environment flags:

```
OMINITY_TRACKING_ENABLED=true
OMINITY_TRACKING_SEND_IN_LOCAL=false
OMINITY_TRACKING_LOG_IN_LOCAL=true
```

Local environment behavior defaults to logging events instead of forwarding them to Ominity.

For manual page metadata you can use:

```
@ominity_tracking_meta([
    'origin_resource' => [
        'resource' => 'product',
        'id' => $product->id,
        'slug' => $product->slug,
    ],
])
```

For server-side access:

```
Ominity::tracking()->track([
    'event' => 'purchase',
    'visitorId' => Ominity::tracking()->getVisitorId(),
    'metadata' => [
        'order_id' => $order->id,
    ],
]);
```

License
-------

[](#license)

[The MIT License](LICENSE.md). Copyright (c) 2024, Ominity (Connexeon BV)

###  Health Score

47

↑

FairBetter than 93% of packages

Maintenance95

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~22 days

Recently: every ~0 days

Total

29

Last Release

25d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167320342?v=4)[Ominity](/maintainers/ominity)[@ominity](https://github.com/ominity)

---

Top Contributors

[![timdesm](https://avatars.githubusercontent.com/u/30378686?v=4)](https://github.com/timdesm "timdesm (111 commits)")

---

Tags

apilaravelominity

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[smodav/mpesa

M-Pesa API implementation

16467.9k1](/packages/smodav-mpesa)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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