Download the PHP package vrkansagara/laravel-wordpress without Composer
On this page you can find all versions of the php package vrkansagara/laravel-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vrkansagara/laravel-wordpress
More information about vrkansagara/laravel-wordpress
Files in vrkansagara/laravel-wordpress
Download vrkansagara/laravel-wordpress
More information about vrkansagara/laravel-wordpress
Files in vrkansagara/laravel-wordpress
Vendor vrkansagara
Package laravel-wordpress
Short Description Laravel module using WordPress as the backend API
License BSD-3-Clause
Homepage https://vrkansagara.in/
Package laravel-wordpress
Short Description Laravel module using WordPress as the backend API
License BSD-3-Clause
Homepage https://vrkansagara.in/
Please rate this library. Is it a good library?
Informations about the package laravel-wordpress
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
<?php
$obj = new LaravelWordpress();
$posts = $obj->getPosts()->get();
foreach ($posts as $k => $post){
echo $post->name;
echo $post->description;
echo $post->title;
echo $post->content;
}
Note
DB_WOREDPRESS_CONNECTION key must not conflicts with other database key.
All versions of laravel-wordpress with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package vrkansagara/laravel-wordpress contains the following files
Loading the files please wait ....