{% set githubid = component.author.githubid ?: component.author.name|hyphenize -%}
{
  "name": "{{ githubid|lower }}/{{ component.name|hyphenize }}",
  "type": "grav-plugin",
  "description": "{{ component.description }}",
  "keywords": ["plugin"],
  "homepage": "https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize }}",
  "license": "MIT",
  "authors": [
    {
      "name": "{{ component.author.name }}",
      "email": "{{ component.author.email }}",
      "role": "Developer"
    }
  ],
  "require": {
    "php": ">=7.1.3"
  },
  "autoload": {
    "psr-4": {
      "Grav\\Plugin\\{{ component.name|camelize }}\\": "classes/"
    },
    "classmap":  ["{{ component.name|hyphenize }}.php"]
  },
  "config": {
    "platform": {
      "php": "7.1.3"
    }
  }
}