2017 © Pedro Peláez
 

library canvas-importer

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

image

mopo922/canvas-importer

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

  • Friday, June 23, 2017
  • by mopo922
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CanvasImporter

Command line tool to import another blog's posts into Laravel Canvas., (*1)

Installation

Canvas

Add this to your project's composer.json file:, (*2)

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

Add this to the providers array in config/app.php:, (*3)

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

Run composer update., (*4)

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., (*5)

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., (*6)

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 & password:, (*7)

https://github.com/WP-API/Basic-Auth, (*8)

  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., (*9)

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 & password., (*10)

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., (*11)

The Versions

23/06 2017

dev-master

9999999-dev https://github.com/mopo922/CanvasImporter

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress laravel l5 canvas import blog