loevgaard / dandomain-stock-bundle
Symfony bundle to handle stock i Dandomain, especially stock movements
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- doctrine/doctrine-bundle: ^1.6
- loevgaard/dandomain-stock-entities: dev-master
- symfony/framework-bundle: ^3.3||^4.0
- symfony/yaml: ^3.0||^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.7||^6.0
- symfony/phpunit-bridge: ^3.0
This package is auto-updated.
Last update: 2024-11-06 09:54:12 UTC
README
Symfony bundle to handle stock i Dandomain, especially stock movements
Installation
Step 1: Install dependencies
This bundle depends on the Doctrine2 Behaviors Bundle by KNP Labs.
Install that bundle first, and then return to this page.
Step 2: Download the bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require loevgaard/dandomain-stock-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 3: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new Loevgaard\DandomainStockBundle\LoevgaardDandomainStockBundle(), ]; // ... } // ... }
Step 4: Configure the bundle
# app/config/config.yml loevgaard_dandomain_stock: dandomain_order_state_ids: [3]
Step 5: Update your database schema
$ php bin/console doctrine:schema:update --force
or use Doctrine Migrations.