PHP code example of webkid / js-translator

1. Go to this page and download the library: Download webkid/js-translator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webkid / js-translator example snippets


Route::get('/trans', function () {
	$a = app()->make('jstranslator');
	return response()->json($a->get());
});
 bash
$ php artisan vendor:publish