Download the PHP package belisoful/prado-wp-integrator without Composer

On this page you can find all versions of the php package belisoful/prado-wp-integrator. 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 prado-wp-integrator

PRADO WordPress Integrator

Build Status

This PRADO module integrates WordPress into PRADO applications, providing access to WordPress content and users within PRADO applications.

Experimental Code

Features

Requirements

Install

The best way to install PRADO WordPress Integrator is through composer.

Integrate the PRADO WordPress Integrator using composer:

The plugin will be installed in the "vendor" directory.

Add PRADO WordPress Integrator to an existing application

Just create a composer.json file for your project:

The PRADO WordPress Integrator is a PRADO 7.4+ extension to plug in new functionality directly into a PRADO application.

Development / testing against WordPress

The test suite and PHPStan bootstrap locate WordPress in this order:

  1. the WP_DIR environment variable — an existing WordPress install, e.g. WP_DIR=/var/www/wordpress composer unittest;
  2. wordpress/ in the repository root, installed by roots/wordpress (a require-dev dependency) on composer install.

roots/wordpress ships no wp-content/; when the resolved install has none, tests use the stub content directory in tests/fixtures/wp-content (which contains a minimal theme) as WP_CONTENT_DIR.

Documentation

The Tutorial

Usage

To use this module:

  1. Add the module to your PRADO application configuration
  2. Configure database connection parameters
  3. Access WordPress content from your PRADO application

WPDirectory is the link to WordPress: set it to the directory containing wp-load.php.

Examples

The examples directory contains a sample page (Pages/WPTest) that renders a WordPress post through the WPPostContent portlets. Copy it into your application's page directory; it is not part of the autoloaded package source and is excluded from distribution archives.

WordPress themes without WordPress

WPThemeModule can render a WordPress theme without loading WordPress: the theme's functions.php and index.php are executed against the shims in src/Theme/WPFunctions.php. Every shim is guarded with function_exists() / class_exists(), so a real WordPress installation - or a partially loaded one - always takes precedence.

Contributing

In the spirit of free software, everyone is encouraged to help improve this project.

Here are some ways you can contribute:

Starting point:

Testing

PRADO WordPress Integrator uses phpunit (https://phpunit.de/) for unit testing.

In order to run tests, first clone the PRADO WordPress Integrator repository and have composer install the needed development libraries:

The package requires pradosoft/prado: ^4.3@dev, which lets an application pick its own framework build, so a plain composer upgrade here floats with whatever that resolves to. The test suite pins framework behaviour, so CI installs one build, named by PRADO_VERSION in .github/workflows/prado-wp-integrator.yml. To run the tests against the same build CI does:

Bump PRADO_VERSION to adopt a newer framework build, or run the workflow by hand with a prado_version input (for example 4.4.x-dev) to test against a branch head before pinning it.

Now you are ready to run tests; a phpunit configuration file is provided, to run the tests just execute to run unit tests.

Test results will be saved in in the build/tests/ directory.

To run the suite with code coverage (requires Xdebug or PCOV):

This merges the coverage recorded by test child processes into the PHPUnit report and writes build/coverage/clover.xml and build/coverage/html/.


All versions of prado-wp-integrator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
pradosoft/prado Version ^4.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 belisoful/prado-wp-integrator contains the following files

Loading the files please wait ...