可以查看网址:https://packagist.org/packages/elasticsearch/elasticsearch
输入命令 composer require elasticsearch/elasticsearch 会直接安装。