{"id":28404074,"url":"https://github.com/simpleanalytics/laravel-package","last_synced_at":"2026-01-20T16:22:46.328Z","repository":{"id":59750559,"uuid":"536506382","full_name":"simpleanalytics/laravel-package","owner":"simpleanalytics","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-15T11:02:48.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-28T13:52:00.120Z","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/simpleanalytics.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}},"created_at":"2022-09-14T09:31:50.000Z","updated_at":"2022-09-15T06:54:52.000Z","dependencies_parsed_at":"2023-01-23T18:45:14.901Z","dependency_job_id":null,"html_url":"https://github.com/simpleanalytics/laravel-package","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/simpleanalytics/laravel-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleanalytics%2Flaravel-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleanalytics%2Flaravel-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleanalytics%2Flaravel-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleanalytics%2Flaravel-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleanalytics","download_url":"https://codeload.github.com/simpleanalytics/laravel-package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleanalytics%2Flaravel-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2025-06-01T19:11:24.815Z","updated_at":"2026-01-20T16:22:46.312Z","avatar_url":"https://github.com/simpleanalytics.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://simpleanalytics.com/?ref=github.com/simpleanalytics/django-plugin\"\u003e\n  \u003cimg src=\"https://assets.simpleanalytics.com/images/logos/logo-github-readme.png\" alt=\"Simple Analytics logo\" align=\"right\" height=\"62\" /\u003e\n\u003c/a\u003e\n\n# Laravel Package\n\n## Installing it\n\nInstall the plugin:\n\n1. Run\n```console\ncomposer require simpleanalytics/laravel-package\n```\n\nOr add repositories in composer.json\n\n```\n\"repositories\": [\n   {\n     \"url\": \"https://github.com/simpleanalytics/laravel-package\",\n      \"type\": \"git\"\n    }\n ],\n ```\n\nand add the package name in require with the branch name after the dev:\n\n`\"simpleanalytics/laravel-package\": \"dev-main\"`\n\n`\"simpleanalytics/laravel-package\": \"^1.0\"`\n\n\n## Using it\n\nInclude the scripts before your end body tag in your .blade template:\n```php\n    ...\n    @include('LaravelPackage::scripts')\n\u003c/body\u003e\n```\n## Configuration\nThe defaults are set in config/cors.php. Publish the config to copy the file to your own config:\n```console\nphp artisan vendor:publish --provider=\"SimpleAnalytics\\LaravelPackage\\SimpleAnalyticsServiceProvider\" --tag=\"config\"\n```\n\n## Track Api Request\nTo activate serverside tracking of the api activate track-api in your config file:\n```php\n'track-api' =\u003e true\n```\n\n## Hints\nWith version 5.4 or below, you must register your service providers manually in the providers section of the config/app.php configuration file in your laravel project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleanalytics%2Flaravel-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleanalytics%2Flaravel-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleanalytics%2Flaravel-package/lists"}