dev-master
9999999-devSimple PHP shop structure built on Nette Framework
GPL-3.0 BSD-3-Clause GPL-2.0
The Requires
- php >= 5.6
- nette/nette ~2.3
- doctrine/orm ~2.5
Simple PHP shop structure built on Nette Framework
Simple PHP shop structure built on Nette Framework, (*1)
create your configuration file based on app/config.template.neon, (*2)
create bootstrap.php
:, (*3)
require __DIR__ . '/../vendor/autoload.php'; $configurator = new Nette\Configurator; $configurator->setDebugMode([]); $configurator->enableDebugger(__DIR__ . '/../log'); $configurator->setTempDirectory(__DIR__ . '/../temp'); \ShoPHP\ShoPHP::initialize($configurator); $configurator->addConfig(__DIR__ . '/path/to/your/config/config.neon'); return $configurator->createContainer();
cli-config.php
in root folder:use Doctrine\ORM\EntityManagerInterface; $container = require __DIR__ . "/path/to/your/bootstrap.php"; $entityManager = $container->getByType(EntityManagerInterface::class); return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager);
vendor/bin/shophp-db-update.bat f
Simple PHP shop structure built on Nette Framework
GPL-3.0 BSD-3-Clause GPL-2.0