{"id":22916654,"url":"https://github.com/synergitech/cronitor-laravel","last_synced_at":"2025-11-09T14:04:53.738Z","repository":{"id":48876652,"uuid":"361804618","full_name":"SynergiTech/cronitor-laravel","owner":"SynergiTech","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-19T10:55:33.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-30T14:52:53.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SynergiTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-26T15:42:14.000Z","updated_at":"2024-09-19T10:54:28.000Z","dependencies_parsed_at":"2025-05-12T17:04:39.411Z","dependency_job_id":"3d3c2b31-b494-4e37-a66b-d6660a9ecccc","html_url":"https://github.com/SynergiTech/cronitor-laravel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SynergiTech/cronitor-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcronitor-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcronitor-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcronitor-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcronitor-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SynergiTech","download_url":"https://codeload.github.com/SynergiTech/cronitor-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcronitor-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274589627,"owners_count":25312971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T06:14:08.154Z","updated_at":"2025-11-09T14:04:48.681Z","avatar_url":"https://github.com/SynergiTech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cronitor-laravel\n[![Tests](https://github.com/SynergiTech/cronitor-laravel/actions/workflows/tests.yaml/badge.svg)](https://github.com/SynergiTech/cronitor-laravel/actions/workflows/tests.yaml)\n\n## Install\n```sh\ncomposer require \"synergitech/cronitor-laravel\"\n```\n\n### Version compatibility\n* Laravel 6.x-8.x\n* PHP 7.3-7.4, 8.0\n\n### Configuration\n```sh\nphp artisan vendor:publish --provider=\"SynergiTech\\Cronitor\\Laravel\\CronitorServiceProvider\"\n```\n\n## Usage\n### Automatically monitoring a Job\nYour Jobs can be automatically monitored by this package by implementing the `HasCronitorKey` contract.\n```php\nuse SynergiTech\\Cronitor\\Laravel\\Contracts\\HasCronitorKey;\n\nclass YourJob implements HasCronitorKey\n{\n    public function getMonitorKey(): string\n    {\n        return 'your monitor key from cronitor.io';\n    }\n}\n```\n\nWhen your Job is dispatched, a Dispatcher middleware will automatically send telemetry events based on whether your job is successful.\n\n### Monitoring arbitrary code\nAdditionally, you can monitor any callback via the `Cronitor` facade:\n```php\nuse SynergiTech\\Cronitor\\Laravel\\Facades\\Cronitor;\n\nclass YourClass\n{\n    public function handle()\n    {\n        Cronitor::monitorJob('your monitor key', function () {\n            throw new \\Exception('This will automatically be reported as a fail event');\n        });\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fcronitor-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynergitech%2Fcronitor-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fcronitor-laravel/lists"}