2017 © Pedro Peláez
 

library wordpress-faker

image

digitalkaoz/wordpress-faker

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

wordpress-faker

generate Wordpress Posts with Alice/Faker, (*1)

Installation

with Composer :, (*2)

{
    "require-dev": {
        "digitalkaoz/wordpress-faker": "dev-master"
    }
}

as executable PHAR :, (*3)

$ wget https://github.com/digitalkaoz/wordpress-faker/wordpress-faker.phar

Usage

simply define a Alice Faker File (see https://github.com/nelmio/alice and https://github.com/fzaninotto/Faker), (*4)

here is a simple Example:, (*5)

digitalkaoz\WordpressFaker\Post:     #using this class is mandatory
    posts{1..10}:                    #will be a wp_post
        __set: __set
        post_title: <sentence()>
        post_status: 'publish'
        post_content: <paragraphs(6)>
        post_author: 1
        meta:                        #all these parameters will be wp_post_meta
          my_custom_meta: <boolean()>

Then run the Generation:, (*6)

$ php wordpress-faker.phar fake PATH/TO/my_faker.yml PATH/TO/wp_config.php

Voila you have created 10 random Posts, (*7)

Tests

to be followed, (*8)

TODO

  • more wordpress features
  • Tests

The Versions

06/12 2013

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires