2017 © Pedro Peláez
 

library php-wordpress-database-tools

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

image

silbinarywolf/php-wordpress-database-tools

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  • Tuesday, August 9, 2016
  • by SilbinaryWolf
  • Repository
  • 1 Watchers
  • 0 Stars
  • 693 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Wordpress Database Tools

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems., (*1)

Quick Start

  • Set Wordpress Database config details
<?php
$wpDB = new WordpressDatabase(array(
    'database'       => 'wordpress-database',
    'username'       => 'root',
    'password'       => '',
    'table_prefix'   => 'wp'
));
  • Loop over Wordpress data and do what you want with it.
<?php
foreach ($wpDB->getPages() as $wpData) {
    $wpMeta = $wpDB->attachAndGetPostMeta($wpData);

    $newRecord = array();
    $newRecord['Title'] = $wpDB->process('post_title', $wpData['post_title']);
    $newRecord['Permalink'] = $wpData['post_name'];
    $newRecord['Content'] = $wpDB->process('post_content', $wpData['post_content']);
    $newRecord['Created'] = $wpData['post_date'];
    $newRecord['LastEdited'] = $wpData['post_modified'];
    $newRecord['WordpressData'] = $wpData; // Since 'attachAndGetPostMeta' attaches the meta to $wpData, it'll store that too.
}

The Versions

09/08 2016

dev-master

9999999-dev

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress

09/08 2016

1.1.0

1.1.0.0

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress

09/08 2016

1.0.3

1.0.3.0

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress

09/08 2016

1.0.2

1.0.2.0

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress

09/08 2016

1.0.1

1.0.1.0

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress

08/08 2016

1.0.0

1.0.0.0

A set of classes for connecting to a Wordpress database and querying it. The point of this library is to easily and effeciently iterate over Wordpress data and import into other CMS systems.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Jake Bentvelzen

wordpress