Skip to content
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

Big Update for Packagist Preparation and code Update #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nhalstead
Copy link

In this pull request you will find a new layout of the code that has comments in it for the class as well as its in a namespace. I have changed it so the code repository is ready to be added to packagist with just a few clicks. I got all of the work done and setup for you, you @mk-j can just goto the site packagist submit and paste in your repos link (https://github.com/mk-j/PHP_MP3_Duration) and add your repos to Composer as a package that everyone can use with ease.

If you look through the code repos you will see all of the changes I have made and the updates to the composer.json, The original file is found as src/class.mp3file.php the vender folder is just composer for the testing I was doing, that I left.

Thank you for figuring out all of this, this class has helped me so I am paying it forward and helping you out to get the package in packagist or composer people to use it too. Your code and your repos not on packagist but someone who has copied your code and made a packagist package are online as a package.

Thanks, Looking forward for your response.
~ Noah Halstead

nhalstead and others added 6 commits April 23, 2018 22:52
mp3file.class.php -> class.mp3file.php
class.mp3file.php: In this commit I have added a Shorthand Function that you can get the duration just by using `MP3File::getTime("myfile.mp3")` also I have updated the code by making it look neater and added comments to different sections that I can identify their actions.

composer.json: Updated the description, Added Keywords, Added License Type and Added the Repository Reference.

This repos should be ready to be added to the Packagist Page with this update.
In this commit the repos should be ready for Packagist.

I have moved the Code into the src folder and I have made the class aparat of the MP3File namespace and the class remains MP3File.

The `composer.json` file has been updated with the PSR4 autoload method and testing was done to verify it does work.

`vendor\*` was for testing.
`vendor\test.php` has a test setup to check for the MP3File class is loaded.

I've added myself as an author since I have been doing updates to the repos. It can be taken out in the end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant