PHP code example of frizinak / drupony
1. Go to this page and download the library: Download frizinak/drupony 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/ */
frizinak / drupony example snippets
$drupony = drupony_get_wrapper()::Drupony\\Drupony
// Symfony ContainerBuilder
$drupony->getContainer() // Any service declared in enabledModule/service.yml
->get('symfony.component.filesystem')
->mkdir('woop');
$conf['drupony_debug'] = FALSE; // Only enable in dev env (e.a. staging.settings.php)
$conf['drupony_error_handler'] = TRUE; // Symfony error handler will only be enabled
// if both drupony_debug and drupony_error_handler are truthy.
$conf['drupony_autoloader'] = ?; // Absolute path to composer autoload.php (optional), will be set if
// it could be found automatically.