search

Home  >  Q&A  >  body text

How does Thinkphp call PHP extensions?

I installed the grpc extension of php and can call it normally using the php command line directly

[root@localhost softEval]# php greeter_client.php

Hello world


But in the Thinkphp framework, I use the same method to call the extension function, prompt:
Class 'Grpc\ChannelCredentials' not found


Does anyone know how to call PHP extensions in the thinkphp framework?

Thank you!

轻轻的轻轻的2330 days ago1142

reply all(1)I'll reply

  • 无忌哥哥

    无忌哥哥2018-07-10 11:05:05

    It is still recommended to search on Baidu or take a look at the official documentation of tp.

    reply
    0
  • Cancelreply