it-blaster/counter-management-bundle
A PHP bundle for managing counters in your application. It offers reusable components to define, track, and update counter values, helping keep counter logic organized and consistent. Suitable for projects using bundle-based PHP frameworks such as Symfony.
Start with the package README, composer.json, service provider, facade, and published config. Confirm the supported Laravel/PHP versions and whether config/service provider auto-discovery is enabled. The 0.1.1 release note is only a Yandex Metrika documentation link for objects/enableall.xml, so treat this as an additive/pre-1.0 release and inspect the actual enableAll method signature before relying on it.
Publish any package config and set the Yandex Metrika OAuth token and counter ID via environment/config. Do not call env() directly outside config. For the first smoke test, resolve the client from the container, perform a read-only call for a known counter, then run enableAll against a non-production counter and inspect the raw response.
First day-to-day use case: after provisioning a tenant/site or importing Metrika objects, bulk-enable all relevant objects for that counter from an artisan command or queued job rather than from a controller.
MetrikaService::enableAllObjects(int $counterId). This keeps controllers thin and gives you one place to map exceptions, log requests, and adapt to future package API changes.enableAll operations through queued jobs or artisan commands. Use ShouldQueue, sensible retries/backoff, and log the counter ID and response status for each attempt.metrika:enable-all {counter} {--dry-run} {--force} so operators can preview impact and avoid accidental production-wide changes.enableAll is likely broad and permission-sensitive. Verify the token has the required Yandex Metrika scopes, the user can manage the counter, and you understand whether it enables all objects or only a subset..xml path. Confirm the response format your package returns and parse/handle XML or JSON accordingly; do not assume JSON.php artisan config:clear; cached config is a common cause of “it works locally but not in production.”How can I help you explore Laravel packages today?