{"id":18977828,"url":"https://github.com/firoz-ahmad-likhon/codeigniter-audit-trail","last_synced_at":"2025-06-12T18:32:40.979Z","repository":{"id":220561997,"uuid":"150878833","full_name":"firoz-ahmad-likhon/codeigniter-audit-trail","owner":"firoz-ahmad-likhon","description":"CodeIgniter audit trail is a convenient way to track all users activities in the database.","archived":false,"fork":false,"pushed_at":"2024-11-19T08:09:03.000Z","size":7,"stargazers_count":16,"open_issues_count":7,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T19:30:22.207Z","etag":null,"topics":["audit-log","audit-trail","auditing","codeigniter","php","user-audit-trail"],"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/firoz-ahmad-likhon.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":"2018-09-29T15:44:14.000Z","updated_at":"2025-04-09T10:13:25.000Z","dependencies_parsed_at":"2024-02-02T19:30:16.235Z","dependency_job_id":"28ae9679-faa0-4682-8907-20ab86184098","html_url":"https://github.com/firoz-ahmad-likhon/codeigniter-audit-trail","commit_stats":null,"previous_names":["firoz-ahmad-likhon/codeigniter-audit-trail"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/firoz-ahmad-likhon/codeigniter-audit-trail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firoz-ahmad-likhon%2Fcodeigniter-audit-trail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firoz-ahmad-likhon%2Fcodeigniter-audit-trail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firoz-ahmad-likhon%2Fcodeigniter-audit-trail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firoz-ahmad-likhon%2Fcodeigniter-audit-trail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firoz-ahmad-likhon","download_url":"https://codeload.github.com/firoz-ahmad-likhon/codeigniter-audit-trail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firoz-ahmad-likhon%2Fcodeigniter-audit-trail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519255,"owners_count":22870327,"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":["audit-log","audit-trail","auditing","codeigniter","php","user-audit-trail"],"created_at":"2024-11-08T15:30:54.787Z","updated_at":"2025-06-12T18:32:40.939Z","avatar_url":"https://github.com/firoz-ahmad-likhon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Audit Trail #\r\n\r\nIt is an attempt to add user audit trail with CodeIgniter framework. I think it is a very convenient way to track user activities in the database.\r\n\r\n### Installation ###\r\n\r\n* Put all files into your projects directory respectively.\r\n* Check config.php for \u003ccode\u003e$config['subclass_prefix']\u003c/code\u003e this value. If it is not \u003ccode\u003e'MY_'\u003c/code\u003e then rename \u003ccode\u003eMY_DB_mysqli_driver.php\u003c/code\u003e and \u003ccode\u003eMY_Loader.php\u003c/code\u003e to your value.\r\n* To enable listening change set \u003ccode\u003e$config['audit_enable'] = TRUE\u003c/code\u003e in config/the trail.php\r\n* You can start/stop to record insert, update, delete. please read carefully the trail.php\r\n\r\nNow you are ready to browse the application.\r\n\r\n### Database Table ###\r\n* Run the sql in your database.\r\n\r\n\r\n        CREATE TABLE `user_audit_trails` (\r\n          `id` int(11) NOT NULL,\r\n          `user_id` int(11) NOT NULL,\r\n          `event` enum('insert','update','delete') NOT NULL,\r\n          `table_name` varchar(128) NOT NULL,\r\n          `old_values` text,\r\n          `new_values` text NOT NULL,\r\n          `url` varchar(255) NOT NULL,\r\n          `name` varchar(128) NOT NULL,\r\n          `ip_address` varchar(45) NOT NULL,\r\n          `user_agent` varchar(255) NOT NULL,\r\n          `created_at` timestamp NULL DEFAULT NULL\r\n        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n    \r\n \r\n        ALTER TABLE `user_audit_trails`\r\n          ADD PRIMARY KEY (`id`);\r\n    \r\n        ALTER TABLE `user_audit_trails`\r\n          MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\r\n        COMMIT;\r\n    \r\n### Further Work ###\r\n\r\nNow it is your turn to make model and view for presenting the audit data. Happy coding..\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiroz-ahmad-likhon%2Fcodeigniter-audit-trail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiroz-ahmad-likhon%2Fcodeigniter-audit-trail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiroz-ahmad-likhon%2Fcodeigniter-audit-trail/lists"}