kirainmoe/typecho-to-canvas

Easily converting data from Typecho to Canvas blog platform.

dev-master 2017-10-06 10:05 UTC

This package is not auto-updated.

Last update: 2024-12-21 21:58:01 UTC


README

Easily convert your blog data from Typecho to Canvas blog platform.

Features

  • The first "Switch to Canvas" program for Typecho
  • Convert data include tags, posts, relationships
  • Loading and parsing config automatically
  • CLI mode
  • Adorable developer

Requirement

  • Operating permission of server
  • PHP version >= 5.6.4
  • Composer
  • PHP PDO extensions for your database type
  • PDO complicant database
  • Patient

Usage

Before converting, you must have Typecho and Canvas installed correctly on converting environment.

Install via Git and convert

  • Clone this repository.
$ git clone https://github.com/kirainmoe/typecho-to-canvas
$ cd typecho-to-canvas
  • Install dependencies. You must have composer worked normally.
$ composer install
  • Run te2cn, which lies on the root directory of this repository.
$ php te2cn
  • Follow the instruction and fill in the config.
  • Enjoy Canvas!

Install via Composer and convert

  • Run composer global require.
$ composer global require kirainmoe/typecho-to-canvas:dev-master
  • Run te2cn, follow the instruction and fill in the config.
$ te2cn
  • Enjoy Canvas!

PS: You can copy Typecho's config file config.inc.php to the root directory of this project, te2cn will detece and parse the config automatically.

Q&A

Q: How can I know what caused my failure of converting data?

A: After checking your local environment (eg.permission, database), you can open an issue to tell us the trouble you are facing. We will help you with it.

Q: I don't use Typecho but I use Wordpress, how can I export my data?

A: You may consider this or using typecho2wordpress first before exporting data to Canvas.

Compatibility

te2cn worked perfectly on Typecho 1.0(14.10.10) and Canvas(3.1.0).

Todo

  • Reverse converting (Canvas to Typecho)

Contribute

Feel free to contribute (Pull requests & issues are welcomed).

License

GNU General Public License v2.0.