PHPackages                             apanly/metaweblog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. apanly/metaweblog

ActiveLibrary[API Development](/categories/api)

apanly/metaweblog
=================

通过MetaWeblog协议同时管理51cto,csdn,sina,163,oschina,cnblogs等博客

v1.0.0(5y ago)8774MITPHPPHP ^5.3.3 || ^7.0

Since Jul 5Pushed 5y ago3 watchersCompare

[ Source](https://github.com/apanly/metaweblog)[ Packagist](https://packagist.org/packages/apanly/metaweblog)[ Docs](http://www.54php.cn)[ RSS](/packages/apanly-metaweblog/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

MetaWeblog
==========

[](#metaweblog)

### 主要作用

[](#主要作用)

- 通过MetaWeblog协议同时管理51cto,csdn,sina,163,oschina,cnblogs等博客

### 支持博客

[](#支持博客)

- 51cto
- csdn
- sina
- 163
- oschina
- cnblogs
- chinaunix

### 主要功能

[](#主要功能)

- 实现了发表新文章
- 实现了编辑文章

### 安装

[](#安装)

```
composer require apanly/metaweblog

```

### 使用

[](#使用)

```
$url = "https://my.oschina.net/action/xmlrpc";
$target = new \apanly\metaweblog\MetaWeblog( $url );
$username = "xxx";
$passwd = "xxx";
$target->setAuth( $username,$passwd );

$blog_id = 784865;//等执行了发布新文章之后就会有这个值了

if( $blog_id ){
	$params = [
		'title'=> '测试博文标题--编辑',
		'description'=> '测试博文内容--编辑',
		'categories'=> [ 1 ]
	];
	if( !$target->editPost( $blog_id,$params ) ){
		var_dump( $target->getErrorMessage() );
	}
}else{
	$params = [
		'title'=> '测试博文标题',
		'description'=> '测试博文内容',
		'categories'=> [ 1 ]
	];
	if( $target->newPost( $params ) ){
		$blog_id = $target->getBlogId();
		var_dump( $blog_id );
	}else{
		var_dump( $target->getErrorMessage() );
	}
}

```

### 截图

[](#截图)

- [![新文章](./static/test_1.jpg)](./static/test_1.jpg)
- [![编辑文章](./static/test_2.jpg)](./static/test_2.jpg)

### ToDoList

[](#todolist)

- 目前代码比较冗余，后续改的更优雅点

### Lecense

[](#lecense)

PHP Browser is licensed under [The MIT License (MIT)](LICENSE).

### 参考资料

[](#参考资料)

- [MetaWeblog 同时管理51cto,csdn,sina,163,oschina,cnblogs等博客](http://www.54php.cn/default/91)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50dc4cf4bbc2538609b9b36fa2f20dc08b039f175bf80a439e968ea50d79b250?d=identicon)[apanly](/maintainers/apanly)

---

Top Contributors

[![apanly](https://avatars.githubusercontent.com/u/1491556?v=4)](https://github.com/apanly "apanly (20 commits)")

---

Tags

sinametaweblog51ctocsdnoschinacnblogs

### Embed Badge

![Health badge](/badges/apanly-metaweblog/health.svg)

```
[![Health](https://phpackages.com/badges/apanly-metaweblog/health.svg)](https://phpackages.com/packages/apanly-metaweblog)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
