ahmdadl/ecom-php

Mongez package for Laravel with MongoDB support
11
Install
composer require ahmdadl/ecom-php
Latest Version:v5.2.0
PHP:>=8.4
License:MIT
Last Updated:Aug 30, 2026
Links: GitHub  ·  Packagist
Maintainer: abo3adel

Public Archive

Laravel Octane support

The package is safe to run under Laravel Octane with Laravel 11 and mongodb/laravel-mongodb v4.

Install Octane in your application:

composer require laravel/octane

When Octane is present, MongezOctaneServiceProvider is registered automatically and keeps the package state isolated between requests by resetting it on every RequestReceived event:

  • Mongez::reset() clears the request locale and cached storage file content.
  • JsonResourceManager::reset() discards per-request disable()/only() keys while preserving the keys registered at boot time.
  • Events::reset() discards per-request listeners while preserving the listeners that were registered during boot (config events and any events()->subscribe() calls made in service providers).
  • Repository resource and model static state is reset as well.

A defensive RequestTerminated listener also rolls back any database transaction that was left open during a request.

Notes for Octane users:

  • Declare Mongez events via config/mongez.php (events key) rather than calling events()->subscribe() at runtime, so they are re-applied consistently.
  • JsonResourceManager::disable() / JsonResourceManager::only() called at boot are preserved; the same calls made during a request are isolated to that request.

Related Packages

larva/laravel-octane

Supercharge your Laravel application's performance.

2 0
farmani/octane

Supercharge your Laravel application's performance.

4 0
laravel/octane

Supercharge your Laravel application's performance.

30,935,817 4,036
asamoahboateng/frankenphp-deploy

FrankenPHP + Traefik Docker deployment scaffolding for Laravel Octane projects.

114 0
adityarizqi/laradox

Plug-and-play Docker environment for Laravel with FrankenPHP, Nginx, and Octane...

82 91