This command will guide you through creating your composer.json config.
Package name (<vendor>/<name>) [l1n6yun/hello]: l1n6yun/hello Description []: This is a demo package Author [l1n6yun <l1n6yun@gmail.com>, n to skip]: Minimum Stability []: dev Package Type (e.g. library, project, metapackage, composer-plugin) []: library License []: MIT
Define your dependencies.
Would you like to define your dependencies (require) interactively [yes]? no Would you like to define your dev dependencies (require-dev) interactively [yes]? no Add PSR-4 autoload mapping? Maps namespace "L1n6yun\Hello" to the entered relative path. [src/, n to skip]:
Do you confirm generation [yes]? Generating autoload files Generated autoload files PSR-4 autoloading configured. Use "namespace L1n6yun\Hello;" in src/ Include the Composer autoloader with: require 'vendor/autoload.php';