Hi there,
Hopefully I can help you out here and clear up some of your confusion.

If you just have general questions around how to free your JavaScript, I
would suggest that you start at the top of the LibreJS guide [0].

If you are asking specifically about how to use JavaScript Web Labels, then
I would direct your attention to Step 3 of the guide that I've linked above.
As you can read there, the suggested way to use JavaScript Web Labels is to
have a separate HTML page that only contains an HTML table like the one
that you included in your email.

Then, on any other page which loads your JavaScript file(s), you simply
need to an anchor tag (<a>) to your separate HTML page that contains your
HTML table. This anchor tag should either have a `data-jslicense="1"`
attribute on it so that LibreJS can efficiently find it.

There is example code snippets of all of this in the guide I've linked as
well as much more complete explanations than what I've given here.

Your question was specifically about using JavaScript Web Labels from PHP.
I believe that what you are getting at is that your application uses PHP on
the backend, and you want to free your front-end JavaScript. To do so,
there is nothing extra you must do to your PHP code. You must simply add
the required HTML markup.

I hope that this helps clear up your confusion, and if not, please do not
hesitate to reach back out.
-zach

[0] https://www.gnu.org/software/librejs/free-your-javascript.html

On Fri, Jan 13, 2017 at 10:47 PM, Jesús Eduardo <heck...@openmailbox.org>
wrote:

> Hello dear friends LibreJS developers. Have some example of how license in 
> php?
>
> I have seen what can be done by using tables. But I am somewhat lost in the 
> subject.
> <table id="jslicense-labels1">
>     <tr>
>         <td><a href="all.min.js">all.min.js</a></td>
>         <td>
>             <a href="http://www.gnu.org/licenses/gpl-3.0.html"; 
> <http://www.gnu.org/licenses/gpl-3.0.html>>GPL-3.0+</a>
>             <br />
>             <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
> <http://www.apache.org/licenses/LICENSE-2.0>>Apache-2.0</a>
>         </td>
>         <td>
>             <a href="gpl-script.js">gpl-script.js</a>
>             <br />
>             <a href="apache-script.js">apache-script.js</a>
>         </td>
>     </tr>
> </table>
>
> Could explain how to do in PHP?
>
> Many thanks for your prompt response.
>
> --
> Jesús Eduardohttps://goblinrefuge.com/mediagoblin/u/cybersy/
>
> Protect your emails with GnuPG:https://emailselfdefense.fsf.org
>
>

Reply via email to