Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer init Author name not valid. #3948

Closed
CupOfTea696 opened this issue Apr 18, 2015 · 8 comments · Fixed by #3953
Closed

Composer init Author name not valid. #3948

CupOfTea696 opened this issue Apr 18, 2015 · 8 comments · Fixed by #3953

Comments

@CupOfTea696
Copy link
Contributor

Hi,

Whenever I run composer init and want to accept the default suggestion for Author, composer says it's an invalid author string. I know this is because my Github username has numbers in it, but I always manually modify the composer.json to add those anyway. Could the validation be modified so that it also accepts numbers in the Author string?

@alcohol
Copy link
Member

alcohol commented Apr 20, 2015

This makes no sense.

https://github.com/composer/composer/blob/master/src/Composer/Command/InitCommand.php#L41-L56

Can you maybe tell us what error you are actually receiving? And what value for "author" you are submitting?

@CupOfTea696
Copy link
Contributor Author

I'm sorry if I wasn't clear. I just took a screenshot you'll be able to see immediately what I meant.

screen shot 2015-04-20 at 12 00 09

@alcohol
Copy link
Member

alcohol commented Apr 20, 2015

Ok, I see why. I'll have a solution soon.

@alcohol
Copy link
Member

alcohol commented Apr 20, 2015

On a side note, I recommend you use your actual real name in the author field, not some nickname. Author is not the same as vendor, they do not have to match.

@CupOfTea696
Copy link
Contributor Author

Yeah, that makes sense. Regardless, this way I can quickly accept it and then manually change the Author name and I don't have to type my email anymore :p

@shaikhAli
Copy link

hello , CupOfTea696
did u get the solution for this as i am alsogetting the same error in composer init comand

@alcohol
Copy link
Member

alcohol commented Jan 29, 2016

@shaikhAli this issue has been resolved and you should no longer get this error (unless you are using an ancient version of Composer).

@shaikhAli
Copy link

thanx @alcohol
issue is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants