I'd write this as:

```markdown
[composer.json](composer.json)
```

That way it will be linked within the README.md when on github.