{
    "name": "shiftedwork/avatarmaker",
    "type": "library",
    "description": "Creates an avatar image from a string.",
    "homepage": "http://shiftedwork.de/avatarmaker/",
    "keywords": ["image", "avatar", "thumbnail"],
    "license": "MIT",
    "authors": [
        {
            "name": "Daniel Sentker",
            "email": "tracid2008@gmail.com",
            "homepage": "http://shiftedwork.de/"
        }
    ],
    "require": {
        "php": ">=5.4.0",
        "ext-fileinfo": "*",
        "intervention/image": "*",
        "mistic100/randomcolor": "*"
    },
    "autoload": {
        "psr-4": {
            "Shift\\AvatarMaker\\": "src/Shift/AvatarMaker"
        }
    }

}

{
    "name": "shiftedwork/avatarmaker",
    "type": "library",
    "description": "Creates an avatar image from a string.",
    "homepage": "http://shiftedwork.de/avatarmaker/",
    "keywords": ["image", "avatar", "thumbnail"],
    "license": "MIT",
    "authors": [
        {
            "name": "Daniel Sentker",
            "email": "tracid2008@gmail.com",
            "homepage": "http://shiftedwork.de/"
        }
    ],
    "require": {
        "php": ">=5.4.0",
        "ext-fileinfo": "*",
        "intervention/image": "~2.3",
        "mistic100/randomcolor": "~1.0"
    },
    "autoload": {
        "psr-4": {
            "Shift\\AvatarMaker\\": "src/Shift/AvatarMaker"
        }
    }
}

Add version operators to external requirements
Add version operators to external requirements

This assumes that the external libraries use semantic versioning. See <https://getcomposer.org/doc/articles/versions.md#next-significant-release-operators> for details.
