Skip to content

Releases: kiwilan/php-audio

v3.0.08

28 Jul 13:47
64583fa
Compare
Choose a tag to compare

Add getDurationHumanReadable() method to get the duration in human readable format: HH:MM:SS.

v3.0.07

04 Jun 05:29
21df578
Compare
Choose a tag to compare

By @panVag

  • use DateTimeImmutable super powers to parse date and datetime strings
  • catch and ignore exception when instantiating the aforementioned object so the whole script won't fail
  • remove the null safe operators when it's not needed

v3.0.06

04 Feb 11:42
d4cce92
Compare
Choose a tag to compare
  • Add getAudioFormats() to Audio::class to get an array with all audio formats of file.
  • Add param to getTags(?string $audioFormat = null) to select a specific tag format, default will be maximum tags found.
  • Add same param to getTag(string $tag, ?string $audioFormat = null) to select a specific tag format, default will be maximum tags found.
  • Add getPodcastDescription() method to Audio::class to get the podcast description.
  • Add getLanguage() method to Audio::class to get the language of the podcast.

v3.0.05

03 Feb 18:02
db9f825
Compare
Choose a tag to compare
  • Add toArray() method to Audio::class to get all properties without cover.
  • Add getTags() method to Audio::class to get all tags as array<string, string>.
  • Add getTag(string $tag) method to Audio::class to get a single tag.

v3.0.04

01 Nov 09:10
f98434e
Compare
Choose a tag to compare
  • AudioCore, fix fromId3() with null check Id3AudioTagV1 and Id3AudioTagV2, issue #18 thanks to @cospin

v3.0.03

31 Oct 18:20
910de64
Compare
Choose a tag to compare
  • AudioCore, fromId3() method comment bug, issue #18 thanks to @cospin
  • AudioMetadata, add path, dataformat

.mp4 format can not work as expected cause by recent JamesHeinrich/getID3 update.

v3.0.02

21 Sep 07:14
4b7557e
Compare
Choose a tag to compare
  • Id3Writer: trackNumber() and discNumber() accept now integers (and strings)

v3.0.01

20 Sep 11:38
19d5184
Compare
Choose a tag to compare
  • Add getContents() to AudioCover
  • Old method getContent() is deprecated

3.0.0

08 Aug 13:45
af14b61
Compare
Choose a tag to compare

BREAKING CHANGES

  • All simple getters have now get prefix. For example, getTitle() instead of title(), getAlbum() instead of album(), etc. It concerns all simple getters of AudioCore, AudioCover, AudioMetadata, AudioStat, Id3Reader classes.

Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have now get prefix.

2.0.0

08 Jun 10:11
d2053fa
Compare
Choose a tag to compare

BREAKING CHANGES

  • update chained methods are now without set prefix

Features

  • update have now tags to set tags manually
  • update have now tagFormats to set tag formats manually
  • update have now preventFailOnError to prevent fail on error