Installing htmLawed using the Composer dependency manager for PHP
Composer is the most commonly used tool for installing and updating scripts and libraries used by PHP projects. By default, to find scripts/libraries (packages), the Composer tool searches a single source, the Packagist repository. Because there is no official htmLawed package in the Packagist repository, use of Composer to install/update htmLawed requires that the official htmLawed download site is declared to Composer so it can parse a
packages.json file at the download site (
backup/alternate) to identify the URL to obtain htmLawed from.
# Declare the htmLawed download site
# Alternate download site: https://sourceforge.net/projects/htmlawed/files
composer config repositories.htmlawed composer https://www.bioinformatics.org/phplabware/downloads/
# Install htmLawed
composer require htmlawed/htmlawed
# Update previously installed htmLawed to latest version
composer update htmlawed/htmlawed
To install
htmLawed as a class (OOP code):
# Declare the htmLawed download site
# Alternate download site: https://sourceforge.net/projects/htmlawed/files
composer config repositories.htmlawed composer https://www.bioinformatics.org/phplabware/downloads/
# Install htmLawed in class form (OOP code)
composer require htmlawed/htmlawed-class
# Update previously installed htmLawed to latest version
composer update htmlawed/htmlawed-class
To learn more about using htmLawed in your applications, please visit the htmLawed web-site:
http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed