Download the PHP package rtckit/sip without Composer
On this page you can find all versions of the php package rtckit/sip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sip
Short Description SIP protocol implementation written in PHP
License MIT
Homepage https://github.com/rtckit/php-sip
Informations about the package sip
PHP SIP Parsing/Rendering Library
RFC 3261 compliant SIP parsing and rendering library for PHP 7.4.
Quickstart
SIP Message Parsing
Once installed, you can parse SIP messages right away as follows:
SIP Message Rendering
Rendering is the opposite action of parsing; for example, let's prepare a 200 OK
response for a REGISTER
request:
SIP Message Stream Parsing
If your use case involves a continuous data stream rather than individual messages, the StreamParser
class can help; this is particularly useful for analyzing SIP trace files or packet captures, parsing SIP traffic over TCP etc.
Lastly, the provided examples are a good starting point.
Requirements
RTCKit\SIP is compatible with PHP 7.4+ and has no external library and extension dependencies.
Installation
You can add the library as project dependency using Composer:
If you only need the library during development, for instance when used in your test suite, then you should add it as a development-only dependency:
Tests
To run the test suite, clone this repository and then install dependencies via Composer:
Then, go to the project root and run:
Static Analysis
In order to ensure high code quality, RTCKit\SIP uses PHPStan and Psalm:
License
MIT, see LICENSE file.
Acknowledgments
- SIP Protocol Contributors/IETF Trust
- PROTOS SIP Test Material - Oulu University Secure Programming Group, Finland
- lioneagle/sipparser Test Material (MIT license)
Contributing
Bug reports (and small patches) can be submitted via the issue tracker. Forking the repository and submitting a Pull Request is preferred for substantial patches.
All versions of sip with dependencies
ext-ctype Version *