toneflix/laravel-op
toneflix/laravel-op is a lightweight Laravel package by Toneflix that provides practical helpers for everyday application tasks. Install it via Composer and drop it into any Laravel project with minimal setup, making it easy to adopt alongside your existing stack.
toneflix/laravel-op is a payment-processor abstraction for Laravel: it lets you dispatch charges/transactions through a configurable driver (processor) behind a single interface instead of wiring each gateway SDK by hand. Use it when you need one consistent "initiate payment → handle callback/webhook → reconcile" flow across processors.
composer require toneflix/laravel-op
php artisan vendor:publish --tag=laravel-op-config
.env (per processor). Keep sandbox/test keys in .env.testing and never commit real keys — the config file should read only from env().Start by reading config/laravel-op.php (the available processors and default driver) and the package's service provider. The config is the map of everything else.
new. Bind/inject the package's manager (or use its facade) and let it resolve the configured default driver; switch processors per-call only when you genuinely need to route (e.g. by currency or region).composer update — dependency migration can shift transitive constraints.null into positional optional arguments, verify call sites against the new signatures; prefer named arguments where the package allows them so a signature tightening doesn't silently shift arguments. This fix is what makes explicit null safe on PHP 8.4 — worth pinning PHP in CI to match production.toneflix-code prefix; the install line is now composer require toneflix/laravel-op. Older blog posts/snippets referencing the prefixed name may fail — check your composer.json requirement string..env, run php artisan config:clear in local/dev; in production remember config:cache. A cached config with stale keys is the most common "wrong processor / missing credentials" report.config/laravel-op.php rather than forking — keeps you upgrade-safe across future 4.x releases.How can I help you explore Laravel packages today?