Download the PHP package qingliangcn/wpxml-parser without Composer

On this page you can find all versions of the php package qingliangcn/wpxml-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wpxml-parser

wpxml-parser

translator wordpress xml data to array and object

安装

composer

Download the Release

release中选择最新版本并下载,解压后在项目中适当位置引入 src/WPXmlParser.php

使用

方法1:数组形式

结果格式:

方法2:对象形式

注意

如果xml文件不存在,则会抛出异常,类型为Exception.

返回数据

一级信息

key type description
title string 博客标题
wp_version string wordpress版本号
author array 作者信息
posts array 文章列表
tags array tag列表
pages array page列表
attachments array 附件列表
description string 博客描述
base_site_url string 站点地址
base_blog_url string 博客地址

作者信息(author)

key type description
author_id int 作者用户ID
author_login string 作者登陆用户名
author_email array 作者email
author_display_name array 作者显示名称
author_first_name string 作者名
author_last_name string 作者姓

文章信息(posts)

key type description
title string 文章标题
link string 文章地址
pubData string 格式化的时间, 2015-06-05 23:11:03
description string 文章描述
content string 文章内容
excerpt string 文章摘要
creator string 文章作者
categoryStr string 分类字符串
categories array 分类数组
tags array tags

Todo

  1. 支持page导出
  2. 完整post信息导出
  3. 支持多媒体导出

All versions of wpxml-parser with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qingliangcn/wpxml-parser contains the following files

Loading the files please wait ....