The framework installs onto the Larvel Framework. Requirements are found in the Laravel docs.
Install with the Installer.
- 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"
}
]
-
Then run
composer global require lara-press/installer
. -
After that, create a new LaraPress project with
larapress new blog
-
Setup a Laravel project.
-
Setup a database.
-
Add database credentials to the .env.
-
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"
},
-
Run composer install.
-
Run this artisan command to publish all LaraPress files.
php artisan vendor:publish --provider="LaraPress\Foundation\Providers\PublishServiceProvider" --force