Search by

stackski / stackstra-laravel

stackski

Laravel service provider bridge for the Stackstra PHP helper library.

Package info

github.com/STACKSKI/STACKSTRA-LARAVEL

pkg:composer/stackski/stackstra-laravel

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2026-08-12 18:23 UTC

This package is auto-updated.

Last update: 2026-11-14 05:56:21 UTC


README

A service provider that integrates STACKSTRA, a standalone PHP helper library, with Laravel.

  • Namespace: Stackstra\Laravel\
  • Requires: PHP ^8.5, Laravel 11.x, 12.x or 13.x
  • Install: composer require stackski/stackstra-laravel

What it does

Registers Stackstra\Laravel\StackstraServiceProvider, auto-discovered by Laravel.

  • Syncs Stackstra\Etc\Debug with your app's config('app.debug') setting, so STACKSTRA's debug-only behavior follows your environment automatically.
  • Binds Stackstra\Lock\Lock as a singleton, resolvable via the container. The lock file path is read from config('stackstra.lock_path') and falls back to storage_path('app/stackstra.lock') if unset.

Everything else in STACKSTRA works as plain PHP with no Laravel-specific wiring needed. See the core library docs for the full class reference.

Configuration

This package does not publish a config file. To change the lock path, create your own config/stackstra.php in your application:

<?php

// config/stackstra.php
return [
    'lock_path' => env('STACKSTRA_LOCK_PATH', storage_path('app/stackstra.lock')),
];

About

Maintained by STACKSKI Inc., an IT consulting and Laravel web development company. Visit us at stackski.com/laravel (US) or stackski.ca/laravel (Canada).

STACKSTRA Laravel Bridge is maintained independently by STACKSKI and is not affiliated with, sponsored by, or endorsed by Laravel.

License

MIT