Download the PHP package inspiredminds/contao-wordpressimport without Composer

On this page you can find all versions of the php package inspiredminds/contao-wordpressimport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-wordpressimport

Contao WordPress Import

Contao 4 extension that allows you to import news articles from WordPress posts via the WordPress JSON API.

Installation

Require the bundle via composer:

If you use the Contao Standard Edition, you will have to add

to your AppKernel.php.

Then execute the Contao Install Tool to update the database.

Usage

Once installed, you will have new options within a news archive:

Contao news archive settings

Console Command

To import the WordPress posts into your Contao installation, you can use the following console command:

Optionally you can define the limit of how many WordPress posts are imported in one go:

This will only import 10 WordPress posts at a time.

Use bin/console in the Contao Standard Edition.

Periodic import

If you activated the periodic import, the WordPress posts will be imported hourly by Contao's cronjob.

Note: by default only 10 items will be imported with each cronjob execution. The import can take a long time (depending on the number of WordPress posts and the number of images to be downloaded). This limit is there so that a cronjob execution does not block a user's request for a long time (or at least until the max_execution_time limit is hit). You can change this limit in the System Settings.

Events

Version 2.1.0 introduced an WordPressImportBundle\Event\ImportWordPressPostEvent which is fired for each imported WordPress post after it has been fully processed by the extension. It holds references to the used HTTP client instance, the WordPress post object and the Contao\NewsModel instance. This allows you to modify the imported news article.


All versions of contao-wordpressimport with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
contao/core-bundle Version ^4.9 || ^5.0
doctrine/dbal Version ^2.11 || ^3.0
guzzlehttp/guzzle Version ^6.3 || ^7.0
nyholm/psr7 Version ^1.2
paquettg/php-html-parser Version ^2.0
symfony/config Version ^4.4 || ^5.0 || ^6.0
symfony/console Version ^4.4 || ^5.0 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0
symfony/event-dispatcher Version ^4.4 || ^5.0 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0
webmozart/path-util Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inspiredminds/contao-wordpressimport contains the following files

Loading the files please wait ....