{"id":36392138,"url":"https://github.com/simplestats-io/laravel-client","last_synced_at":"2026-04-17T00:01:11.527Z","repository":{"id":231171912,"uuid":"657724758","full_name":"simplestats-io/laravel-client","owner":"simplestats-io","description":"Official Laravel client for SimpleStats.io","archived":false,"fork":false,"pushed_at":"2026-04-10T20:38:51.000Z","size":217,"stargazers_count":47,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-10T22:21:50.203Z","etag":null,"topics":["analytics","api","laravel","php","statistics"],"latest_commit_sha":null,"homepage":"https://simplestats.io/docs","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplestats-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-23T17:41:53.000Z","updated_at":"2026-04-10T20:38:55.000Z","dependencies_parsed_at":"2026-04-01T10:01:07.526Z","dependency_job_id":null,"html_url":"https://github.com/simplestats-io/laravel-client","commit_stats":null,"previous_names":["simplestats-io/laravel-client"],"tags_count":31,"template":false,"template_full_name":"laracraft-tech/package-skeleton-laravel","purl":"pkg:github/simplestats-io/laravel-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplestats-io%2Flaravel-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplestats-io%2Flaravel-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplestats-io%2Flaravel-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplestats-io%2Flaravel-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplestats-io","download_url":"https://codeload.github.com/simplestats-io/laravel-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplestats-io%2Flaravel-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"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":["analytics","api","laravel","php","statistics"],"created_at":"2026-01-11T15:54:01.499Z","updated_at":"2026-04-17T00:01:11.519Z","avatar_url":"https://github.com/simplestats-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Client for SimpleStats.io\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/simplestats-io/laravel-client.svg?style=flat-square)](https://packagist.org/packages/simplestats-io/laravel-client)\n[![Tests](https://github.com/simplestats-io/laravel-client/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/simplestats-io/laravel-client/actions/workflows/run-tests.yml)\n[![Check \u0026 fix styling](https://github.com/simplestats-io/laravel-client/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/simplestats-io/laravel-client/actions/workflows/fix-php-code-style-issues.yml)\n[![License](https://img.shields.io/packagist/l/simplestats-io/laravel-client.svg?style=flat-square)](https://packagist.org/packages/simplestats-io/laravel-client)\n\u003c!--[![Total Downloads](https://img.shields.io/packagist/dt/simplestats-io/laravel-client.svg?style=flat-square)](https://packagist.org/packages/simplestats-io/laravel-client)--\u003e\n\nThis is the official Laravel client to send tracking data to [https://simplestats.io](https://simplestats.io)\n\n## Introduction\n\n_**SimpleStats**_ is **analytics for Laravel**. Track **visitors**, **registrations**, and **payments**. Discover which channels actually drive **revenue**, not just traffic. With server-side tracking and filtering via [UTM](https://en.wikipedia.org/wiki/UTM_parameters) codes, you get detailed analysis of **marketing** efforts and clearly see which channels drive **revenue**. Effortlessly evaluate **ROI**, identify cost-effective user acquisition channels, and pinpoint the most effective performance channels. _SimpleStats_ is fully **GDPR compliant**, **ad-blocker proof**, and ships with a minimalistic, straightforward installation process.\n\n![screenshot](https://simplestats.io/images/screenshot.png)\n\n## Installation\n\nYou can install the client package via composer:\n\n```bash\ncomposer require simplestats-io/laravel-client\n```\n\nYou should publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"simplestats-client-config\"\n```\n\nThis is the default content of the config file, tweak it to your needs:\n\n```php\nuse App\\Models\\User;\nuse Illuminate\\Auth\\Events\\Login;\n\nreturn [\n\n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats Settings\n     |--------------------------------------------------------------------------\n     |\n     | SimpleStats is enabled by default. Disabling it will stop tracking your stats.\n     |\n     | You can provide an array of URI's that must be ignored (eg. 'api/*')\n     */\n\n    'enabled' =\u003e env('SIMPLESTATS_ENABLED', true),\n\n    'except' =\u003e [\n        'telescope*',\n        'horizon*',\n        'pulse*',\n        'admin*',\n        'api*',\n    ],\n    \n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats Blocked IPs\n     |--------------------------------------------------------------------------\n     |\n     | Define IP addresses or CIDR ranges that should be excluded from tracking.\n     | Supports single IPs (e.g. '192.168.1.1') and CIDR notation (e.g. '10.0.0.0/8').\n     |\n     */\n\n    'blocked_ips' =\u003e [\n        // '192.168.1.1',\n        // '10.0.0.0/8',\n        // '172.16.0.0/12',\n    ],\n\n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats API Credentials\n     |--------------------------------------------------------------------------\n     |\n     | Define your API credentials here. If you are not told to change the API URL,\n     | just keep the default. It's important to set an API token! You'll receive\n     | one, after creating your team and project on https://simplestats.io\n     |\n     */\n\n    'api_url' =\u003e env('SIMPLESTATS_API_URL', 'https://simplestats.io/api/v1/'),\n\n    'api_token' =\u003e env('SIMPLESTATS_API_TOKEN'),\n\n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats Queue\n     |--------------------------------------------------------------------------\n     |\n     | To avoid the tracking API calls block the whole request and for fault tolerance,\n     | we highly recommend using Laravel's built-in queue-system. Here you can define\n     | to which queue the tracking API calls should be dispatched and handled by.\n     |\n     */\n\n    'queue' =\u003e env('SIMPLESTATS_QUEUE', 'default'),\n\n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats Tracking Codes\n     |--------------------------------------------------------------------------\n     |\n     | Below you can set your tracking code URL param names. We already set some\n     | classical defaults for you, but you're free to change them as you like.\n     | Note that only the params which are listed here are getting tracked!\n     |\n     */\n\n    'tracking_codes' =\u003e [\n        'source' =\u003e ['utm_source', 'ref', 'referer', 'referrer'],\n        'medium' =\u003e ['utm_medium', 'adGroup', 'adGroupId'],\n        'campaign' =\u003e ['utm_campaign'],\n        'term' =\u003e ['utm_term'],\n        'content' =\u003e ['utm_content'],\n    ],\n\n    /*\n     |--------------------------------------------------------------------------\n     | SimpleStats Tracking Types\n     |--------------------------------------------------------------------------\n     |\n     | Here you can set three different tracking types. The first is the login\n     | event. If this event gets dispatched, we track a login. The second is\n     | the user model. If such a model is created, we track a registration.\n     |\n     | As the payment model is named very individually, we did not set any default here.\n     | Give it the name of the model which holds your payments or transactions data.\n     |\n     | See: https://simplestats.io/docs\n     |\n     */\n\n    'tracking_types' =\u003e [\n        'login' =\u003e [\n            'event' =\u003e Login::class,\n        ],\n\n        // Make sure this model implements the TrackablePerson or\n        // the TrackablePersonWithCondition Contract\n        'user' =\u003e [\n            'model' =\u003e User::class,\n        ],\n\n        // Make sure this model implements the TrackablePayment or\n        // the TrackablePaymentWithCondition contract\n        'payment' =\u003e [\n            'model' =\u003e null,\n        ],\n    ],\n];\n```\n\n## Documentation\n\nCheck out the full documentation here: [Official SimpleStats.io Documentation](https://simplestats.io/docs)\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Zacharias Creutznacher](https://github.com/sairahcaz)\n- [All Contributors](../../contributors)\n\n## License\n\nGNU General Public License v3.0 or later. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplestats-io%2Flaravel-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplestats-io%2Flaravel-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplestats-io%2Flaravel-client/lists"}