PHPackages                             mopo922/canvas-importer - 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. mopo922/canvas-importer

ActiveLibrary

mopo922/canvas-importer
=======================

Command line tool to import another blog's posts into Laravel Canvas.

03PHP

Since Jun 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mopo922/CanvasImporter)[ Packagist](https://packagist.org/packages/mopo922/canvas-importer)[ RSS](/packages/mopo922-canvas-importer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CanvasImporter
==============

[](#canvasimporter)

Command line tool to import another blog's posts into Laravel [Canvas](https://github.com/cnvs/canvas).

Installation
------------

[](#installation)

### Canvas

[](#canvas)

Add this to your project's `composer.json` file:

```
    // ...
    "require": {
        // ...
        "mopo922/canvas-importer": "dev-master",
        // ...
    },
    // ...
```

Add this to the `providers` array in `config/app.php`:

```
'providers' => [
    // ...
    CanvasImporter\CanvasImporterServiceProvider::class,
]
```

Run `composer update`.

After the import is complete, you can remove these lines and run `composer update`again if you don't plan on using the importer any more.

Finally, you'll want to make sure `config('app.url')` is defined properly in `config/app.php`, otherwise post images won't download or display properly.

### WordPress

[](#wordpress)

When importing a WordPress blog, you'll need to install this Basic Authentication plugin to allow the importer to talk to the WordPress API using your admin username &amp; password:

1. Download the basic-auth.php file.
2. "Zip" it.
3. Upload it using the Add Plugin UI in your WordPress back-end.
4. Activate the plugin.

*IMPORTANT:* You should deactivate this plugin as soon as the import is complete, as it is not recommended for production environments.

Usage
-----

[](#usage)

From your project's root directory, run `php artisan canvas:import`. The importer will take care of the rest, prompting you for the information it needs to complete the task. Have the URL of your old blog handy, along with the admin username &amp; password.

*Pro Tip:* If you're using a VM, like Vagrant or Laravel Homestead, make sure you're on the server, not on the host machine, when running `canvas:import`.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8d86f39569b317b0012ebecd68216d1c7664727d8505aabd5ec781370174475?d=identicon)[mopo922](/maintainers/mopo922)

---

Top Contributors

[![mopo922](https://avatars.githubusercontent.com/u/1744373?v=4)](https://github.com/mopo922 "mopo922 (7 commits)")

### Embed Badge

![Health badge](/badges/mopo922-canvas-importer/health.svg)

```
[![Health](https://phpackages.com/badges/mopo922-canvas-importer/health.svg)](https://phpackages.com/packages/mopo922-canvas-importer)
```

PHPackages © 2026

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