File: README.md

package info (click to toggle)
php-guzzlehttp-psr7 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,068 kB
  • sloc: php: 10,150; makefile: 36
file content (12 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# Development Scripts

## Regenerating MIME Types

The `src/MimeType.php` class is generated from [jshttp/mime-db](https://github.com/jshttp/mime-db).

To update to the latest version:

1. Update the version and commit hash in the `repositories` section of `composer.json`
1. Run `composer update jshttp/mime-db`
1. Run `php hack/generate-mime-types.php`
1. Run the tests to verify: `vendor/bin/phpunit tests/MimeTypeTest.php`