I updated my composer to version 2. Here is my composer.json file
{
"name": "periperi",
"require": {
"cakephp/cakephp": "2.10.*",
"stripe/stripe-php": "^7.28",
"google/apiclient": "^2.7"
},
"config": {
"vendor-dir": "Vendor/"
}
}
The name was peri-peri, but it was giving error
[Composer\Json\JsonValidationException]
"./composer.json" does not match the expected JSON schema:
- name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$
I changed the name to periperi, but it still gives same error. How can I fix this?