Download the PHP package aternos/licensee without Composer
On this page you can find all versions of the php package aternos/licensee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aternos/licensee
More information about aternos/licensee
Files in aternos/licensee
Package licensee
Short Description A library to detect well-known licenses based on their title or content.
License MIT
Informations about the package licensee
PHP-Licensee
This library can be used to detect well-known licenses based on their title or content. PHP-Licensee is based on the Licensee Ruby Gem, but not quite a full port.
Information about licenses is generated from data from choosealicense.com and the SPDX License List. Note that only licenses that are listed on choosealicense.com can be detected by this library.
Installation
Usage
Detect license by ID string
Detect license by title
Setting the optional argument allowMatchWithoutVersion
to true
will allow the detection of licenses
without considering the version number, in case no exact match can be found.
Detect license by content
This will try to find a license that is an exact match (after some normalization steps), or use a version of the Dice-Sørensen coefficient.
Optionally, a confidenceThreshold
value between 0 and 100 can be supplied to findLicenseByContent
.
If not set, the default value of 98.0 will be used.
Get license information
Most of the information available on choosealicense.com can be accessed through the license object:
Key differences to Ruby Licensee
No projects
This library does not automatically scan project directories for license files or package metadata. Finding the correct license file is up to the user.
No pseudo licenses
Ruby Licensee can return the pseudo licenses other
and no-license
if no license could be detected.
This library will simply return null
in this case.
All versions of licensee with dependencies
league/html-to-markdown Version ^5.1
ext-yaml Version *
php Version >=8.3