简体   繁体   中英

It is possible to use node.js library in php

I'm doing a project in laravel and i need to use this library ( https://www.npmjs.com/package/lunar-calendar ) but this is for node.js.

There is any chance to use this in my laravel project? I also find this library https://www.npmjs.com/package/php-require .

What i have to do?

Thank you

No you cannot use JS library in PHP, And npm is a tool used to download libraries.

What you can do :

Get your library .

Copy it to your public folder and call it from the views based on your conditions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM