2017-25 © Pedro Peláez
 

library cleanoquent

A wp-kit component that serves clean Eloquent models for Wordpress

image

wp-kit/cleanoquent

A wp-kit component that serves clean Eloquent models for Wordpress

  • Tuesday, September 19, 2017
  • by terence1990
  • Repository
  • 1 Watchers
  • 0 Stars
  • 113 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

wp-kit/cleanoquent

This is a wp-kit component that serves clean Eloquent models for Wordpress., (*1)

Installation

If you're using Themosis, install via Composer in the root of your Themosis installation, otherwise install in your Composer driven theme folder:, (*2)

composer require "wp-kit/cleanoquent"

Usage

Model

wp-kit/cleanoquent comes with various models which you can extend. For posts wp-kit/cleanoquent uses wp-kit/magic-meta to append and query for meta data., (*3)

namespace Theme\Models;

use WPKit\Cleanoquent\Model\Post;

class Address extends Post {

    /**
         * The post_type associated with the model.
         *
         * @var string
         */
        protected $post_type = 'wc-address';

        /**
         * The magic_meta attributes that are mass assignable.
         *
         * @var array
         */
        protected $magic_meta = [
            '_first_name' => 'first_name',
            '_last_name' => 'last_name',
            '_company' => 'company',
            '_address_1' => 'address_1',
            '_address_2' => 'address_2',
            '_city' => 'city',
            '_state' => 'state',
            '_postcode' => 'postcode',
            '_country' => 'country',
            '_email' => 'email',
            '_phone' => 'phone'
        ];

}

Get Involved

To learn more about how to use wp-kit check out the docs:, (*4)

View the Docs, (*5)

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:, (*6)

  • Reporting a bug issue
  • Suggesting features
  • Sending a pull request with code fix or feature
  • Following the project on GitHub
  • Sharing the project around your community

For details about contributing to the framework, please check the contribution guide., (*7)

Requirements

Wordpress 4+, (*8)

PHP 5.6+, (*9)

License

wp-kit/cleanoquent is open-sourced software licensed under the MIT License., (*10)

The Versions

19/09 2017

dev-master

9999999-dev https://github.com/wp-kit/cleanoquent

A wp-kit component that serves clean Eloquent models for Wordpress

  Sources   Download

MIT

The Requires

 

wordpress eloquent clean oop themosis wp-kit assley

19/09 2017

1.0.0

1.0.0.0 https://github.com/wp-kit/cleanoquent

A wp-kit component that serves clean Eloquent models for Wordpress

  Sources   Download

MIT

The Requires

 

wordpress eloquent clean oop themosis wp-kit assley