for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digikraaft\Mono;
use Digikraaft\Mono\Exceptions\InvalidArgumentException;
class Mono extends ApiResource
{
/** @var string The Mono API key to be used for requests. */
public static string $secretKey;
/** @var string The base URL for the Mono API. */
public static $apiBaseUrl = 'https://api.withmono.com';
/**
* @return string the API key used for requests
*/
public static function getSecretKey()
return self::$secretKey;
}
* Sets the API key to be used for requests.
*
* @param string $secretKey
public static function setSecretKey($secretKey)
self::validateSecretKey($secretKey);
self::$secretKey = $secretKey;
* @param $secretKey
* @return bool
* @throws InvalidArgumentException
private static function validateSecretKey($secretKey)
if ($secretKey == '' || ! is_string($secretKey)) {
throw new InvalidArgumentException('Secret key must be a string and cannot be empty');
return true;
* @return array|object
* @throws Exceptions\IsNullException
* @link https://docs.mono.co/reference#list-institutions
public static function coverage()
$url = "coverage";
return static::staticRequest('GET', $url);