> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/faq/php-sample-to-generate-a-license-key.md).

# PHP Sample to generate a license key

To generate a license key from PHP:

\<html>\
\<head>\
\<title>QLM PHP Test\</title>\
\</head>\
\<body>\
\<?php echo '\<p>Generated Trial License Key:\</p>';\
\
$URL = "<https://qlm3.net/qlmdemo/qlmLicenseServer/qlmservice.asmx>/GetActivationKeyWithExpiryDate?is\_productid=1\&is\_majorversion=1\&is\_minorversion=0\&is\_expduration=30";\
$data = file\_get\_contents($URL);\
echo $data\
\
?>\
\</body>\
\</html>
