{"id":22292019,"url":"https://github.com/aedart/athenaeum-audit","last_synced_at":"2025-07-01T05:34:48.682Z","repository":{"id":56899573,"uuid":"361643794","full_name":"aedart/athenaeum-audit","owner":"aedart","description":"[READ ONLY] Athenaeum Audit package - see https://github.com/aedart/athenaeum","archived":false,"fork":false,"pushed_at":"2025-06-27T07:59:17.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T08:41:33.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aedart.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-26T06:37:51.000Z","updated_at":"2025-06-27T07:59:20.000Z","dependencies_parsed_at":"2023-11-17T09:53:22.985Z","dependency_job_id":"e6dcd409-d4cf-4359-a10d-1d548785d7ac","html_url":"https://github.com/aedart/athenaeum-audit","commit_stats":{"total_commits":162,"total_committers":2,"mean_commits":81.0,"dds":"0.38888888888888884","last_synced_commit":"9aab6b4c8593912434c2c04e63293659b3a9ccc8"},"previous_names":[],"tags_count":120,"template":false,"template_full_name":null,"purl":"pkg:github/aedart/athenaeum-audit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-audit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-audit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-audit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-audit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aedart","download_url":"https://codeload.github.com/aedart/athenaeum-audit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-audit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262227400,"owners_count":23278243,"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","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-03T17:19:18.357Z","updated_at":"2025-07-01T05:34:48.413Z","avatar_url":"https://github.com/aedart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Athenaeum Audit\n\nAn [audit trail](https://en.wikipedia.org/wiki/Audit_trail) package for Laravel Eloquent Model.\nIt is able to store the changes made on a given model into an \"audit trails\" table, along with the attributes that have been changed.\n\n## Example\n\n```php\nnamespace Acme\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Aedart\\Audit\\Traits\\RecordsChanges;\n\nclass Category extends Model\n{\n    use RecordsChanges;\n}\n```\n\nLater in your application...\n\n```php\n$category = Category::create( [ 'name' =\u003e 'My category' ]);\n\n// Obtain the \"changes\" made (in this case a \"create\" event) \n$changes = $category-\u003erecordedChanges()-\u003efirst();\n\nprint_r($changes-\u003etoArray());\n\n// Example output:\n//    [\n//      \"id\" =\u003e 1\n//      \"user_id\" =\u003e null\n//      \"auditable_type\" =\u003e \"Acme\\Models\\Category\"\n//      \"auditable_id\" =\u003e \"24\"\n//      \"type\" =\u003e \"created\"\n//      \"message\" =\u003e \"Recording created event\"\n//      \"original_data\" =\u003e null\n//      \"changed_data\" =\u003e [\n//        \"name\" =\u003e \"My Category\"\n//        \"id\" =\u003e 1\n//      ]\n//      \"performed_at\" =\u003e \"2021-04-28T11:07:24.000000Z\"\n//      \"created_at\" =\u003e \"2021-04-28T11:07:24.000000Z\"\n//    ]\n```\n\n## Documentation\n\nPlease read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.\n\n## Repository\n\nThe mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)\n\n## Versioning\n\nThis package follows [Semantic Versioning 2.0.0](http://semver.org/)\n\n## License\n\n[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-audit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faedart%2Fathenaeum-audit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-audit/lists"}