dqde43215 2016-05-16 19:11
浏览 98
已采纳

为Elasticsearch手动安装PHP API库

I downloaded this php api package from github

https://github.com/elastic/elasticsearch-php/tree/2.0

but I am having a hard time installing it. I unfortunately dont have permission to use the composer/auto-loader from where I work so I have to do it manually. Is there a way of doing this?

Thanks for your help.

  • 写回答

1条回答 默认 最新

  • dongmu1989 2016-05-16 19:31
    关注

    The classes look pretty well formatted PSR-4 so you should be able to just download the directorysrc/Elasticsearch, and make a simple autoloader of your own and register it (assuming you don't already have one setup to serve classes that adhere to PSR-4).

    Here's some options: http://www.php-fig.org/psr/psr-4/examples/

    All the other directories seem to to be extraneous to running of the classes--for unit testing and benchmarking.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!