Skip to content

v3.0.0 - New major release!

Compare
Choose a tag to compare
@Athlon1600 Athlon1600 released this 27 Feb 19:46
· 55 commits to master since this release

Lots of code refactoring with many breaking changes, but everything now is much easier to read and understand.
Some of the major changes:

  • Added a new php-curl-file-downloader dependency. Previous Browser class just duplicated a bunch of the same HTTP logic that I wrote for that library anyways.

  • We're no longer passing arrays back and forth everywhere. That's just a bad programming practice in general. Most of those arrays are now objects. For example: getDownloadLinks method which used to return an array of links, now returns a DownloadOptions object where each "option" is also an object (StreamFormat).

  • getDownloadLinks now throws a YouTubeException if something unexpected happens. Previously it just returned an empty array.
    We will be using Exceptions a lot more instead of just returning false or null as we were doing before.

  • Youtube was renamed to YouTube (capitalized twice) everywhere, because that is just how YouTube itself does it:
    https://developers.google.com/youtube/v3/code_samples/php