shophp / shophp
Simple PHP shop structure built on Nette Framework
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >= 5.6
- doctrine/orm: ~2.5
- nette/nette: ~2.3
This package is not auto-updated.
Last update: 2024-04-13 16:12:47 UTC
README
Simple PHP shop structure built on Nette Framework
Installation
-
create your configuration file based on app/config.template.neon
-
create
bootstrap.php
:
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();
- create
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);
- execute
vendor/bin/shophp-db-update.bat f