Package Data | |
---|---|
Maintainer Username: | marcoboom |
Package Create Date: | 2017-01-31 |
Package Last Update: | 2017-02-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-29 15:16:34 |
Package Statistics | |
---|---|
Total Downloads: | 966 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 6 |
This package is experimental, don't use it for production.
This package is not yet available with packagist, so you have to create a repositories section in you composer.json file.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/laravel-admin/headless-wordpress"
}
]
Add a repositories section to you composer.json to fetch the Wordpress packagist.
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
Add some installer paths
"extra": {
"installer-paths": {
"public/mu-plugins/{$name}": ["type:wordpress-muplugin"],
"public/plugins/{$name}": ["type:wordpress-plugin"],
"public/themes/{$name}": ["type:wordpress-theme"]
},
"wordpress-install-dir": "public/wordpress"
}
Run composer
composer require laravel-admin/headless-wordpress
Add the service provider to your config/app.php
LaravelAdmin\HeadlessWordpress\HeadlessWordpressServiceProvider::class,
Add some folders to your gitignore:
public/languages
public/plugins
public/upgrade
public/uploads
public/wordpress
Publish the public files
artisan vendor:publish --tag="public"