1. Go to this page and download the library: Download fr3nch13/cakephp-pta 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/ */
fr3nch13 / cakephp-pta example snippets
// define any constants you need to overwrite above these lines.
$root = dirname(__DIR__);
chdir($root);
# test/bootstrap.php
// ... code ...
Configure::write('Tests.Plugins', [
'Namespace/PluginName', // the name of your plugin
'Fr3nch13/Jira', // Using one of my plusins as an example
]);
// plugins just for the command line
Configure::write('Tests.PluginsCli', [
'Namespace/PluginName', // the name of your plugin
]);
// ... code ...
# test/bootstrap.php
// ... code ...
Configure::write('Tests.Migrations', [
['plugin' => 'Namespace/PluginName'],
// just using some of my plugins as an example
['plugin' => 'Fr3nch13/Jira'],
['plugin' => 'Fr3nch13/Utilities'],
['plugin' => 'Fr3nch13/Excel'],
]);
// ... code ...