How to run casperJS script from php API

前端 未结 2 999
灰色年华
灰色年华 2021-01-15 18:58

I have a casperJS script which returns JSON when run via commandline. I want to make an API preferably in PHP which runs the script as in commandline (casperJS sample.js) an

2条回答
  •  一向
    一向 (楼主)
    2021-01-15 19:24

    You can use php-casperjs library which is a simple wrapper for casperjs.

提交回复
热议问题