PHP-dataURI icon indicating copy to clipboard operation
PHP-dataURI copied to clipboard

A PHP dataURI library, RFC 2397 Compliant

Results 6 PHP-dataURI issues
Sort by recently updated
recently updated
newest added

### Code ```php use DataURI\Parser; $audio = Parser::parse('data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAA'); $mime = $audio->getMimeType(); echo $mime; ``` ### Expected ``` audio/mp3 ``` ### Output ``` audio/mp ```

Hello, Do you think your library would work with symfony/http-foundation 5.0 ? Thank you

This PR includes #23 (as it touched `composer.json` anyway), and : * Replace Travis CI by GitHub Actions (much faster feedback loop) * Add PHP 7.3 + 7.4 to Travis...

Dear contributors, please replace following regular expression in Parser.php: `'/data:([a-zA-Z-\/+]*)([a-zA-Z0-9-_;=.+]+)?,(.*)/'` with `'/data:([a-zA-Z-\/+.]*)([a-zA-Z0-9-_;=.+]+)?,(.*)/'` to handle cases like `application/vnd.ms-excel`. This is also missed test case 5. Thanks.