PHP code example of soundasleep / phpdoc2
1. Go to this page and download the library: Download soundasleep/phpdoc2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soundasleep / phpdoc2 example snippets
namespace Openclerk\Currencies;
/**
* A "currency" represents some unit of measurement that can
* be converted into another "currency" unit, e.g. through an {@link Exchange}.
* Can also cover commodities.
*
* This is the base interface; other interfaces will provide additional
* functionality as necessary.
*/
interface Currency {
/**
* Get the unique three-letter currency code for this currency,
* e.g. 'btc' or 'usd'. Must be lowercase. This is not visible to users.
*/
public function getCode();
/**
* @return true if this can be considered a "cryptocurrency", e.g. "btc"
*/
public function isCryptocurrency();
// ...
}
php -f phpdoc2.php -- --directory "src/" --output "docs/"