Can PHP copy to clipboard without assistance of JS? [duplicate]

  copy, javascript, laravel, php

guys.

I’ve recently worked with Laravel and JS and I found myself with the problem of using PHP for routes and controllers but needing to use JS for copying something to clipboard. That took me a while and the result could be better if I could make the copy function with PHP, but I have not found a proper way to do it without JS.

Thanks a lot, guys.

Source: Laravel

Leave a Reply