PHP code example of raul338 / cakephp-schema
1. Go to this page and download the library: Download raul338/cakephp-schema 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/ */
raul338 / cakephp-schema example snippets
public function bootstrapCli()
{
// ....
$this->addOptionalPlugin('Schema');
}
declare(strict_types=1);
namespace App\Test\Fixture;
use Schema\TestSuite\Fixture\SchemaFixture;
class UsersFixture extends SchemaFixture
{
// This class reads schema from users key in config/schema.php
// and reads records from users key in config/seed.php if exists
}