PHP code example of objective-php / phinx-package
1. Go to this page and download the library: Download objective-php/phinx-package 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/ */
objective-php / phinx-package example snippets
use ObjectivePHP\Package\Phinx\Config\PhinxConfig;
return [
(new PhinxConfig())
->setFilePath('phinx.php')
];
use ObjectivePHP\Application\AbstractApplication
use ObjectivePHP\Package\Phinx\PhinxPackage;
class Application extends AbstractApplication
{
public function init()
{
// define your application workflow
$this->getStep('bootstrap')
->plug(PhinxPackage::class);
}
}