Download the PHP package rtckit/sdp without Composer
On this page you can find all versions of the php package rtckit/sdp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sdp
Short Description Session Description Protocol (SDP) Library for PHP
License MIT
Homepage https://github.com/rtckit/php-sdp
Informations about the package sdp
SDP Parser and Serializer for PHP
RFC 2327, RFC 4566 and RFC 8866 compliant SDP parsing/serialization library for PHP.
Quickstart
Session Description Parsing
Once installed, you can parse SDP session description right away as follows:
The $session
variable (a stdClass
object) will now be populated with the parsed SDP session description. Here's the output of the above example:
Session Description Serialization
Serializing is the opposite action of parsing:
The $sdp
variable will now contain the serialized SDP session description:
Requirements
RTCKit\SDP is compatible with PHP 8.1+ 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\SDP uses PHPStan and Psalm:
License
MIT, see LICENSE file.
Acknowledgments
- sdp-transform - SDP parser and serializer for JavaScript, main source of inspiration for this library
- RFC 2327 - SDP: Session Description Protocol (April 1998)
- RFC 4566 - SDP: Session Description Protocol (July 2006)
- RFC 8866 - SDP: Session Description Protocol (January 2021)
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.