Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.57 KB

installation.md

File metadata and controls

63 lines (43 loc) · 1.57 KB

Installation

Installing LaraPress

The framework installs onto the Larvel Framework. Requirements are found in the Laravel docs.

Via LaraPress Installer

Install with the Installer.

  1. Add this repository to the global composer.json. (Since the install is a fork, it's not on packagist).
"repositories": [
    {   
        "url": "https://github.com/lara-press/installer.git",
        "type": "git"
    }   
]
  1. Then run composer global require lara-press/installer.

  2. After that, create a new LaraPress project with larapress new blog

Manually

  1. Setup a Laravel project.

  2. Setup a database.

  3. Add database credentials to the .env.

  4. Merge the following to the composer.json.

    "require": {
        "funkjedi/composer-include-files": "^1.0",
        "johnpbloch/wordpress": "~4.8",
        "lara-press/framework": "~5.6",
    },
    "extra": {
        "include_files": [
            "public/cms/wp-includes/l10n.php"
        ],  
        "installer-paths": {
            "public/content/mu-plugins/{$name}/": [
                "larapress/framework"
            ]   
        },  
        "wordpress-install-dir": "public/cms"
    },  
  1. Run composer install.

  2. Run this artisan command to publish all LaraPress files.

php artisan vendor:publish --provider="LaraPress\Foundation\Providers\PublishServiceProvider" --force