madeitbelgium/wordpress-eloquent is a Laravel package for wordpress eloquent for laravel.
It currently has 0 GitHub stars and 121 downloads on Packagist (latest version 1.2.0).
Install it with composer require madeitbelgium/wordpress-eloquent.
Discover more Laravel packages by madeitbelgium
or browse all Laravel packages to compare alternatives.
Last updated
This laravel packages add all the models to use a WordPress database in your Laravel application.
composer require madeitbelgium/wordpress-eloquent
Or require this package in your composer.json and update composer.
"madeitbelgium/wordpress-eloquent": "^1.0"
Change your user model, and extend it to MadeITBelgium\WPEloquent\Model\User.
<?php
namespace App;
...
use MadeITBelgium\WPEloquent\Model\User as WPUser;
...
class User extends WPUser
{
...
}
<?php
namespace App;
use MadeITBelgium\WPEloquent\Model\Post;
class CustomPostType extends Post
{
protected $post_type = 'custom_post_type';
}
The complete documentation can be found at: http://www.madeit.be/
Support github or mail: [email protected]
Please try to follow the psr-2 coding style guide. http://www.php-fig.org/psr/psr-2/
This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!