Documentation

Credits
in package

Get info about libraries.

Tags
copyright

YetiForce S.A.

license

YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)

author

Adrian Koń a.kon@yetiforce.com

author

Radosław Skrzypczak r.skrzypczak@yetiforce.com

Table of Contents

$jsonFiles  : array<string|int, string>
Library json files.
$licenses  : array<string|int, mixed>
Information about libraries license.
checkIfLicenseFileExists()  : bool
Function checks if license file existsF.
getBasicLibraries()  : array<string|int, mixed>
Information about forks CRM.
getCredits()  : array<string|int, mixed>
Function returns information abouts libraries.
getLibraryValues()  : array<string|int, mixed>
Function return library values.
getLicenseInformation()  : array<string|int, mixed>
Function return license information for library.
getPublicLibraries()  : array<string|int, mixed>
Function gets libraries name from public_html.
getVendorLibraries()  : array<string|int, mixed>
Function gets libraries from vendor.
getVueLibs()  : array<string|int, mixed>
Function gets vue libraries name.
getYarnLibraries()  : array<string|int, mixed>
Get libraries based on .yarn-integrity file.
validateLicenseName()  : bool
Function check correct of license.

Properties

$jsonFiles

Library json files.

public static array<string|int, string> $jsonFiles = ['package.json', 'composer.json', 'bower.json']

$licenses

Information about libraries license.

public static array<string|int, mixed> $licenses = ['bootstrap-tabdrop' => 'Apache-2.0', 'color-convert' => 'MIT', '@fortawesome/fontawesome-free' => 'MIT', 'fontawesome-web' => 'MIT', 'ckeditor/ckeditor' => 'MPL-1.1+', 'block-ui' => 'MIT', 'jquery-slimscroll' => 'MIT', 'html5shiv' => 'MIT', 'jquery-lazy' => 'MIT', 'nette/php-generator' => 'BSD-3-Clause', 'nette/utils' => 'BSD-3-Clause', '@mdi/font' => 'MIT', 'domhandler' => 'BSD-2-Clause', 'domutils' => 'BSD-2-Clause', '@vue/compiler-sfc' => 'MIT']

Methods

checkIfLicenseFileExists()

Function checks if license file existsF.

public static checkIfLicenseFileExists(string $license) : bool
Parameters
$license : string
Return values
bool

getBasicLibraries()

Information about forks CRM.

public static getBasicLibraries() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCredits()

Function returns information abouts libraries.

public static getCredits() : array<string|int, mixed>
Tags
throws
AppException
Return values
array<string|int, mixed>

getLibraryValues()

Function return library values.

public static getLibraryValues(string $name, string $dir) : array<string|int, mixed>
Parameters
$name : string
$dir : string
Tags
throws
AppException
Return values
array<string|int, mixed>

getLicenseInformation()

Function return license information for library.

public static getLicenseInformation(string $dir, string $libraryName) : array<string|int, mixed>
Parameters
$dir : string
$libraryName : string
Return values
array<string|int, mixed>

getPublicLibraries()

Function gets libraries name from public_html.

public static getPublicLibraries() : array<string|int, mixed>
Tags
throws
AppException
Return values
array<string|int, mixed>

getVendorLibraries()

Function gets libraries from vendor.

public static getVendorLibraries() : array<string|int, mixed>
Tags
throws
AppException
Return values
array<string|int, mixed>

getVueLibs()

Function gets vue libraries name.

public static getVueLibs() : array<string|int, mixed>
Tags
throws
AppException
Return values
array<string|int, mixed>

getYarnLibraries()

Get libraries based on .yarn-integrity file.

public static getYarnLibraries(string $integrityFile, string $srcDir) : array<string|int, mixed>
Parameters
$integrityFile : string
$srcDir : string
Return values
array<string|int, mixed>

validateLicenseName()

Function check correct of license.

public static validateLicenseName(array<string|int, mixed>|string $license) : bool
Parameters
$license : array<string|int, mixed>|string
Return values
bool

        

Search results