PHPackages                             artem-frolov/yii-livejournal - 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. artem-frolov/yii-livejournal

ActiveLibrary[API Development](/categories/api)

artem-frolov/yii-livejournal
============================

Yii extension for Livejournal.com

v1.0.0(10y ago)225MITPHPPHP &gt;=5.1.0

Since Mar 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/artem-frolov/yii-livejournal)[ Packagist](https://packagist.org/packages/artem-frolov/yii-livejournal)[ Docs](https://github.com/artem-frolov/yii-livejournal)[ RSS](/packages/artem-frolov-yii-livejournal/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Yii extension for Livejournal.com
=================================

[](#yii-extension-for-livejournalcom)

With ELivejournal class you can create new entries and update existing entries in your LiveJournal.com blog.

- License: [MIT](https://opensource.org/licenses/MIT)
- Developed by [Artem Frolov](http://frolov.net)

Requirements
------------

[](#requirements)

- Yii 1.0, 1.1 or above
- Enabled XML-RPC support in PHP

Usage
-----

[](#usage)

#### Simple usage:

[](#simple-usage)

```
Yii::import('ext.livejournal.*');
$post = new ELivejournal('username', 'password');
$post->subject = 'Subject test';
$post->body = 'Hello, world';
if ($post->save())
{
	echo "Entry's id: ".$post->id;
	echo "Entry's url: ".$post->url;
}
else
{
	echo 'Error (code '.$post->errorCode.'): ';
	echo $post->error;
}
```

#### Advanced usage:

[](#advanced-usage)

```
Yii::import('ext.livejournal.*');
$post = new ELivejournal('username', 'md5_hash_of_the_password', true);

//Use the following line if you want to update an entry by id
//$post->id = 2;

$post->subject = 'Subject test';
$post->body = 'Hello, world';

//Entry's time will be 'now' + 1 week
$post->time = time() + 60*60*24*7;

//Entry's tags will be 'red,green,blue'
$post->tags = array('red','green');
$post->addTag('blue');

//Entry's properties from http://www.livejournal.com/doc/server/ljp.csp.proplist.html
//current music
$post->setMetadata('current_music','Muse - Butterflies and hurricanes');
//Comments will be disabled
$post->setMetadata('opt_nocomments',true);

//Entry will be visible only for friends
$post->setPrivate();

//Turns on \r and \n removing from the entry's body
//Sometimes it's useful because LiveJournal.com translates new lines to
$post->setDeleteNewLines();

if ($post->save())
{
	echo "Entry's id: ".$post->id;
	echo "Entry's url: ".$post->url;
}
else
{
	echo 'Error (code '.$post->errorCode.'): ';
	echo $post->error;
}
```

Change log
----------

[](#change-log)

#### yii-livejournal 1.0 (Mar 12, 2016)

[](#yii-livejournal-10-mar-12-2016)

- minor fixes

#### yii-livejournal 0.3 (Dec 23, 2011)

[](#yii-livejournal-03-dec-23-2011)

- fixed: now extension is compatible with the latest API where User-Agent header is required

#### yii-livejournal 0.2 (Sep 9, 2011)

[](#yii-livejournal-02-sep-9-2011)

- changed: you don't have to store original livejournal.com password because now ELivejournal constructor can accept md5 hash of the password

#### yii-livejournal 0.1.1 (Aug 25, 2011)

[](#yii-livejournal-011-aug-25-2011)

- minor fixes

Resources
---------

[](#resources)

- [yii-livejournal extension page on yiiframework.com](http://www.yiiframework.com/extension/livejournal)
- [Composer package on packagist.com](https://packagist.org/packages/artem-frolov/yii-livejournal)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6c081a658f1144a247e74ce302e80f513f5a7a893a7d958366f32062fbb5767?d=identicon)[artem-frolov](/maintainers/artem-frolov)

---

Top Contributors

[![artem-frolov](https://avatars.githubusercontent.com/u/1002167?v=4)](https://github.com/artem-frolov "artem-frolov (15 commits)")

---

Tags

yiiblogxml-rpclivejournallivejournal.com

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/artem-frolov-yii-livejournal/health.svg)

```
[![Health](https://phpackages.com/badges/artem-frolov-yii-livejournal/health.svg)](https://phpackages.com/packages/artem-frolov-yii-livejournal)
```

###  Alternatives

[phpxmlrpc/phpxmlrpc

A php library for building xmlrpc clients and servers

2414.9M45](/packages/phpxmlrpc-phpxmlrpc)[monitorbacklinks/yii2-wordpress

Yii2 component for integration with Wordpress CMS via XML-RPC API

3326.9k](/packages/monitorbacklinks-yii2-wordpress)[tivoka/tivoka

The universal JSON-RPC client/server library. JSON-RPC done right!

74159.0k3](/packages/tivoka-tivoka)[ihor/supervisor-xml-rpc

Simple Supervisor XML RPC Client in PHP (http://supervisord.org)

34130.4k1](/packages/ihor-supervisor-xml-rpc)[splashlab/yii-facebook-opengraph

Yii1 Extension for the Facebook Open Graph 2.x and PHP SDK 5.x

4346.5k](/packages/splashlab-yii-facebook-opengraph)[tbondois/odoo-ripcord

Ripoo : a PHP8 XML-RPC client handler for Odoo External API

16124.3k1](/packages/tbondois-odoo-ripcord)

PHPackages © 2026

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