Problems with the name of the package, in Composer

1

I was trying to start a composer.json file in a folder.

First I put "composer init" , then I give enter and return to enter and send me the following error;

Package name (<vendor>/<name>) [luz maldonado/usando-composer]:
The package name luz maldonado/usando-composer is invalid, it should be 
lowercase and have a vendor name, a forward slash, and a package name, 
matching: [a-z0-9_.-]+/[a-z0-9_.-]+

If someone could explain a little and recommend me readings about the problem.

First impressions the name in the seller is wrong for the space, but where I change it.

    
asked by Francisco MS380 19.09.2018 в 05:19
source

1 answer

1

Assuming you executed composer init and the wizard told you:

Welcome to the Composer config generator  

This command will guide you through creating your composer.json config.

Package name (<vendor>/<name>) [luz maldonado/usando-composer]: 

You write:

luz-maldonado/usando-composer

Or if you want:

ejemplo/proyecto

And enter. Then you follow the wizard. The name you propose has a space, so it does not let you continue. You have to enter one that is valid in the form <vendor>/<package> where vendor and package may contain: only letters, numbers, hyphens, underscores and points.

    
answered by 20.09.2018 / 22:12
source