This package provides integration with PHP-FFMpeg and package media content for online streaming such as DASH and HLS. You can also use DRM for HLS packaging. There are several options to open a file from clouds and save files to them as well.
A complete example is provided. It contains server-side(Transcoding + cloud + progress + web socket) and client-side(progress bar + web socket + player).
NOTE: For using DRM and encryption, I strongly recommend to try Shaka PHP, which is a great tool for this use case.