Video dimensions in php [duplicate]

Is there a way to get the width and height of a video in php? I have uploaded images and I can get their dimensions using GD or IMagick but I haven’t found a way to get the dimensions of a video. I don’t want to use getID3.
Thank you.

php documentation
searched on google