LaravelPackages.net
Acme Inc.
Toggle sidebar
madeitbelgium/wordpress-eloquent

WordPress Eloquent for Laravel

121
0
1.2.0
About madeitbelgium/wordpress-eloquent

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

WordPress Eloquent

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

This laravel packages add all the models to use a WordPress database in your Laravel application.

Installation

composer require madeitbelgium/wordpress-eloquent

Or require this package in your composer.json and update composer.

"madeitbelgium/wordpress-eloquent": "^1.0"

Documentation

Installation

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
{
  ...
}

Custom post type

<?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

Support github or mail: [email protected]

Contributing

Please try to follow the psr-2 coding style guide. http://www.php-fig.org/psr/psr-2/

License

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!

Star History Chart