From 0a8b5a06ddb05f50042cf1f40474d33c1f3ffba0 Mon Sep 17 00:00:00 2001 From: wapmorgan Date: Tue, 10 Jan 2017 02:45:51 +0300 Subject: [PATCH] Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b96a19f..46c9262 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,13 @@ $audio = new Mp3Info($fileName, true); $audio = new Mp3Info($fileName); ``` And after that access object properties to get audio information: -``` +```php echo 'Audio duration: '.floor($audio->duration / 60).' min '.floor($audio->duration % 60).' sec'.PHP_EOL; echo 'Audio bitrate: '.($audio->bitRate / 1000).' kb/s'.PHP_EOL; // and so on ... ``` To access id3v1 tags use `$tags1` property: -``` +```php echo 'Song '.$audio->tags1['song'].' from '.$audio->tags1['artist'].PHP_EOL; ``` @@ -54,7 +54,7 @@ A bunch - **878 megabytes** of mp3 files (**33 tracks** with a total length **8: # Console scanner To test Mp3Info you can use built-in script that scans dirs and analyzes all mp3-files inside them. To launch script against current folder: -``` +```sh php bin/scan ./ ```