Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vrkansagara/laravel-wordpress
Laravel module using WordPress as the backend API
https://github.com/vrkansagara/laravel-wordpress
blog laravel module wordpress
Last synced: 2 days ago
JSON representation
Laravel module using WordPress as the backend API
- Host: GitHub
- URL: https://github.com/vrkansagara/laravel-wordpress
- Owner: vrkansagara
- License: bsd-3-clause
- Created: 2019-01-19T18:09:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T13:23:02.000Z (almost 6 years ago)
- Last Synced: 2024-05-01T15:42:37.823Z (7 months ago)
- Topics: blog, laravel, module, wordpress
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel WordPress
Need to set up following things in to .env file
VRKANSAGARA_LARAVEL_WORDPRESS_ENABLED=true
DB_WOREDPRESS_PREFIX='wp_'
DB_WOREDPRESS_CONNECTION='mysql-wordpress'
DB_WORDPRESS_DATABASE='wordpress'
DB_WORDPRESS_USERNAME='${DB_USERNAME}'
DB_WORDPRESS_PASSWORD='${DB_PASSWORD}'### How to use it
getPosts()->get();
foreach ($posts as $k => $post){
echo $post->name;
echo $post->description;
echo $post->title;
echo $post->content;
}
#NoteDB_WOREDPRESS_CONNECTION key must not conflicts with other database key.