shophp/shophp

Simple PHP shop structure built on Nette Framework

Maintainers

Details

github.com/shophp/shophp

Source

Issues

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-master 2016-04-05 21:38 UTC

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

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