1. 复制`composer.phar`文件到目录 `I:\PHP Documentor>`。
2. 执行安装命令:
~~~
php composer.phar require "phpdocumentor/phpdocumentor:2.*"
~~~
3. 执行结果
~~~
I:\PHP Documentor>php composer.phar require "phpdocumentor/phpdocumentor:2.*"
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 51 installs, 0 updates, 0 removals
- Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
- Installing nikic/php-parser (v1.4.1): Downloading (100%)
- Installing psr/log (1.0.2): Downloading (100%)
- Installing phpdocumentor/reflection (3.0.1): Downloading (100%)
- Installing symfony/finder (v2.8.36): Downloading (100%)
- Installing phpdocumentor/fileset (1.0.0): Downloading (100%)
- Installing phpdocumentor/graphviz (1.0.4): Downloading (100%)
- Installing zendframework/zend-stdlib (2.7.7): Downloading (100%)
- Installing zendframework/zend-hydrator (1.1.0): Downloading (100%)
- Installing zendframework/zend-filter (2.7.2): Downloading (100%)
- Installing zendframework/zend-eventmanager (3.2.0): Downloading (100%)
- Installing psr/container (1.0.0): Downloading (100%)
- Installing container-interop/container-interop (1.2.0): Downloading (100%)
- Installing zendframework/zend-servicemanager (2.7.10): Downloading (100%)
- Installing zendframework/zend-cache (2.7.2): Downloading (100%)
- Installing zendframework/zend-json (3.1.0): Downloading (100%)
- Installing zendframework/zend-serializer (2.8.1): Downloading (100%)
- Installing zendframework/zend-i18n (2.7.4): Downloading (100%)
- Installing zendframework/zend-config (2.6.0): Downloading (100%)
- Installing kherge/version (1.0.1): Downloading (100%)
- Installing seld/jsonlint (1.7.1): Downloading (100%)
- Installing justinrainbow/json-schema (1.6.1): Downloading (100%)
- Installing herrera-io/json (1.0.3): Downloading (100%)
- Installing herrera-io/phar-update (1.0.3): Downloading (100%)
- Installing doctrine/instantiator (1.0.5): Loading from cache
- Installing doctrine/lexer (v1.0.1): Downloading (100%)
- Installing doctrine/annotations (v1.4.0): Downloading (100%)
- Installing phpoption/phpoption (1.5.0): Downloading (100%)
- Installing phpcollection/phpcollection (0.5.0): Downloading (100%)
- Installing jms/parser-lib (1.0.0): Downloading (100%)
- Installing jms/metadata (1.6.0): Downloading (100%)
- Installing jms/serializer (1.11.0): Downloading (100%)
- Installing symfony/filesystem (v3.0.9): Downloading (100%)
- Installing symfony/config (v2.8.36): Downloading (100%)
- Installing symfony/stopwatch (v2.8.36): Downloading (100%)
- Installing symfony/event-dispatcher (v2.8.36): Downloading (100%)
- Installing zetacomponents/base (1.9.1): Downloading (100%)
- Installing zetacomponents/document (1.3.1): Downloading (100%)
- Installing symfony/process (v2.8.36): Downloading (100%)
- Installing erusev/parsedown (1.7.1): Downloading (100%)
- Installing twig/twig (v1.35.2): Downloading (100%)
- Installing monolog/monolog (1.23.0): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache
- Installing symfony/debug (v3.0.9): Downloading (100%)
- Installing symfony/console (v2.8.36): Downloading (100%)
- Installing symfony/translation (v3.0.9): Downloading (100%)
- Installing symfony/validator (v2.8.36): Downloading (100%)
- Installing pimple/pimple (v1.1.1): Downloading (100%)
- Installing cilex/console-service-provider (1.0.0): Downloading (100%)
- Installing cilex/cilex (1.1.0): Downloading (100%)
- Installing phpdocumentor/phpdocumentor (v2.9.0): Downloading (100%)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
zendframework/zend-filter suggests installing zendframework/zend-crypt (Zend\Crypt component, for encryption filters)
zendframework/zend-filter suggests installing zendframework/zend-uri (Zend\Uri component, for the UriNormalize filter)
zendframework/zend-servicemanager suggests installing ocramius/proxy-manager (ProxyManager 0.5.* to handle lazy initialization of services)
zendframework/zend-servicemanager suggests installing zendframework/zend-di (Zend\Di component)
zendframework/zend-cache suggests installing zendframework/zend-session (Zend\Session component)
zendframework/zend-cache suggests installing ext-apc (APC or compatible extension, to use the APC storage adapter)
zendframework/zend-cache suggests installing ext-apcu (APCU >= 5.1.0, to use the APCu storage adapter)
zendframework/zend-cache suggests installing ext-dba (DBA, to use the DBA storage adapter)
zendframework/zend-cache suggests installing ext-memcache (Memcache >= 2.0.0 to use the Memcache storage adapter)
zendframework/zend-cache suggests installing ext-memcached (Memcached >= 1.0.0 to use the Memcached storage adapter)
zendframework/zend-cache suggests installing ext-mongo (Mongo, to use MongoDb storage adapter)
zendframework/zend-cache suggests installing ext-redis (Redis, to use Redis storage adapter)
zendframework/zend-cache suggests installing ext-wincache (WinCache, to use the WinCache storage adapter)
zendframework/zend-cache suggests installing ext-xcache (XCache, to use the XCache storage adapter)
zendframework/zend-cache suggests installing mongofill/mongofill (Alternative to ext-mongo - a pure PHP implementation designed as a drop in replacement)
zendframework/zend-json suggests installing zendframework/zend-json-server (For implementing JSON-RPC servers)
zendframework/zend-json suggests installing zendframework/zend-xml2json (For converting XML documents to JSON)
zendframework/zend-serializer suggests installing zendframework/zend-math ((^2.6 || ^3.0) To support Python Pickle serialization)
zendframework/zend-i18n suggests installing ext-intl (Required for most features of Zend\I18n; included in default builds of PHP)
zendframework/zend-i18n suggests installing zendframework/zend-i18n-resources (Translation resources)
zendframework/zend-i18n suggests installing zendframework/zend-validator (You should install this package to use the provided validators)
zendframework/zend-i18n suggests installing zendframework/zend-view (You should install this package to use the provided view helpers)
jms/serializer suggests installing symfony/yaml (Required if you'd like to serialize data to YAML format.)
jms/serializer suggests installing doctrine/collections (Required if you like to use doctrine collection types as ArrayCollection.)
jms/serializer suggests installing doctrine/cache (Required if you like to use cache functionality.)
symfony/config suggests installing symfony/yaml (To use the yaml reference dumper)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
symfony/translation suggests installing symfony/yaml ()
symfony/validator suggests installing doctrine/cache (For using the default cached annotation reader and metadata cache.)
symfony/validator suggests installing egulias/email-validator (Strict (RFC compliant) email validation)
symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
symfony/validator suggests installing symfony/http-foundation ()
symfony/validator suggests installing symfony/intl ()
symfony/validator suggests installing symfony/property-access (For using the 2.4 Validator API)
symfony/validator suggests installing symfony/yaml ()
cilex/cilex suggests installing symfony/yaml (>=1.0.0)
phpdocumentor/phpdocumentor suggests installing ext-twig (Enabling the twig extension improves the generation of twig based templates.)
phpdocumentor/phpdocumentor suggests installing ext-xslcache (Enabling the XSLCache extension improves the generation of xml based templates.)
Package kherge/version is abandoned, you should avoid using it. No replacement was suggested.
Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.
Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
I:\PHP Documentor>
~~~