Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The package name "apzentral/ink" is invalid

Tags:

composer-php

When I go to https://packagist.org/packages/submit to submit my package.

This error is shown,

The package name apzentral/ink is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]([_.-]?[a-z0-9]+)*".

I would like to know what is wrong in my git repository setup.

Here is the link to go to my repository

Thank you.

like image 399
Prut Udomwattawee Avatar asked Nov 07 '14 00:11

Prut Udomwattawee


1 Answers

If you look at your composer.json file, you'll see:

"name": " apzentral/ink",

Do you notice the space before the package name? That's what causing the failure (a space is not valid in a package name)

"name": "apzentral/ink"
like image 154
Wouter J Avatar answered Sep 23 '22 19:09

Wouter J