1. Go to this page and download the library: Download anzusystems/common-bundle 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/ */
anzusystems / common-bundle example snippets
public function __construct(
private string $appSystem, // Specific application/system name, eg. "core".
private string $appVersion, // Specific application/system version, eg. "1.0.0".
private bool $appReadOnlyMode, // Boolean if application/system should run in read only mode.
string $environment,
bool $debug,
) {
parent::__construct(
environment: $environment,
debug: $debug
);
}
declare(strict_types=1);
use App\Kernel;
use AnzuSystems\CommonBundle\Kernel\AnzuKernel;
context['APP_NAMESPACE'],
appSystem: $context['APP_SYSTEM'],
appVersion: $context['APP_VERSION'],
appReadOnlyMode: (bool) $context['APP_READ_ONLY_MODE'],
environment: $context['APP_ENV'],
debug: (bool) $context['APP_DEBUG'],
);
};
#!/usr/bin/env php
declare(strict_types=1);
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer APP_VERSION'],
appReadOnlyMode: (bool) $context['APP_READ_ONLY_MODE'],
environment: $context['APP_ENV'],
debug: (bool) $context['APP_DEBUG'],
);
return new Application($kernel);
};
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.