PHP code example of drago-ex / parameters
1. Go to this page and download the library: Download drago-ex/parameters 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/ */
drago-ex / parameters example snippets
use Drago\Parameters\Parameters;
final class ImageStorage
{
public function __construct(
private readonly Parameters $parameters,
) {
}
public function getUploadDir(): string
{
return $this->parameters->wwwDir . '/uploads';
}
}