Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Releases: josantonius/php-mime-type

v2.0.3

13 Jul 18:07
Compare
Choose a tag to compare

What's Changed

The original concept of my project, linking a single mimetype to a file extension, has been found to be insufficient in accurately reflecting the many-to-one relationships that exist in real-world use-cases. In practice, multiple file extensions often correspond to a single mimetype, rendering my existing design approach suboptimal.

Given these insights, I've decided to archive this repository. I recommend those interested to look at the approach taken by the repository patrickmccallum/mimetype-io. This project adopts a more nuanced perspective, effectively managing mimetypes by acknowledging the possibility of multiple extensions corresponding to a single mimetype. I believe this is a more promising approach for managing mimetypes moving forward.

New Contributors

Full Changelog: v2.0.2...v2.0.3

v2.0.2

29 Sep 20:27
d2fa609
Compare
Choose a tag to compare

What's Changed

  • pre-release/v2.0.2 by @josantonius in #8

  • Release/v2.0.2 by @josantonius in #9

  • The notation type in the test function names has been changed from camel to snake case for readability.

  • Functions were added to document the methods and avoid confusion.

  • Disabled the ´CamelCaseMethodName´ rule in ´phpmd.xml´ to avoid warnings about function names in tests.

  • The alignment of the asterisks in the comments has been fixed.

  • Tests for Windows have been added.

  • Tests for PHP 8.2 have been added.

Full Changelog: v2.0.1...v2.0.2

v2.0.1

11 Aug 15:33
Compare
Choose a tag to compare

What's Changed

  • Improved documentation.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

02 Aug 02:00
Compare
Choose a tag to compare

What's Changed

Version 1.x is considered as deprecated and unsupported. In this version (2.x) the library was completely restructured. It is recommended to review the documentation for this version and make the necessary changes before starting to use it, as it not be compatible with version 1.x.


  • The library was completely refactored.

  • Support for PHP version 8.0.

  • Support for earlier versions of PHP 8.0 is discontinued.

  • Replaced all static methods in Josantonius\MimeType\MimeType class.

  • Improved documentation; README.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md and CHANGELOG.md.

  • Removed Codacy.

  • Removed PHP Coding Standards Fixer.

  • The master branch was renamed to main.

  • The develop branch was added to use a workflow based on Git Flow.

  • Travis is discontinued for continuous integration. GitHub Actions will be used from now on.

  • Added .github/CODE_OF_CONDUCT.md file.

  • Added .github/CONTRIBUTING.md file.

  • Added .github/FUNDING.yml file.

  • Added .github/workflows/ci.yml file.

  • Added .github/lang/es-ES/CODE_OF_CONDUCT.md file.

  • Added .github/lang/es-ES/CONTRIBUTING.md file.

  • Added .github/lang/es-ES/LICENSE file.

  • Added .github/lang/es-ES/README file.

  • Deleted .travis.yml file.

  • Deleted .editorconfig file.

  • Deleted CONDUCT.MD file.

  • Deleted README-ES.MD file.

  • Deleted .php_cs.dist file.

  • do static method call and self static call by @peter279k in #6

  • pre-release/v2.0.0 by @josantonius in #7

New Contributors

Full Changelog: 1.1.7...v2.0.0

1.1.7

06 Jan 19:44
Compare
Choose a tag to compare

What's Changed

  • The tests were fixed.

  • Changes in documentation.

Full Changelog: 1.1.6...1.1.7

1.1.6

09 Nov 00:04
Compare
Choose a tag to compare

What's Changed

  • Implemented PHP Mess Detector to detect inconsistencies in code styles.

  • Implemented PHP Code Beautifier and Fixer to fixing errors automatically.

  • Implemented PHP Coding Standards Fixer to organize PHP code automatically according to PSR standards.

Full Changelog: 1.1.5...1.1.6

1.1.5

02 Nov 17:03
Compare
Choose a tag to compare

What's Changed

  • Implemented PSR-2 coding standard from all library PHP files.

  • Implemented PHPCS to ensure that PHP code complies with PSR2 code standards.

  • Implemented Codacy to automates code reviews and monitors code quality over time.

  • Implemented Codecov to coverage reports.

  • Added DataType/phpcs.ruleset.xml file.

Full Changelog: 1.1.4...1.1.5

1.1.4

19 Oct 15:50
Compare
Choose a tag to compare

What's Changed

  • Autoloaded with PSR-4 all library files and test files

  • Dropped the use of a JSON file with mime types list and used PHP class instead.

  • Deleted Josantonius\MimeType\MimeType::_getFromFile() method.

  • Changed Josantonius\MimeType\Test\MimeTypeTest class to Josantonius\MimeType\MimeTypeTest class.

  • Deleted MimeType/src/bootstrap.php file

  • Deleted MimeType/tests/bootstrap.php file.

  • Deleted MimeType/vendor folder.

  • Deleted MimeType/resources folder

  • Added Josantonius\MimeType\MimeTypesCollection class.

  • Added Josantonius\MimeType\MimeTypesCollection::all() method.

  • Added Josantonius\MimeType\MimeTypesCollection::get() method.

  • #Hacktoberfest by @MASNathan in #5

New Contributors

Full Changelog: 1.1.3...1.1.4

1.1.3

10 Sep 03:49
Compare
Choose a tag to compare

What's Changed

  • Unit tests supported by PHPUnit were added.

  • The repository was synchronized with Travis CI to implement continuous integration.

  • Deleted Josantonius\MimeType\MimeType::load() method.

  • Deleted Josantonius\MimeType\MimeType::getAll() method.

  • Added Josantonius\MimeType\MimeType::get() method.

  • Added Josantonius\MimeType\MimeType::get() method.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest class.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest::testGetMimeFromExtension() method.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest::testGetMimeFromExtensionUndefined() method.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest::testGetExtensionFromMime() method.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest::testGetExtensionFromMimeUndefined() method.

  • Deleted Josantonius\MimeType\Tests\MimeTypeTest::testGetAll() method.

  • Added Josantonius\MimeType\Test\MimeTypeTest::_getFromFile() method.

  • Added Josantonius\MimeType\Test\MimeTypeTest class.

  • Added Josantonius\MimeType\Test\MimeTypeTest::testGetMimeFromExtension() method.

  • Added Josantonius\MimeType\Test\MimeTypeTest::testGetMimeFromExtensionUndefined() method.

  • Added Josantonius\MimeType\Test\MimeTypeTest::testGetExtensionFromMime() method.

  • Added Josantonius\MimeType\Test\MimeTypeTest::testGetExtensionFromMimeUndefined() method.

  • Added MimeType/src/bootstrap.php file

  • Added MimeType/tests/bootstrap.php file.

  • Added MimeType/phpunit.xml.dist file.

  • Added MimeType/_config.yml file.

  • Added MimeType/.travis.yml file.

Full Changelog: 1.1.2...1.1.3

1.1.2

16 Jul 04:51
Compare
Choose a tag to compare

What's Changed

  • Deleted Josantonius\MimeType\Exception\MimeTypeException class.
  • Deleted Josantonius\MimeType\Exception\Exceptions abstract class.
  • Deleted Josantonius\MimeType\Exception\MimeTypeException->__construct() method.

Full Changelog: 1.1.1...1.1.2