{"id":36253639,"url":"https://github.com/jackjoe/activity-log","last_synced_at":"2026-01-11T07:03:35.618Z","repository":{"id":56995469,"uuid":"85616094","full_name":"jackjoe/activity-log","owner":"jackjoe","description":"A clean and simple Laravel 5 activity logger for logging website / application actions. Based on Regulus/ActivityLog","archived":false,"fork":false,"pushed_at":"2019-04-12T12:59:56.000Z","size":29,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-11T03:24:03.532Z","etag":null,"topics":["laravel","logging"],"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/jackjoe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-20T19:12:05.000Z","updated_at":"2023-08-01T12:23:49.000Z","dependencies_parsed_at":"2022-08-21T13:20:36.677Z","dependency_job_id":null,"html_url":"https://github.com/jackjoe/activity-log","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jackjoe/activity-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjoe%2Factivity-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjoe%2Factivity-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjoe%2Factivity-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjoe%2Factivity-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackjoe","download_url":"https://codeload.github.com/jackjoe/activity-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjoe%2Factivity-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28296941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"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":["laravel","logging"],"created_at":"2026-01-11T07:03:35.080Z","updated_at":"2026-01-11T07:03:35.609Z","avatar_url":"https://github.com/jackjoe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActivityLog\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/jackjoe/activity-log.svg?style=flat-square)](https://packagist.org/packages/jackjoe/activity-log)\n[![Build Status](https://travis-ci.org/jackjoe/activity-log.svg?branch=master)](https://travis-ci.org/jackjoe/activity-log)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jackjoe/activity-log/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jackjoe/activity-log/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/jackjoe/activity-log.svg?style=flat-square)](https://packagist.org/packages/jackjoe/activity-log)\n\n* [Installation](#installation)\n* [Basic Usage](#basic-usage)\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n## Installation\n\n### Basic installation, service provider registration, and aliasing:\n\nInstallation is done with composer, so add the package to your`composer.json`\nfile:\n\n    \"require\": {\n    \t\"jackjoe/activity-log\": \"0.3.*\"\n    },\n\nThen run `composer update`\n\n#### Laravel 5.5+\n\nLaravel 5.5 has auto discovery, you are done. If not see below.\n\n#### \u003c= Laravel 5.4\n\nRegister the service provider and alias in `app/config/app.php`. Add the\nfollowing to the `providers` array:\n\n    JackJoe\\ActivityLog\\ActivityLogServiceProvider::class,\n\nAnd add this to the `aliases` array:\n\n    'Activity' =\u003e JackJoe\\ActivityLog\\Models\\Activity::class,\n\n### Publishing migrations and configuration:\n\nTo publish this package's configuration, run this from the command line:\n\n    php artisan vendor:publish --provider=\"JackJoe\\ActivityLog\\ActivityLogServiceProvider\"\n\n\u003e **Note:** Migrations are only published; remember to run them when ready.\n\nTo run migration to create ActivityLog's table, run this from the command line:\n\n    php artisan migrate\n\n\u003ca name=\"basic-usage\"\u003e\u003c/a\u003e\n\n## Basic Usage\n\n### Logging user activity:\n\n```php\nActivity::log([\n  'contentId'   =\u003e $user-\u003eid,\n  'content' =\u003e 'User',\n  'action'      =\u003e 'ACTION',\n  'state'       =\u003e 'SUCCESS',\n  'details'     =\u003e 'Username: ' . $user-\u003eusername,\n  'data'        =\u003e json_encode($data)\n]);\n```\n\nThe above code will log an activity for the currently logged in user. The IP\naddress will automatically be saved as well.\n\n### Variable guidelines\n\n* `content`: type of content we are dealing with, can be set to match PHP class,\n  controller, model, ... It gives us more context where this action has taken\n  place.\n* `contentId` (option): id of content, in case of a model\n* `action`: method name, sub-action in method, ..\n* `state`: state of action such as `ERROR`, `SUCCESS`, `WRONG_CODE`, ...\n* `details`: more like meta date about current state\n* `data`: raw data, fetched content, posted content, ...\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\nBased on `Regulus/ActivityLog`.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more\ninformation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjoe%2Factivity-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackjoe%2Factivity-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjoe%2Factivity-log/lists"}