jonathantorres / construct

A PHP project/micro-package generator for PDS compliant projects or micro-packages.
MIT License
266 stars 16 forks source link

Add feature to check if package name is already taken on Packagist #124

Open raphaelstolt opened 8 years ago

jonathantorres commented 8 years ago

We could name the command construct packagist:check.

Packagist API: https://packagist.org/apidoc

Maybe use the "Get package by name" endpoint. Use guzzle or curl to make the requests.

raphaelstolt commented 8 years ago

Would that really be a own command, and not an optional option which halts the further construction and produces a warning to choose an alternative package name?

jonathantorres commented 8 years ago

Sure, It can be done as an optional option. It should display a warning, but not stop the construction of the project.