mindtwo/two-tility
mindtwo/two-tility is a Laravel utility package from mindtwo that bundles reusable helpers, traits, and convenience tools for common development tasks. It aims to streamline everyday PHP and Laravel workflows, reduce boilerplate, and keep application code cleaner and more consistent.
BaseApiClient and the package configuration file. The key setting for most integrations is retries, which controls how failed requests are retried.1.0.2 or later. Earlier releases had a retry callback signature mismatch on Laravel 12/13, so configured retries did not actually match connection failures or 429 responses.BaseApiClient, configure retries for idempotent reads, and call it from a service or job rather than from controllers directly.retries setting.429 response is retried according to the retries setting.BaseApiClient for each API and keep endpoint methods thin: build the request, call the base client, return a typed result or DTO.GET, HEAD, and other idempotent calls. For POST/PATCH/DELETE, require an idempotency key or explicit opt-in before retrying.429 responses, not just successful 200 responses. On Laravel 12/13, assert that the configured retry count is actually applied.Retry-After on 429; verify whether the package honors it or whether the client should translate it into a delay.^1.0.2 in composer.json if retry reliability matters for the integration.1.0.2 before trusting retries. In earlier versions on Laravel 12/13, the retry callback used the wrong signature and never matched. The setting may have appeared configured while doing nothing.429 responses. Confirm whether timeouts, DNS failures, 5xx responses, and other exceptions follow the same path.POST can duplicate records or charges. Use idempotency keys or disable retries for unsafe methods.1.0.2 retry correction, remain easy to adopt.How can I help you explore Laravel packages today?