How to use php – scripts in chrome extensions?
1 answer
Chrome does not provide a PHP engine. PHP is initially, as a language, designed to dynamically generate web pages from the server side. JavaScript is used for chromium extensions, and it is used to access the browser API .
But if you want to use PHP specifically for any reason, you can write (or find a ready-made library) interpreter in JavaScript. The Chrome Web Store already has several extensions for working with PHP - you can install, unpack and see how it works for example.
|