{"id":43655791,"url":"https://github.com/level7systems/php-sip","last_synced_at":"2026-02-04T20:35:13.499Z","repository":{"id":64082234,"uuid":"64693011","full_name":"level7systems/php-sip","owner":"level7systems","description":"PHP SIP User Agent class","archived":false,"fork":false,"pushed_at":"2022-11-14T14:17:50.000Z","size":25,"stargazers_count":47,"open_issues_count":3,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-09-10T03:40:38.956Z","etag":null,"topics":["php","sip","voip"],"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/level7systems.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-08-01T18:50:45.000Z","updated_at":"2023-05-09T09:02:30.000Z","dependencies_parsed_at":"2023-01-14T21:15:28.199Z","dependency_job_id":null,"html_url":"https://github.com/level7systems/php-sip","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/level7systems/php-sip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level7systems%2Fphp-sip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level7systems%2Fphp-sip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level7systems%2Fphp-sip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level7systems%2Fphp-sip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/level7systems","download_url":"https://codeload.github.com/level7systems/php-sip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level7systems%2Fphp-sip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29095453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T20:17:23.003Z","status":"ssl_error","status_checked_at":"2026-02-04T20:16:36.396Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["php","sip","voip"],"created_at":"2026-02-04T20:35:12.938Z","updated_at":"2026-02-04T20:35:13.494Z","avatar_url":"https://github.com/level7systems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PHP SIP User Agent class\n\n## Introduction\n\nThis is a PHP implementation of a simple [SIP](http://en.wikipedia.org/wiki/Session_Initiation_Protocol) user agent (UAS / UAC). PHP SIP is not a VoIP phone. It is not possible to make \"voip calls\" with this tool - only SIP signalling is supported - no audio available.\n\nUsage examples:\n\n* \"click to call\" in a web page - see Tutorial\n* send SIMPLE instant messages\n* send Message Waiting Indication NOTIFY\n* send messages to any SIP destination\n* SIP functional testing\n* more...\n\n## Features\n\n* symmetric signalling\n* send/receive SIP message concurrently\n* add any header to the request\n* interpret and react to the response\n* Linux and Windows compatible\n\n## Known Bugs/Limitations\n\n* only UDP transport\n* not fully RFC compliant\n* probably more... please help improve this project and report any issues [here](https://github.com/level7systems/php-sip/issues)\n\n## Code examples\nInstant MESSAGE\n\n```php\n\ntry {\n  $api = new PhpSIP('172.30.30.1'); // IP we will bind to $api-\u003esetMethod('MESSAGE');  \n  $api-\u003esetFrom('sip:john@sip.domain.com');\n  $api-\u003esetUri('sip:anna@sip.domain.com');\n  $api-\u003esetBody('Hi, can we meet at 5pm   today?');\n  \n  $res = $api-\u003esend(); echo \"res1: $res\\n\";\n\n} catch (Exception $e) {\n\n  echo $e-\u003egetMessage().\"\\n\";\n}\n\n?\u003e \n```\n\nSend NOTIFY to resync Linksys phone\n\n```php\ntry {\n  $api = new PhpSIP('172.30.30.1'); // IP we will bind to\n  $api-\u003esetUsername('10000'); // authentication username\n  $api-\u003esetPassword('secret'); // authentication password //\n  $api-\u003esetProxy('some_ip_here');\n  $api-\u003eaddHeader('Event: resync');\n  $api-\u003esetMethod('NOTIFY');\n  $api-\u003esetFrom('sip:10000@sip.domain.com');\n  $api-\u003esetUri('sip:10000@sip.domain.com');\n  $res = $api-\u003esend();\n  \n  echo \"res1: $res\\n\";\n\n} catch (Exception $e) {\n\n  echo $e-\u003egetMessage().\"\\n\"; }\n\n?\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel7systems%2Fphp-sip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevel7systems%2Fphp-sip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel7systems%2Fphp-sip/lists"}