PHP code example of goldfinch / taz
1. Go to this page and download the library: Download goldfinch/taz 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/ */
goldfinch / taz example snippets
// you can place it to app/_config.php
use SilverStripe\Core\Environment;
use SilverStripe\Control\Director;
if (Director::isDev() && Environment::hasEnv('SS_DATABASE_SOCKET')) {
ini_set('mysqli.default_socket', Environment::getEnv('SS_DATABASE_SOCKET'));
}
bash
php taz make:command MyCustom