Download the PHP package certamesh/gaze-laravel without Composer

On this page you can find all versions of the php package certamesh/gaze-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gaze-laravel

gaze-laravel

Latest Stable Version Total Downloads PHP Version Laravel Version Tests License

Pseudonymize PII / PHI / secrets before they cross the LLM boundary — one Gaze::clean() call out, Gaze::restore() back, fully reversible owner-side.

The model never sees real data, yet your app restores it losslessly — tokens map back through a signed, encrypted-at-rest session blob. The same call runs inside queues and long-lived agent loops, not just a single HTTP request, and subprocess failures arrive as typed, exit-bucketed exceptions.

gaze-laravel is the Laravel adapter for the gaze CLI contract. Detection logic lives upstream in Rust — this package never re-implements pseudonymization in PHP.

Contents

Requirements

Installation

Two steps:

php artisan gaze:install is the canonical setup path. It provisions the app end-to-end and finishes on a gaze:doctor green-check:

It is idempotent — safe to re-run. A failed run rolls .env back to its pre-install state.

Non-interactive / CI

Headless runs skip every prompt; the safety-net defaults to none unless you opt in:

Common flags (php artisan gaze:install --help lists them all):

Flag Effect
--skip-binary Don't download the gaze binary
--skip-ner Don't download the NER model
--safety-net=opf\|kiji\|none Pick the safety-net backend non-interactively
--force Re-run already-done steps (re-download binary, re-fetch NER)
--force-policy Also overwrite an existing policy.toml (destructive — off by default)
--no-doctor Skip the final gaze:doctor gate

Sub-commands

The umbrella composes three standalone commands you can run on their own for finer control:

Automating the binary install (optional)

gaze:install is explicit by design — nothing runs on composer install or composer update. Adopters who want the old auto-download behaviour back (the binary refreshed after every Composer update, no plugin) can wire the Composer-context installer into a post-update-cmd script in their app's composer.json:

Set GAZE_SKIP_BINARY_DOWNLOAD=1 to suppress that fetch (e.g. in CI, where the binary is provisioned separately). The GAZE_VERSION / GAZE_RELEASE_BASE overrides and the full config reference live in Configuration.

New here? Walk through the getting started guide.

Usage

See examples/clean-before-openai.php for a runnable clean → OpenAI → restore example.

Per-rule detection entries

GazeSession::$entries exposes each tokenized span as a readonly Entry DTO (class, raw, token, family). The array is empty for upstream releases that don't surface the field, so consumers can always iterate safely:

See Exceptions for the exit-bucket reference and Testing for fakes, assertions, and integration setup.

How is this different from regex / generic anonymization libraries?

Regex / generic anonymization libs gaze-laravel
Detection Hand-maintained PHP regex, usually English-centric Upstream Rust gaze — NER + validated rulepacks + locale packs, never re-implemented in PHP
Reversibility One-way redaction; the original is gone Tokens map back owner-side through a signed, encrypted-at-rest session blob
Failures Generic exceptions or silent pass-through Typed exceptions bucketed by exit class (caller / config / integrity / infra)
Runtime fit Built for a single HTTP request Queue-aware, with a long-lived daemon for multi-turn agent loops

Not what you're after? This is not in-process PHP detection — the Rust crate is the source of truth — and not a generic subprocess wrapper; it is specific to gaze. See the North Star non-goals.

Advanced surfaces

Opt-in surfaces — reach for them once the basic clean / restore round-trip is in place:

Documentation

Security

Session blobs are encrypted at rest with Laravel's encrypter, keyed by GAZE_ENCRYPTION_KEY or APP_KEY. Only the pseudonymized $session->cleanText should cross the model boundary; restore happens owner-side. See the Security model for guarantees, responsibilities, and compliance boundaries.

Known limitations

License

Apache-2.0 — see LICENSE.


All versions of gaze-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/encryption Version ^11.0|^12.0|^13.0
illuminate/process Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
symfony/process Version ^7.1.4 || ^8.0
symfony/http-client Version ^7.0 || ^8.0
devium/toml Version ^1.0.6 || ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package certamesh/gaze-laravel contains the following files

Loading the files please wait ...