{"id":14987259,"url":"https://github.com/kishor10d/codeigniter-ratchet-websocket","last_synced_at":"2025-10-24T16:44:27.037Z","repository":{"id":50449876,"uuid":"51092509","full_name":"kishor10d/CodeIgniter-Ratchet-Websocket","owner":"kishor10d","description":"This library contains the demo of commenting/posting realtime using CodeIgniter+AngularJS+Ratchet PHP Websocket","archived":false,"fork":false,"pushed_at":"2023-09-22T21:58:22.000Z","size":2107,"stargazers_count":93,"open_issues_count":4,"forks_count":67,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-25T19:14:59.118Z","etag":null,"topics":["codeigniter","codeigniter-ratchet-websocket","ratchet","realtime","websockets"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kishor10d.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-04T17:26:31.000Z","updated_at":"2025-01-16T01:31:10.000Z","dependencies_parsed_at":"2024-09-19T20:31:17.392Z","dependency_job_id":"7e843939-fcc7-478a-8b2d-29758d0ddf21","html_url":"https://github.com/kishor10d/CodeIgniter-Ratchet-Websocket","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"2d054196fb599614e10f3267fe85097ac3f6261a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kishor10d%2FCodeIgniter-Ratchet-Websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kishor10d%2FCodeIgniter-Ratchet-Websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kishor10d%2FCodeIgniter-Ratchet-Websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kishor10d%2FCodeIgniter-Ratchet-Websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kishor10d","download_url":"https://codeload.github.com/kishor10d/CodeIgniter-Ratchet-Websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493558,"owners_count":21113279,"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":["codeigniter","codeigniter-ratchet-websocket","ratchet","realtime","websockets"],"created_at":"2024-09-24T14:14:20.611Z","updated_at":"2025-10-24T16:44:22.000Z","avatar_url":"https://github.com/kishor10d.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter-Ratchet-Websocket\n\n\u003e ### `NOTICE : This project is NOT production ready.`\n\u003e ### `NOTICE : This project is NO longer maintened.`\n\nThis library contains the demo of commenting/posting realtime using **CodeIgniter-Ratchet-Websocket** with **AngularJS** as client-side javascript framwork.\n\nThere is no rocket science I have done to achieve this.\n\nAs you know the CodeIgniter Directory Structure\n\nThere is a folder called\n    CI-\n      -application\n          -third_party\n            -Realtime (I put here Ratchet PHP Websocket Library)\n                \nI put my code here and just call that code using Javascript websocket.\n\n### How to use :\n\n1) Download the code.\n\n2) You got a database script with name \"realtime.sql\", just import that script into your database named \"realtime\" (You may use your name but you have to change database name in CodeIgniter's database.php also.\n\n3) Put the downloaded code in your web root folder (www or htdocs... whatever it may be).\n\n4) Goto \n    application/config/constants.php\n    \n  Change the constant BROADCAST_URL and set it as IP of your own computer.\n\n5) Open Command Prompt\n  Move towards your webroot folder.\n  We are having our websocket code at following path in our project.\n  ```sh\n  application/third_party/Realtime/bin/server.php\n  ```\n  \n  We have to run that server.php file from command prompt.\n  \n  Just move to that folder by using \"cd\" command.\n  ```sh\n  c:/\u003ecd xampp\\htdocs\\ci-ratchet\\application\\third_party\\Realtime\\bin\n  ```\n    \n  Press enter.. Now you are in that directory specifically, just run following command.\n  ```sh\n  c:\\xampp\\htdocs\\ci-ratchet\\application\\third_party\\Realtime\\bin\u003ephp server.php\n  ```\n  \n  If its error free and noting is populated, then its supposed that you got the success to start the websocket server.\n  \n  6) Now run your ci-ratchet project in browser by hitting url.\n  ```sh\n  http://localhost/ci-ratchet/\n  ```\n\n  Once AngularJS initialize, you can see the Textbox, just start typing and press enter.... VOLLAAAAAAAAA\n\n  Its working\n  \n7) Check it in another browser for realtime experience.\n\n8) It has some permission issues on shared hosting, so it will gives throw some error. Check issue @ https://github.com/ratchetphp/Ratchet/issues/409\n\nIt will work for sure if you have same user for your VPS and shared hosting space.\n\n### What I used?\n\n1) **CodeIgniter** 3.x PHP Framework (https://www.codeigniter.com/) \n\n2) **Ratchet** - Websocket for PHP (http://socketo.me/) by Chris Boden(@boden_c)\n\n3) **AngularJS** - A superheroic Javascript MVW Framework by Google\n\n### Same functionality using jQuery? =\u003e Yes\n\nI have added 3 new files in the same project for better understanding in.\n\napplication/controllers/jquery.php\n\napplication/views/jquery.php\n\nassets/app/Connection2.js\n\nURL : \u003chttp://localhost/ci-ratchet/index.php/jquery\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkishor10d%2Fcodeigniter-ratchet-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkishor10d%2Fcodeigniter-ratchet-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkishor10d%2Fcodeigniter-ratchet-websocket/lists"}