src/Colorium/Http/Request/Accept.php
public static function from($accept = null, $acceptLanguage = null, $acceptEncoding = null, $acceptCharset = null)
    {
        $medias = static::parse($accept, '/');
        $languages = static::parse($acceptLanguage, '-');
        $encodings = static::parse($acceptEncoding);
        $charsets = static::parse($acceptCharset);

        return new static($medias, $languages, $encodings, $charsets);
    }
public static function from($accept = null, $acceptLanguage = null, $acceptEncoding = null, $acceptCharset = null)
    {
        $medias = static::parse($accept, '/');
        $languages = static::parse($acceptLanguage, '-');
        $encodings = static::parse($acceptEncoding);
        $charsets = static::parse($acceptCharset);

        return new static($medias, $languages, $encodings, $charsets);
    }
Parse from strings

@param string $accept
@param string $acceptLanguage
@param string $acceptEncoding
@param string $acceptCharset

@return static