{"id":37236478,"url":"https://github.com/dnj/laravel-error-tracker-server","last_synced_at":"2026-01-16T04:53:36.845Z","repository":{"id":65549926,"uuid":"594534971","full_name":"dnj/laravel-error-tracker-server","owner":"dnj","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-13T02:07:28.000Z","size":227,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T04:55:44.599Z","etag":null,"topics":["error-tracking","laravel"],"latest_commit_sha":null,"homepage":"","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/dnj.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}},"created_at":"2023-01-28T21:02:16.000Z","updated_at":"2023-03-01T10:00:09.000Z","dependencies_parsed_at":"2024-11-25T11:31:29.735Z","dependency_job_id":"caab85bf-b3bf-4e10-bc98-3a882d4f346a","html_url":"https://github.com/dnj/laravel-error-tracker-server","commit_stats":{"total_commits":129,"total_committers":2,"mean_commits":64.5,"dds":"0.054263565891472854","last_synced_commit":"70376b7155d2340a45c4d0da872c1ee0cb170b00"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dnj/laravel-error-tracker-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Flaravel-error-tracker-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Flaravel-error-tracker-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Flaravel-error-tracker-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Flaravel-error-tracker-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnj","download_url":"https://codeload.github.com/dnj/laravel-error-tracker-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Flaravel-error-tracker-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["error-tracking","laravel"],"created_at":"2026-01-15T04:14:46.634Z","updated_at":"2026-01-15T04:14:47.226Z","avatar_url":"https://github.com/dnj.png","language":"PHP","readme":"# Laravel Error Tracker 📥\n\n![Packagist Dependency Version](https://img.shields.io/packagist/v/dnj/laravel-error-tracker-server?style=flat-square)\n![GitHub all releases](https://img.shields.io/packagist/dt/dnj/laravel-error-tracker-server?style=flat-square)\n![GitHub](https://img.shields.io/github/license/dnj/laravel-error-tracker-server?style=flat-square)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/dnj/laravel-error-tracker-server/ci.yml)\n\n## Introduction\n\nThis package is specifically built for **laravel** error tracking.\n\n* Features include:\n    * Application Management\n    * Device Management\n    * Log Management\n* Latest versions of PHP and PHPUnit and PHPCsFixer\n* Best practices applied:\n    * [`README.md`](https://github.com/dnj/laravel-error-tracker-server/blob/master/README.md) (badges included)\n    * [`LICENSE`](https://github.com/dnj/laravel-error-tracker-server/blob/master/LICENSE)\n    * [`composer.json`](https://github.com/dnj/laravel-error-tracker-server/blob/master/composer.json)\n    * [`phpunit.xml`](https://github.com/dnj/laravel-error-tracker-server/blob/master/phpunit.xml)\n    * [`.gitignore`](https://github.com/dnj/laravel-error-tracker-server/blob/master/.gitignore)\n    * [`.php-cs-fixer.php`](https://github.com/dnj/laravel-error-tracker-server/blob/master/.php-cs-fixer.php)\n\n## Installation\n\nRequire this package with composer.\n\n```shell\ncomposer require dnj/laravel-error-tracker-server\n```\n\nLaravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\n#### Copy the package config to your local config with the publish command:\n\n```shell\nphp artisan vendor:publish --provider=\"dnj\\ErrorTracker\\Laravel\\Server\\ServiceProvider\"\n```\n\n#### Config file\n\n```php\n\u003c?php\n\nreturn [\n    // Define your user model class for connect entities to users.\n    'user_model' =\u003e \\dnj\\AAA\\Models\\User::class,\n\n    'routes' =\u003e [\n        'enable' =\u003e true,\n        'prefix' =\u003e 'log', // example: log, device, etc ... , \n    ],\n];\n\n```\n\n---\n\nℹ️ **Note**\n\u003e User activity logs are **disabled** by default, if you want to save them set `$userActivityLog` to true.\n\nExample :\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IAppManager;\nuse dnj\\ErrorTracker\\Contracts\\IDeviceManager;\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\nuse dnj\\ErrorTracker\\Contracts\\LogLevel;\n\n$appManager = app(IAppManager::class);\n\n$app = $appManager-\u003estore(\n  title: 'Android mobile app',\n  owner: 1,\n  meta: ['key' =\u003e 'value']),\n  userActivityLog: false,\n);\n\n$deviceManager = app(IDeviceManager::class);\n\n$device = $deviceManager-\u003estore(\n  title: 'Nokia mobile',\n  owner: 1,\n  meta: ['serialNo' =\u003e 44514526985]),\n  userActivityLog: false,\n);\n\n\n$logManager = app(ILogManager::class);\n\n$log = $logManager-\u003estore(\n  app: $app,\n  device: $device,\n  level: LogLevel::INFO,\n  message: 'App just installed',\n  data: ['version' =\u003e \"1.0.0\"]\n);\n```\n\n## Working With Application:\n\n* Search Applications:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IAppManager;\n\n$appManager = app(IAppManager::class);\n\n$apps = $appManager-\u003esearch(\n  filters: [\n    'title' =\u003e 'mobile app'\n    'owner' =\u003e 2\n  ],\n);\n```\n\n* Create new Application:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IAppManager;\n\n$appManager = app(IAppManager::class);\n\n$app = $appManager-\u003estore(\n  title: 'Android mobile app',\n  owner: 1,\n  meta: ['key' =\u003e 'value']),\n  userActivityLog: false,\n); \n```\n\n* Update Application:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IAppManager;\n\n$appManager = app(IAppManager::class);\n\n$app = $appManager-\u003eupdate(\n  app: 1,\n  changes: [\n    'title' =\u003e 'new title',\n    'owner' =\u003e 2,\n  ],\n  userActivityLog: true,\n); \n```\n\n* Delete application:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IAppManager;\n\n$appManager = app(IAppManager::class);\n\n$appManager-\u003edestroy(\n  log: 1,\n  userActivityLog: false,\n);\n\n```\n\n***\n\n## Working With Device:\n\n* Search Device:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IDeviceManager;\n\n$deviceManager = app(IDeviceManager::class);\n\n$devices = $deviceManager-\u003esearch(\n  filters: [\n    'title' =\u003e 'Nokia Mobile'\n    'owner' =\u003e 2\n  ],\n);\n```\n\n* Create new device:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IDeviceManager;\n\n$deviceManager = app(IDeviceManager::class);\n\n$device = $deviceManager-\u003estore(\n  title: 'Nokia mobile',\n  owner: 1,\n  meta: ['key' =\u003e 'value']),\n  userActivityLog: false,\n); \n```\n\n* Update Device:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IDeviceManager;\n\n$deviceManager = app(IDeviceManager::class);\n\n$device = $deviceManager-\u003eupdate(\n  device: 3,\n  changes: [\n    'title' =\u003e 'My Nokia Mobile',\n    'owner' =\u003e 2,\n    'meta' =\u003e ['serialNo' =\u003e 55245252]\n  ],\n  userActivityLog: true,\n); \n\n```\n\n* Delete application:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\IDeviceManager;\n\n$deviceManager = app(IDeviceManager::class);\n\n$deviceManager-\u003edestroy(\n  log: 3,\n  userActivityLog: false,\n);\n```\n\n***\n\n## Working With Log:\n\n* Search Device:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\nuse dnj\\ErrorTracker\\Contracts\\LogLevel;\n\n$logManager = app(ILogManager::class);\n\n$logs = $logManager-\u003esearch(\n  filters: [\n    'apps' =\u003e [1,2],\n    'devices' =\u003e [1],\n    'levels' =\u003e [LogLevel::DEBUG],\n    'message' =\u003e 'important flag',\n    'unread' =\u003e true,\n  ]\n);\n```\n\n* Create new log:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\nuse dnj\\ErrorTracker\\Contracts\\LogLevel;\n\n$logManager = app(ILogManager::class);\n\n$log = $logManager-\u003estore(\n  app: 1,\n  device: 1,\n  level: LogLevel::INFO,\n  message: 'App has been started',\n);\n```\n\n* Mark as read log:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\nuse dnj\\ErrorTracker\\Contracts\\LogLevel;\n\n$logManager = app(ILogManager::class);\n\n$log = $logManager-\u003emarkAsRead(\n  log: 44,\n  user: 3\n);\n```\n* Mark as unread log:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\nuse dnj\\ErrorTracker\\Contracts\\LogLevel;\n\n$logManager = app(ILogManager::class);\n\n$log = $logManager-\u003emarkAsUnread(\n  log: 44,\n);\n```\n\n* Delete log:\n\n```php\nuse dnj\\ErrorTracker\\Contracts\\ILogManager;\n\n$logManager = app(ILogManager::class);\n\n$logManager-\u003edestroy(\n  log: 44,\n  userActivityLog: true,\n);\n```\n\n***\n\n## Testing\n\nYou can run unit tests with PHP Unit:\n\n```php\n./vendor/bin/phpunit\n```\n\n\n## Contribution\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any\ncontributions you make are greatly appreciated.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also\nsimply open an issue with the tag \"enhancement\". Don't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Security\n\nIf you discover any security-related issues, please email [security@dnj.co.ir](mailto:security@dnj.co.ir) instead of\nusing the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please\nsee [License File](https://github.com/dnj/laravel-error-tracker-server/blob/master/LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnj%2Flaravel-error-tracker-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnj%2Flaravel-error-tracker-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnj%2Flaravel-error-tracker-server/lists"}