Package name (<vendor>/<name>) [root/test_composer]:yourname/projectname
Description []:這是一個測試composer init 專案
Invalid author string. Must be in the format: John Smith <john@example.com>
Author [, n to skip]: John Smith <john@example.com>
Minimum Stability []:dev
Package Type (e.g. library, project, metapackage, composer-plugin) []:library
License []:
Define your dependencies.
Would you like to define your dependencies (require) interactively [yes]?
Search for a package:php
Enter the version constraint to require (or leave blank to use the latest version): >=5.4.0
Search for a package:
Would you like to define your dev dependencies (require-dev) interactively [yes]?
{
"name": "dduan/test_compser",
"description": "這是一個測試composer init 專案",
"type": "library",
"require": {
"php": ">=5.4.0"
},
"authors": [
{
"name": "John Smith",
"email": "john@example.com"
}
],
"minimum-stability": "dev"
}
Do you confirm generation [yes]?
Would you like to install dependencies now [yes]?
本作品採用《CC 協議》,轉載必須註明作者和本文連結