generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.0.0 #35
Merged
Merged
v4.0.0 #35
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Renamed `getRawTagsAll` to `getRawAll` - Renamed `getRawTags` to `getRaw` - Renamed `getRawTagsKey` to `getRawKey` - Updated method signatures and return types to match changes Refactor Id3Writer class - Removed unused `$options` parameter from constructor - Updated `year` method to accept `string|int` parameter and convert it to `int` Update AudiobookTest and README.md - Updated assertions to use renamed methods in Audio and Audiobook classes - Added new assertions for additional raw tags in AudiobookTest Fix styling - Removed commented out code in WriterTest
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
============================================
+ Coverage 93.48% 95.80% +2.32%
+ Complexity 487 339 -148
============================================
Files 7 25 +18
Lines 1780 1383 -397
============================================
- Hits 1664 1325 -339
+ Misses 116 58 -58 ☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES
get()
static method is nowread()
(old method is still available)update()
method is nowwrite()
(old method is still available)getAudio()
is nowgetMetadata()
getStat()
has been removed, you can findgetLastAccessAt()
,getCreatedAt()
,getModifiedAt()
intogetMetadata()
getWriter()
has been removed, only used whenwrite()
method is calledgetReader()
is nowgetId3Reader()
getPodcastDescription()
is nowgetSynopsis()
getStik()
has been removed (you can find it ingetRaw()
method or withgetRawKey('stik')
)AudioCover
objecttoArray()
has been revised to return a more structured arraygetDuration()
is nowfloat
getDurationHuman()
to get human readable durationgetTrackNumberInt()
to get track number as integergetDiscNumberInt()
getTags()
is nowgetRawAll()
as multidimensional arraygetRaw()
will return main format as arraygetRawKey('ANY_KEY')
will return specific key from main formatgetAudioFormats()
has been removedgetExtras()
has been removed (duplicate ofgetRawAll()
,getRaw()
ortoArray()
)writer()
can now usetag('ANY_KEY', 'ANY_VALUE')
to update directly any tag without usetags()
writer()
methodtags()
has been modified, it's not native method ofgetID3
anymore, just an array of tagsgetQuicktime()
toAudioMetadata
to get quicktime tags, with chapters for audiobooksAudioCover
getContents()
method to get contents, default is raw string (binary) and you can get base64 encoded string withtrue
parametergetMimeType()
method to get mime type of the covergetWidth()
method to get width of the covergetHeight()
method to get height of the covertoArray()
method to get cover as arrayAudioMetadata
getFilesize()
is nowgetFileSize()
getSizeHuman()
to get human readable size with decimal precisiongetDataFormat()
to get data format likemp3
getDurationReadable()
because it's now intoAudio::class
getLossless()
is nowisLossless()
getCodec()
to get codec of the file, likeLAME
getEncoderOptions()
to get encoder options of the file, likeCBR
getVersion()
to get version ofJamesHeinrich/getID3
getAvDataOffset()
to get offset of audio/video datagetAvDataEnd()
to get end of audio/video datagetFilePath()
to get file path, like/path/to
getFilename()
to get filename, likefile.mp3
getLastAccessAt()
,getCreatedAt()
,getModifiedAt()
fromstat()
functiontoArray()
method to get metadata as arrayFix
write()
won't erase other tags [Bug]: Setting one Tag will clear all other tags #34