# Mageplaza Core for Magento 2

## How to install Mageplaza_Core


### 1. Install via composer (recommend)

We recommend you to install Mageplaza_Core module via composer. It is easy to install, update and maintaince.

Run the following command in Magento 2 root folder.

#### Install

```
composer require mageplaza/module-core
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```

#### Update

```
composer update mageplaza/module-core
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```

Run compile if your store in Product mode:

```
php bin/magento setup:di:compile
```

### 2. Copy and paste

If you don't want to install via composer, you can use this way. 

- Download [the latest version here](https://github.com/mageplaza/module-core/archive/master.zip) 
- Extract `master.zip` file to `app/code/Mageplaza/Core` ; You should create a folder path `app/code/Mageplaza/Core` if not exist.
- Go to Magento root folder and run upgrade command line to install `Mageplaza_Core`:

```
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```
