{"id":15538643,"url":"https://github.com/rtamizh/realtime-push","last_synced_at":"2025-04-23T15:25:35.664Z","repository":{"id":57064887,"uuid":"71008997","full_name":"rtamizh/realtime-push","owner":"rtamizh","description":"Real-time push notification package for laravel","archived":false,"fork":false,"pushed_at":"2016-10-16T08:27:25.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-09T12:34:11.472Z","etag":null,"topics":["laravel","laravel-package","notifications","php","realtime","socket-io"],"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/rtamizh.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}},"created_at":"2016-10-15T19:31:18.000Z","updated_at":"2019-10-18T12:44:22.000Z","dependencies_parsed_at":"2022-08-24T07:50:15.335Z","dependency_job_id":null,"html_url":"https://github.com/rtamizh/realtime-push","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/rtamizh%2Frealtime-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtamizh%2Frealtime-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtamizh%2Frealtime-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtamizh%2Frealtime-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtamizh","download_url":"https://codeload.github.com/rtamizh/realtime-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250458778,"owners_count":21433941,"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":["laravel","laravel-package","notifications","php","realtime","socket-io"],"created_at":"2024-10-02T12:05:17.637Z","updated_at":"2025-04-23T15:25:35.646Z","avatar_url":"https://github.com/rtamizh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# realtime-push\nReal-time push notification package for laravel\n\nPlease checkout the following library before using it - \u003ca href=\"http://github.com/rtamizh/instant-notify\"\u003einstant-notify\u003c/a\u003e\n\n# Installation \n\n```\ncomposer require tamizh/realtime-push\n```\n\nor add the following line in composer.json line \n\n\"tamizh/realtime-push\" : \"dev-master\" and run ``` composer update ```\n\nAdd the service provider to your config/app.php file:\n\n``` \n        'providers'     =\u003e array(\n                //...\n                Realtime\\Push\\RealtimePusherProvider::class,\n\n        ), \n```\n\nAdd the facade to your config/app.php file:\n\n``` \n        'facades'       =\u003e array(\n\n                //...\n                'Push'          =\u003e Realtime\\Push\\Facades\\RealtimePusher::class,\n\n        ), \n```\n    \nPublish config file using ``` php artisan vendor:publish ```\nModifiy the config/realtime-pusher.php. That's all set for working with functions\n\nAnd a js file will be added in public/js/notification.js. include it in your layout or pages that you are need the push notification\n\n```\nvar notification = new Notification(\u003cuser secret\u003e, \u003curl\u003e);\nnotification.login();\nnotification.socket.on('notification',function(data){\n        // do the stuff you want with data\n})\n```\nAs of now the text and image variables available in the server, soon it will be increased. Use text as json and parsse it in browser side javascript to have many variables.\n\n#Functions\n\n1.createApp - to create app in notification server\n```\nPush::createApp('test')\n```\nit will return a secert_id with success response. store or add it to the config file for creating users for this app\n\n\n2.createUser - to create User in notification server\n```\nPush::createUser('name', 'password')\n```\nit will return the user secret with success message. store it in your database for sending notification to this user\n\n\n3.notify - to create and send it to the respective user\n```\nPush::notify($user_secret, $text, $image)\n```\n#Example\n\nYou can find my laravel demo application \u003ca href=\"https://github.com/rtamizh/push_notification_demo\"\u003e here \u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtamizh%2Frealtime-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtamizh%2Frealtime-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtamizh%2Frealtime-push/lists"}