{"id":16674005,"url":"https://github.com/sensorario/notifyii","last_synced_at":"2025-04-09T20:07:09.868Z","repository":{"id":4888514,"uuid":"6043926","full_name":"sensorario/notifyii","owner":"sensorario","description":null,"archived":false,"fork":false,"pushed_at":"2012-12-20T00:33:05.000Z","size":432,"stargazers_count":9,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:07:05.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com/extension/notifyii/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bmabey/clj-airbrake","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensorario.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-02T11:33:00.000Z","updated_at":"2019-11-17T12:18:14.000Z","dependencies_parsed_at":"2022-09-15T21:22:34.578Z","dependency_job_id":null,"html_url":"https://github.com/sensorario/notifyii","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fnotifyii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fnotifyii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fnotifyii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fnotifyii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensorario","download_url":"https://codeload.github.com/sensorario/notifyii/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"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-10-12T12:29:02.778Z","updated_at":"2025-04-09T20:07:09.844Z","avatar_url":"https://github.com/sensorario.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Notifyii\n========\n\n    If you want to use notifyii with roles, extensions like \"rights\" or RBAC are required.\n\n    Be shure to have the same 'db' configuratiion in these files:\n    protected/config/main.php\n    protected/config/console.php\n\nTo install notifyii, navigate to the forlder \"protected/modules\" of your project. If your project does not have any \"modules\" folder, just create id. Then, run the command:\n\n    $ git clone git@github.com:sensorario/notifyii\n\nNow you just need to add module to confi file:\n\n    'modules'=\u003earray(\n        'notifyii',\n    ),\n\nAnd try to load these routes:\n\n    index.php?r=notifyii\n    index.php?r=notifyii/modelNotifyii\n    index.php?r=notifyii/notifyiiReads\n\nThe first one show you a sample page that create a sample notification. The second one show you a crud to alter notifications.\n\nIf you want you can add these items to views/layouts/main.php file:\n\n    array('label'=\u003e'Notifyii', 'url'=\u003earray('/notifyii')),\n    array('label'=\u003e'ModelNotifyii', 'url'=\u003earray('/notifyii/modelNotifyii')),\n    array('label'=\u003e'NotifyiiReads', 'url'=\u003earray('/notifyii/notifyiiReads')),\n\nRun migrations\n--------------\n\n    /var/www/YOUR_APP_NAME/protected$ ./yiic migrate --migrationPath=webroot.modules.notifyii.migrations\n\nNotify the end of the world\n---------------------------\n\n    $notifyii = new Notifyii();\n    $notifyii-\u003etitle('News from Mayans!');\n    $notifyii-\u003emessage('The end of the world');\n    $notifyii-\u003eexpire(new DateTime(\"21-12-2012\"));\n    $notifyii-\u003efrom(\"-1 week\");\n    $notifyii-\u003eto(\"+1 day\");\n    $notifyii-\u003erole(\"admin\");\n    $notifyii-\u003elink($this-\u003ecreateUrl('/site/index'));\n    $notifyii-\u003esave();\n\nGet all notifications\n---------------------\n\n    ModelNotifyii::getAllNotifications()\n    ModelNotifyii::getAllRoledNotifications()\n\nUsage\n-----\n\nSuppose to load all notifications in your controller:\n\n    public function actionIndex()\n    {\n        $this-\u003erender('index', array(\n            'notifiche' =\u003e ModelNotifyii::getAllNotifications()\n        ));\n    }\n\nIn the view, you can load all notifications\n\n    \u003c?php $number = 1; ?\u003e\n    \u003c?php while (Yii::app()-\u003euser-\u003ehasFlash('success' . ($number))) : ?\u003e\n        \u003c?php $message = Yii::app()-\u003euser-\u003egetFlash('success' . ($number)); ?\u003e\n        \u003cdiv class=\"flash-success info\"\u003e\n            \u003ch3\u003e\u003c?php echo $message['title']; ?\u003e\u003c/h3\u003e\n            \u003cdiv\u003e\u003c?php echo $message['message']; ?\u003e\u003c/div\u003e\n        \u003c/div\u003e\n        \u003c?php $number = $number + 1; ?\u003e\n    \u003c?php endwhile; ?\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fnotifyii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensorario%2Fnotifyii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fnotifyii/lists"}