C
C
capitancrazy2017-02-20 11:29:57
Laravel
capitancrazy, 2017-02-20 11:29:57

Is it possible and how to use js library for parsing in laravel?

I have a local laravel application, one of the functions of which is an English dictionary.
I would like to parse pronunciation from sites like this one on the server side for every word, enter a link or file into the database, and not use a PHP library for this, but for example slimerjs or phantomjs.
How can this be done with laravel, or is it better without?
JhaoDa , why are you editing the laravel tag? The question is about how to build a bridge between Laravel and the js parsing library.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
capitancrazy, 2017-03-08
@capitancrazy

This can be done like this:

use Symfony\Component\Process;
$process = new Process('terminal call js pacing library');
$process->run();

Saving to db on js side or laravel side
$process->getOutput();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question