Adding composer through the terminal composer init Package name (<vendor>/<name>): luizpaulogroup/example Description []: Adding composer through the terminal Author: luizpaulogroup <[email protected]> Minimum Stability []: stable you can skip this step just below, pressing enter Package Type... Next License []: MIT you can skip this step just below, pressing enter Would you like to define your dependencies (require)... Would you like to define your dependencies (require-dev)... Next Do you confirm generation [yes]? yes composer update composer install Command to add package packagist You can be accessing the website https://packagist.org/ composer riquired package_name The composer.json file will look like this { "name": "luizpaulogroup/example", "description": "Adding composer through the terminal", "license": "MIT", "authors": [ { "name": "luizpaulogroup", "email": "[email protected]" } ], "minimum-stability": "stable", "require": { } }