toneflix-code/laravel-pay-pocket
Laravel Pay Pocket is a lightweight Laravel package for adding wallet and payment functionality to your application. It provides simple APIs for managing balances, transactions, and payment flows, making it easy to integrate secure pay-ins and payouts.
toneflix-code/laravel-pay-pocket to toneflix/laravel-pay-pocket — with a full namespace change — is a namespace-churn event. It is a legitimate, well-executed rename (major version, documented upgrade path), but for a PM it is evidence that this dependency's identity is still settling. That informs whether you allow it in payment-adjacent code paths, and whether you require an internal fork or wrapper interface.use statement and the published config, it surfaces how deeply the package is embedded. If migration is trivial, your abstraction boundary is healthy; if it is painful, that is a signal to introduce a domain interface now, before the next rename.Consider it when:
^4.0, run the two-step Composer swap, and keep the namespace change in a single PR.Look elsewhere when:
Migration note for planning: the upgrade is mechanical but wide — composer remove toneflix-code/laravel-pay-pocket, composer require toneflix/laravel-pay-pocket:^4.0, then update all imports and the published config namespace. Budget it as a low-effort, cross-cutting change: hours of work, but it touches every file that references the package and must be sequenced with the Laravel/PHP bump, not after it.
For executives: This is a routine major-version release of a wallet/balance library — a rename and a framework-support bump, not a new capability. The decision it forces is a scheduling one: adopting 4.0 commits us to Laravel 12/13 and PHP 8.3+, which we likely want anyway. Cost is small and mechanical; the real consideration is that this is a small, single-maintainer dependency sitting near money-handling logic, so we should treat it as a component we are prepared to own rather than a vendor relationship. Recommendation: upgrade on our platform-upgrade timeline, wrap it behind an internal interface so a future rename is a one-file change, and keep the option to fork.
For engineering: 4.0.0 is a breaking release with a clean upgrade path: vendor and namespace move from toneflix-code/laravel-pay-pocket / ToneflixCode\LaravelPayPocket to toneflix/laravel-pay-pocket / Toneflix\LaravelPayPocket. Constraints tighten to PHP ^8.3|^8.4 and Illuminate ^12.0|^13.0; dev tooling moves to Testbench ^10.11|^11.1 and Pest ^4, with CI covering Laravel 12 and 13. The rename is a find-and-replace across imports plus the published config — low risk, high blast radius, so do it in an isolated PR with the Composer swap and expect no behavioral changes. Two things to watch: we lose the ability to patch against Laravel ≤11, and we should avoid letting the package's namespace leak into domain code — put an adapter in front of it now, while the migration is already forcing us to touch every call site.
How can I help you explore Laravel packages today?