{"id":14987381,"url":"https://github.com/amolkumargupta/reactiveci4","last_synced_at":"2025-03-21T18:42:27.913Z","repository":{"id":64739550,"uuid":"577912833","full_name":"AmolKumarGupta/ReactiveCi4","owner":"AmolKumarGupta","description":"Log activities in codeigniter 4","archived":false,"fork":false,"pushed_at":"2022-12-17T19:49:06.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T18:51:25.906Z","etag":null,"topics":["activity","ci4","codeigniter4","logger","reactiveci4"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/amol/reactiveci4","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/AmolKumarGupta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-13T20:17:26.000Z","updated_at":"2025-01-04T18:55:54.000Z","dependencies_parsed_at":"2023-01-29T18:01:06.836Z","dependency_job_id":null,"html_url":"https://github.com/AmolKumarGupta/ReactiveCi4","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmolKumarGupta%2FReactiveCi4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmolKumarGupta%2FReactiveCi4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmolKumarGupta%2FReactiveCi4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmolKumarGupta%2FReactiveCi4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmolKumarGupta","download_url":"https://codeload.github.com/AmolKumarGupta/ReactiveCi4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852116,"owners_count":20521151,"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":["activity","ci4","codeigniter4","logger","reactiveci4"],"created_at":"2024-09-24T14:14:32.011Z","updated_at":"2025-03-21T18:42:27.894Z","avatar_url":"https://github.com/AmolKumarGupta.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log activities in codeigniter 4.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/amol/reactiveci4.svg?style=flat-square)](https://packagist.org/packages/amol/reactiveci4)\n\nThe `amol/reactiveci4` helps to log activities of user in your website easily. It stores all activities in database table `activity`.\nIt helps to boost your work speed.\n\n#### Features\n1. Easy setup.\n2. Use Codeigniter Models.\n3. Easy to use.\n\n## Basic Example\n```php\nhelper('reactive');\nreactive($user, \"You updated the profile\");\n```\n\n## Advanced Example using Class\n```php\nuse Amol\\ReactiveCi4\\Reactive;\n\n$userModel = model('App\\Models\\UserModel');\n$user = $userModel-\u003efind(1);\n$properties = [\n    \"ip\" =\u003e \"127.0.0.1\"\n];\n$label = \"profile review\"\n\n$record = new Reactive();\n$record-\u003elog($user, \"admin changed user's profile photo\", $admin, $properties, $label);\n```\n\n## Installation\nyou can install the package via composer.\n```bash\ncomposer require amol/reactiveci4\n```\n\nAfter installing. run `spark` command\n```bash\nphp spark reactive:setup\n```\nit will create `Reactive` config and `Activity` model file.\nit also migrate `activity` table.\n\n## Documentation and Examples\n\n### Class Reactive\nhas function `log`\n```php\npublic function log(object $subject, string $text, object $causer=null,array $properties=[], string $label=null ): id|false\n```\n### Helper\nIt also provides helper\n```php\nfunction reactive(object $subject, string $text, object $causer=null,array $properties=[], string $label=null )\n```\nreturn id of activity instance or false on failure.\n\n### `Activity` Model\nYou can use model to retrieve data from activity table and also do crud operations with it. You can also customize the model.\n\n### Label\nLabel used to categories the record in different groups.\nYou can change its default value using config file.\n\n## Full documentation and Examples\nComing soon\n\n## Bugs \u0026 Issues\nIf you find any bugs. Dont hesitate to create a [issue](https://github.com/AmolKumarGupta/ReactiveCi4/issues).\n\n## Contributing\nPlease see [CONTRIBUTING](https://github.com/AmolKumarGupta/ReactiveCi4/blob/master/CONTRIBUTING.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famolkumargupta%2Freactiveci4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famolkumargupta%2Freactiveci4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famolkumargupta%2Freactiveci4/lists"}